# coding: utf-8

"""
    vod20250101

    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 RatioLocationForStartExecutionInput(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 = {
        'bottom_right_x': 'float',
        'bottom_right_y': 'float',
        'top_left_x': 'float',
        'top_left_y': 'float'
    }

    attribute_map = {
        'bottom_right_x': 'BottomRightX',
        'bottom_right_y': 'BottomRightY',
        'top_left_x': 'TopLeftX',
        'top_left_y': 'TopLeftY'
    }

    def __init__(self, bottom_right_x=None, bottom_right_y=None, top_left_x=None, top_left_y=None, _configuration=None):  # noqa: E501
        """RatioLocationForStartExecutionInput - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._bottom_right_x = None
        self._bottom_right_y = None
        self._top_left_x = None
        self._top_left_y = None
        self.discriminator = None

        if bottom_right_x is not None:
            self.bottom_right_x = bottom_right_x
        if bottom_right_y is not None:
            self.bottom_right_y = bottom_right_y
        if top_left_x is not None:
            self.top_left_x = top_left_x
        if top_left_y is not None:
            self.top_left_y = top_left_y

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


        :return: The bottom_right_x of this RatioLocationForStartExecutionInput.  # noqa: E501
        :rtype: float
        """
        return self._bottom_right_x

    @bottom_right_x.setter
    def bottom_right_x(self, bottom_right_x):
        """Sets the bottom_right_x of this RatioLocationForStartExecutionInput.


        :param bottom_right_x: The bottom_right_x of this RatioLocationForStartExecutionInput.  # noqa: E501
        :type: float
        """

        self._bottom_right_x = bottom_right_x

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


        :return: The bottom_right_y of this RatioLocationForStartExecutionInput.  # noqa: E501
        :rtype: float
        """
        return self._bottom_right_y

    @bottom_right_y.setter
    def bottom_right_y(self, bottom_right_y):
        """Sets the bottom_right_y of this RatioLocationForStartExecutionInput.


        :param bottom_right_y: The bottom_right_y of this RatioLocationForStartExecutionInput.  # noqa: E501
        :type: float
        """

        self._bottom_right_y = bottom_right_y

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


        :return: The top_left_x of this RatioLocationForStartExecutionInput.  # noqa: E501
        :rtype: float
        """
        return self._top_left_x

    @top_left_x.setter
    def top_left_x(self, top_left_x):
        """Sets the top_left_x of this RatioLocationForStartExecutionInput.


        :param top_left_x: The top_left_x of this RatioLocationForStartExecutionInput.  # noqa: E501
        :type: float
        """

        self._top_left_x = top_left_x

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


        :return: The top_left_y of this RatioLocationForStartExecutionInput.  # noqa: E501
        :rtype: float
        """
        return self._top_left_y

    @top_left_y.setter
    def top_left_y(self, top_left_y):
        """Sets the top_left_y of this RatioLocationForStartExecutionInput.


        :param top_left_y: The top_left_y of this RatioLocationForStartExecutionInput.  # noqa: E501
        :type: float
        """

        self._top_left_y = top_left_y

    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(RatioLocationForStartExecutionInput, 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, RatioLocationForStartExecutionInput):
            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, RatioLocationForStartExecutionInput):
            return True

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