# coding: utf-8

"""
    acep

    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 CreateDisplayLayoutMiniRequest(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 = {
        'density': 'int',
        'display_layout_id': 'str',
        'extra': 'str',
        'fps': 'int',
        'height': 'int',
        'product_id': 'str',
        'width': 'int'
    }

    attribute_map = {
        'density': 'Density',
        'display_layout_id': 'DisplayLayoutId',
        'extra': 'Extra',
        'fps': 'Fps',
        'height': 'Height',
        'product_id': 'ProductId',
        'width': 'Width'
    }

    def __init__(self, density=None, display_layout_id=None, extra=None, fps=None, height=None, product_id=None, width=None, _configuration=None):  # noqa: E501
        """CreateDisplayLayoutMiniRequest - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._density = None
        self._display_layout_id = None
        self._extra = None
        self._fps = None
        self._height = None
        self._product_id = None
        self._width = None
        self.discriminator = None

        if density is not None:
            self.density = density
        self.display_layout_id = display_layout_id
        if extra is not None:
            self.extra = extra
        if fps is not None:
            self.fps = fps
        self.height = height
        self.product_id = product_id
        self.width = width

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


        :return: The density of this CreateDisplayLayoutMiniRequest.  # noqa: E501
        :rtype: int
        """
        return self._density

    @density.setter
    def density(self, density):
        """Sets the density of this CreateDisplayLayoutMiniRequest.


        :param density: The density of this CreateDisplayLayoutMiniRequest.  # noqa: E501
        :type: int
        """

        self._density = density

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


        :return: The display_layout_id of this CreateDisplayLayoutMiniRequest.  # noqa: E501
        :rtype: str
        """
        return self._display_layout_id

    @display_layout_id.setter
    def display_layout_id(self, display_layout_id):
        """Sets the display_layout_id of this CreateDisplayLayoutMiniRequest.


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

        self._display_layout_id = display_layout_id

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


        :return: The extra of this CreateDisplayLayoutMiniRequest.  # noqa: E501
        :rtype: str
        """
        return self._extra

    @extra.setter
    def extra(self, extra):
        """Sets the extra of this CreateDisplayLayoutMiniRequest.


        :param extra: The extra of this CreateDisplayLayoutMiniRequest.  # noqa: E501
        :type: str
        """

        self._extra = extra

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


        :return: The fps of this CreateDisplayLayoutMiniRequest.  # noqa: E501
        :rtype: int
        """
        return self._fps

    @fps.setter
    def fps(self, fps):
        """Sets the fps of this CreateDisplayLayoutMiniRequest.


        :param fps: The fps of this CreateDisplayLayoutMiniRequest.  # noqa: E501
        :type: int
        """

        self._fps = fps

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


        :return: The height of this CreateDisplayLayoutMiniRequest.  # noqa: E501
        :rtype: int
        """
        return self._height

    @height.setter
    def height(self, height):
        """Sets the height of this CreateDisplayLayoutMiniRequest.


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

        self._height = height

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


        :return: The product_id of this CreateDisplayLayoutMiniRequest.  # noqa: E501
        :rtype: str
        """
        return self._product_id

    @product_id.setter
    def product_id(self, product_id):
        """Sets the product_id of this CreateDisplayLayoutMiniRequest.


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

        self._product_id = product_id

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


        :return: The width of this CreateDisplayLayoutMiniRequest.  # noqa: E501
        :rtype: int
        """
        return self._width

    @width.setter
    def width(self, width):
        """Sets the width of this CreateDisplayLayoutMiniRequest.


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

        self._width = width

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

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