# coding: utf-8

"""
    vei_api

    No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)  # noqa: E501

    OpenAPI spec version: common-version
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re  # noqa: F401

import six

from volcenginesdkcore.configuration import Configuration


class DeviceContinuousMoveRequest(object):
    """NOTE: This class is auto generated by the swagger code generator program.

    Do not edit the class manually.
    """

    """
    Attributes:
      swagger_types (dict): The key is attribute name
                            and the value is attribute type.
      attribute_map (dict): The key is attribute name
                            and the value is json key in definition.
    """
    swagger_types = {
        'device_id': 'str',
        'pan_tilt_x': 'float',
        'pan_tilt_y': 'float',
        'time_out': 'int',
        'zoom_x': 'float'
    }

    attribute_map = {
        'device_id': 'device_id',
        'pan_tilt_x': 'pan_tilt_x',
        'pan_tilt_y': 'pan_tilt_y',
        'time_out': 'time_out',
        'zoom_x': 'zoom_x'
    }

    def __init__(self, device_id=None, pan_tilt_x=None, pan_tilt_y=None, time_out=None, zoom_x=None, _configuration=None):  # noqa: E501
        """DeviceContinuousMoveRequest - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._device_id = None
        self._pan_tilt_x = None
        self._pan_tilt_y = None
        self._time_out = None
        self._zoom_x = None
        self.discriminator = None

        self.device_id = device_id
        if pan_tilt_x is not None:
            self.pan_tilt_x = pan_tilt_x
        if pan_tilt_y is not None:
            self.pan_tilt_y = pan_tilt_y
        if time_out is not None:
            self.time_out = time_out
        if zoom_x is not None:
            self.zoom_x = zoom_x

    @property
    def device_id(self):
        """Gets the device_id of this DeviceContinuousMoveRequest.  # noqa: E501


        :return: The device_id of this DeviceContinuousMoveRequest.  # noqa: E501
        :rtype: str
        """
        return self._device_id

    @device_id.setter
    def device_id(self, device_id):
        """Sets the device_id of this DeviceContinuousMoveRequest.


        :param device_id: The device_id of this DeviceContinuousMoveRequest.  # noqa: E501
        :type: str
        """
        if self._configuration.client_side_validation and device_id is None:
            raise ValueError("Invalid value for `device_id`, must not be `None`")  # noqa: E501

        self._device_id = device_id

    @property
    def pan_tilt_x(self):
        """Gets the pan_tilt_x of this DeviceContinuousMoveRequest.  # noqa: E501


        :return: The pan_tilt_x of this DeviceContinuousMoveRequest.  # noqa: E501
        :rtype: float
        """
        return self._pan_tilt_x

    @pan_tilt_x.setter
    def pan_tilt_x(self, pan_tilt_x):
        """Sets the pan_tilt_x of this DeviceContinuousMoveRequest.


        :param pan_tilt_x: The pan_tilt_x of this DeviceContinuousMoveRequest.  # noqa: E501
        :type: float
        """

        self._pan_tilt_x = pan_tilt_x

    @property
    def pan_tilt_y(self):
        """Gets the pan_tilt_y of this DeviceContinuousMoveRequest.  # noqa: E501


        :return: The pan_tilt_y of this DeviceContinuousMoveRequest.  # noqa: E501
        :rtype: float
        """
        return self._pan_tilt_y

    @pan_tilt_y.setter
    def pan_tilt_y(self, pan_tilt_y):
        """Sets the pan_tilt_y of this DeviceContinuousMoveRequest.


        :param pan_tilt_y: The pan_tilt_y of this DeviceContinuousMoveRequest.  # noqa: E501
        :type: float
        """

        self._pan_tilt_y = pan_tilt_y

    @property
    def time_out(self):
        """Gets the time_out of this DeviceContinuousMoveRequest.  # noqa: E501


        :return: The time_out of this DeviceContinuousMoveRequest.  # noqa: E501
        :rtype: int
        """
        return self._time_out

    @time_out.setter
    def time_out(self, time_out):
        """Sets the time_out of this DeviceContinuousMoveRequest.


        :param time_out: The time_out of this DeviceContinuousMoveRequest.  # noqa: E501
        :type: int
        """

        self._time_out = time_out

    @property
    def zoom_x(self):
        """Gets the zoom_x of this DeviceContinuousMoveRequest.  # noqa: E501


        :return: The zoom_x of this DeviceContinuousMoveRequest.  # noqa: E501
        :rtype: float
        """
        return self._zoom_x

    @zoom_x.setter
    def zoom_x(self, zoom_x):
        """Sets the zoom_x of this DeviceContinuousMoveRequest.


        :param zoom_x: The zoom_x of this DeviceContinuousMoveRequest.  # noqa: E501
        :type: float
        """

        self._zoom_x = zoom_x

    def to_dict(self):
        """Returns the model properties as a dict"""
        result = {}

        for attr, _ in six.iteritems(self.swagger_types):
            value = getattr(self, attr)
            if isinstance(value, list):
                result[attr] = list(map(
                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
                    value
                ))
            elif hasattr(value, "to_dict"):
                result[attr] = value.to_dict()
            elif isinstance(value, dict):
                result[attr] = dict(map(
                    lambda item: (item[0], item[1].to_dict())
                    if hasattr(item[1], "to_dict") else item,
                    value.items()
                ))
            else:
                result[attr] = value
        if issubclass(DeviceContinuousMoveRequest, dict):
            for key, value in self.items():
                result[key] = value

        return result

    def to_str(self):
        """Returns the string representation of the model"""
        return pprint.pformat(self.to_dict())

    def __repr__(self):
        """For `print` and `pprint`"""
        return self.to_str()

    def __eq__(self, other):
        """Returns true if both objects are equal"""
        if not isinstance(other, DeviceContinuousMoveRequest):
            return False

        return self.to_dict() == other.to_dict()

    def __ne__(self, other):
        """Returns true if both objects are not equal"""
        if not isinstance(other, DeviceContinuousMoveRequest):
            return True

        return self.to_dict() != other.to_dict()
