# coding: utf-8

"""
    rds_mysql_v2

    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 ListResourcePackagesRequest(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 = {
        'effective_time': 'EffectiveTimeForListResourcePackagesInput',
        'expiration_time': 'ExpirationTimeForListResourcePackagesInput',
        'order_by': 'str',
        'order_type': 'str',
        'package_spec': 'str',
        'package_status': 'str',
        'package_type': 'str',
        'page_number': 'int',
        'page_size': 'int',
        'purchase_duration': 'int'
    }

    attribute_map = {
        'effective_time': 'EffectiveTime',
        'expiration_time': 'ExpirationTime',
        'order_by': 'OrderBy',
        'order_type': 'OrderType',
        'package_spec': 'PackageSpec',
        'package_status': 'PackageStatus',
        'package_type': 'PackageType',
        'page_number': 'PageNumber',
        'page_size': 'PageSize',
        'purchase_duration': 'PurchaseDuration'
    }

    def __init__(self, effective_time=None, expiration_time=None, order_by=None, order_type=None, package_spec=None, package_status=None, package_type=None, page_number=None, page_size=None, purchase_duration=None, _configuration=None):  # noqa: E501
        """ListResourcePackagesRequest - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._effective_time = None
        self._expiration_time = None
        self._order_by = None
        self._order_type = None
        self._package_spec = None
        self._package_status = None
        self._package_type = None
        self._page_number = None
        self._page_size = None
        self._purchase_duration = None
        self.discriminator = None

        if effective_time is not None:
            self.effective_time = effective_time
        if expiration_time is not None:
            self.expiration_time = expiration_time
        if order_by is not None:
            self.order_by = order_by
        if order_type is not None:
            self.order_type = order_type
        if package_spec is not None:
            self.package_spec = package_spec
        if package_status is not None:
            self.package_status = package_status
        if package_type is not None:
            self.package_type = package_type
        if page_number is not None:
            self.page_number = page_number
        if page_size is not None:
            self.page_size = page_size
        if purchase_duration is not None:
            self.purchase_duration = purchase_duration

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


        :return: The effective_time of this ListResourcePackagesRequest.  # noqa: E501
        :rtype: EffectiveTimeForListResourcePackagesInput
        """
        return self._effective_time

    @effective_time.setter
    def effective_time(self, effective_time):
        """Sets the effective_time of this ListResourcePackagesRequest.


        :param effective_time: The effective_time of this ListResourcePackagesRequest.  # noqa: E501
        :type: EffectiveTimeForListResourcePackagesInput
        """

        self._effective_time = effective_time

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


        :return: The expiration_time of this ListResourcePackagesRequest.  # noqa: E501
        :rtype: ExpirationTimeForListResourcePackagesInput
        """
        return self._expiration_time

    @expiration_time.setter
    def expiration_time(self, expiration_time):
        """Sets the expiration_time of this ListResourcePackagesRequest.


        :param expiration_time: The expiration_time of this ListResourcePackagesRequest.  # noqa: E501
        :type: ExpirationTimeForListResourcePackagesInput
        """

        self._expiration_time = expiration_time

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


        :return: The order_by of this ListResourcePackagesRequest.  # noqa: E501
        :rtype: str
        """
        return self._order_by

    @order_by.setter
    def order_by(self, order_by):
        """Sets the order_by of this ListResourcePackagesRequest.


        :param order_by: The order_by of this ListResourcePackagesRequest.  # noqa: E501
        :type: str
        """

        self._order_by = order_by

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


        :return: The order_type of this ListResourcePackagesRequest.  # noqa: E501
        :rtype: str
        """
        return self._order_type

    @order_type.setter
    def order_type(self, order_type):
        """Sets the order_type of this ListResourcePackagesRequest.


        :param order_type: The order_type of this ListResourcePackagesRequest.  # noqa: E501
        :type: str
        """

        self._order_type = order_type

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


        :return: The package_spec of this ListResourcePackagesRequest.  # noqa: E501
        :rtype: str
        """
        return self._package_spec

    @package_spec.setter
    def package_spec(self, package_spec):
        """Sets the package_spec of this ListResourcePackagesRequest.


        :param package_spec: The package_spec of this ListResourcePackagesRequest.  # noqa: E501
        :type: str
        """

        self._package_spec = package_spec

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


        :return: The package_status of this ListResourcePackagesRequest.  # noqa: E501
        :rtype: str
        """
        return self._package_status

    @package_status.setter
    def package_status(self, package_status):
        """Sets the package_status of this ListResourcePackagesRequest.


        :param package_status: The package_status of this ListResourcePackagesRequest.  # noqa: E501
        :type: str
        """

        self._package_status = package_status

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


        :return: The package_type of this ListResourcePackagesRequest.  # noqa: E501
        :rtype: str
        """
        return self._package_type

    @package_type.setter
    def package_type(self, package_type):
        """Sets the package_type of this ListResourcePackagesRequest.


        :param package_type: The package_type of this ListResourcePackagesRequest.  # noqa: E501
        :type: str
        """

        self._package_type = package_type

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


        :return: The page_number of this ListResourcePackagesRequest.  # noqa: E501
        :rtype: int
        """
        return self._page_number

    @page_number.setter
    def page_number(self, page_number):
        """Sets the page_number of this ListResourcePackagesRequest.


        :param page_number: The page_number of this ListResourcePackagesRequest.  # noqa: E501
        :type: int
        """

        self._page_number = page_number

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


        :return: The page_size of this ListResourcePackagesRequest.  # noqa: E501
        :rtype: int
        """
        return self._page_size

    @page_size.setter
    def page_size(self, page_size):
        """Sets the page_size of this ListResourcePackagesRequest.


        :param page_size: The page_size of this ListResourcePackagesRequest.  # noqa: E501
        :type: int
        """

        self._page_size = page_size

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


        :return: The purchase_duration of this ListResourcePackagesRequest.  # noqa: E501
        :rtype: int
        """
        return self._purchase_duration

    @purchase_duration.setter
    def purchase_duration(self, purchase_duration):
        """Sets the purchase_duration of this ListResourcePackagesRequest.


        :param purchase_duration: The purchase_duration of this ListResourcePackagesRequest.  # noqa: E501
        :type: int
        """

        self._purchase_duration = purchase_duration

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

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