# 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 CreateResourcePackageRequest(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 = {
        'charge_info': 'ChargeInfoForCreateResourcePackageInput',
        'effective_time': 'str',
        'effective_time_type': 'str',
        'package_spec': 'str',
        'package_type': 'str'
    }

    attribute_map = {
        'charge_info': 'ChargeInfo',
        'effective_time': 'EffectiveTime',
        'effective_time_type': 'EffectiveTimeType',
        'package_spec': 'PackageSpec',
        'package_type': 'PackageType'
    }

    def __init__(self, charge_info=None, effective_time=None, effective_time_type=None, package_spec=None, package_type=None, _configuration=None):  # noqa: E501
        """CreateResourcePackageRequest - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._charge_info = None
        self._effective_time = None
        self._effective_time_type = None
        self._package_spec = None
        self._package_type = None
        self.discriminator = None

        if charge_info is not None:
            self.charge_info = charge_info
        if effective_time is not None:
            self.effective_time = effective_time
        self.effective_time_type = effective_time_type
        self.package_spec = package_spec
        self.package_type = package_type

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


        :return: The charge_info of this CreateResourcePackageRequest.  # noqa: E501
        :rtype: ChargeInfoForCreateResourcePackageInput
        """
        return self._charge_info

    @charge_info.setter
    def charge_info(self, charge_info):
        """Sets the charge_info of this CreateResourcePackageRequest.


        :param charge_info: The charge_info of this CreateResourcePackageRequest.  # noqa: E501
        :type: ChargeInfoForCreateResourcePackageInput
        """

        self._charge_info = charge_info

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


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

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


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

        self._effective_time = effective_time

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


        :return: The effective_time_type of this CreateResourcePackageRequest.  # noqa: E501
        :rtype: str
        """
        return self._effective_time_type

    @effective_time_type.setter
    def effective_time_type(self, effective_time_type):
        """Sets the effective_time_type of this CreateResourcePackageRequest.


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

        self._effective_time_type = effective_time_type

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


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

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


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

        self._package_spec = package_spec

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


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

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


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

        self._package_type = package_type

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

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