# 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 ResourcePackageForListResourcePackagesOutput(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 = {
        'create_time': 'str',
        'effective_time': 'str',
        'expiration_time': 'str',
        'package_id': 'str',
        'package_spec': 'str',
        'package_status': 'str',
        'package_type': 'str',
        'purchase_duration': 'int',
        'region': 'str'
    }

    attribute_map = {
        'create_time': 'CreateTime',
        'effective_time': 'EffectiveTime',
        'expiration_time': 'ExpirationTime',
        'package_id': 'PackageId',
        'package_spec': 'PackageSpec',
        'package_status': 'PackageStatus',
        'package_type': 'PackageType',
        'purchase_duration': 'PurchaseDuration',
        'region': 'Region'
    }

    def __init__(self, create_time=None, effective_time=None, expiration_time=None, package_id=None, package_spec=None, package_status=None, package_type=None, purchase_duration=None, region=None, _configuration=None):  # noqa: E501
        """ResourcePackageForListResourcePackagesOutput - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._create_time = None
        self._effective_time = None
        self._expiration_time = None
        self._package_id = None
        self._package_spec = None
        self._package_status = None
        self._package_type = None
        self._purchase_duration = None
        self._region = None
        self.discriminator = None

        if create_time is not None:
            self.create_time = create_time
        if effective_time is not None:
            self.effective_time = effective_time
        if expiration_time is not None:
            self.expiration_time = expiration_time
        if package_id is not None:
            self.package_id = package_id
        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 purchase_duration is not None:
            self.purchase_duration = purchase_duration
        if region is not None:
            self.region = region

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


        :return: The create_time of this ResourcePackageForListResourcePackagesOutput.  # noqa: E501
        :rtype: str
        """
        return self._create_time

    @create_time.setter
    def create_time(self, create_time):
        """Sets the create_time of this ResourcePackageForListResourcePackagesOutput.


        :param create_time: The create_time of this ResourcePackageForListResourcePackagesOutput.  # noqa: E501
        :type: str
        """

        self._create_time = create_time

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


        :return: The effective_time of this ResourcePackageForListResourcePackagesOutput.  # noqa: E501
        :rtype: str
        """
        return self._effective_time

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


        :param effective_time: The effective_time of this ResourcePackageForListResourcePackagesOutput.  # noqa: E501
        :type: str
        """

        self._effective_time = effective_time

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


        :return: The expiration_time of this ResourcePackageForListResourcePackagesOutput.  # noqa: E501
        :rtype: str
        """
        return self._expiration_time

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


        :param expiration_time: The expiration_time of this ResourcePackageForListResourcePackagesOutput.  # noqa: E501
        :type: str
        """

        self._expiration_time = expiration_time

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


        :return: The package_id of this ResourcePackageForListResourcePackagesOutput.  # noqa: E501
        :rtype: str
        """
        return self._package_id

    @package_id.setter
    def package_id(self, package_id):
        """Sets the package_id of this ResourcePackageForListResourcePackagesOutput.


        :param package_id: The package_id of this ResourcePackageForListResourcePackagesOutput.  # noqa: E501
        :type: str
        """

        self._package_id = package_id

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


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

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


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

        self._package_spec = package_spec

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


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

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


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

        self._package_status = package_status

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


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

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


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

        self._package_type = package_type

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


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

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


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

        self._purchase_duration = purchase_duration

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


        :return: The region of this ResourcePackageForListResourcePackagesOutput.  # noqa: E501
        :rtype: str
        """
        return self._region

    @region.setter
    def region(self, region):
        """Sets the region of this ResourcePackageForListResourcePackagesOutput.


        :param region: The region of this ResourcePackageForListResourcePackagesOutput.  # noqa: E501
        :type: str
        """

        self._region = region

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

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