# coding: utf-8

"""
    id

    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 CreatePolicyResponse(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',
        'description': 'str',
        'namespace_id': 'str',
        'policy': 'str',
        'policy_id': 'str',
        'policy_name': 'str',
        'trn': 'str',
        'update_time': 'str'
    }

    attribute_map = {
        'create_time': 'CreateTime',
        'description': 'Description',
        'namespace_id': 'NamespaceId',
        'policy': 'Policy',
        'policy_id': 'PolicyId',
        'policy_name': 'PolicyName',
        'trn': 'Trn',
        'update_time': 'UpdateTime'
    }

    def __init__(self, create_time=None, description=None, namespace_id=None, policy=None, policy_id=None, policy_name=None, trn=None, update_time=None, _configuration=None):  # noqa: E501
        """CreatePolicyResponse - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._create_time = None
        self._description = None
        self._namespace_id = None
        self._policy = None
        self._policy_id = None
        self._policy_name = None
        self._trn = None
        self._update_time = None
        self.discriminator = None

        if create_time is not None:
            self.create_time = create_time
        if description is not None:
            self.description = description
        if namespace_id is not None:
            self.namespace_id = namespace_id
        if policy is not None:
            self.policy = policy
        if policy_id is not None:
            self.policy_id = policy_id
        if policy_name is not None:
            self.policy_name = policy_name
        if trn is not None:
            self.trn = trn
        if update_time is not None:
            self.update_time = update_time

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


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

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


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

        self._create_time = create_time

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


        :return: The description of this CreatePolicyResponse.  # noqa: E501
        :rtype: str
        """
        return self._description

    @description.setter
    def description(self, description):
        """Sets the description of this CreatePolicyResponse.


        :param description: The description of this CreatePolicyResponse.  # noqa: E501
        :type: str
        """

        self._description = description

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


        :return: The namespace_id of this CreatePolicyResponse.  # noqa: E501
        :rtype: str
        """
        return self._namespace_id

    @namespace_id.setter
    def namespace_id(self, namespace_id):
        """Sets the namespace_id of this CreatePolicyResponse.


        :param namespace_id: The namespace_id of this CreatePolicyResponse.  # noqa: E501
        :type: str
        """

        self._namespace_id = namespace_id

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


        :return: The policy of this CreatePolicyResponse.  # noqa: E501
        :rtype: str
        """
        return self._policy

    @policy.setter
    def policy(self, policy):
        """Sets the policy of this CreatePolicyResponse.


        :param policy: The policy of this CreatePolicyResponse.  # noqa: E501
        :type: str
        """

        self._policy = policy

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


        :return: The policy_id of this CreatePolicyResponse.  # noqa: E501
        :rtype: str
        """
        return self._policy_id

    @policy_id.setter
    def policy_id(self, policy_id):
        """Sets the policy_id of this CreatePolicyResponse.


        :param policy_id: The policy_id of this CreatePolicyResponse.  # noqa: E501
        :type: str
        """

        self._policy_id = policy_id

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


        :return: The policy_name of this CreatePolicyResponse.  # noqa: E501
        :rtype: str
        """
        return self._policy_name

    @policy_name.setter
    def policy_name(self, policy_name):
        """Sets the policy_name of this CreatePolicyResponse.


        :param policy_name: The policy_name of this CreatePolicyResponse.  # noqa: E501
        :type: str
        """

        self._policy_name = policy_name

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


        :return: The trn of this CreatePolicyResponse.  # noqa: E501
        :rtype: str
        """
        return self._trn

    @trn.setter
    def trn(self, trn):
        """Sets the trn of this CreatePolicyResponse.


        :param trn: The trn of this CreatePolicyResponse.  # noqa: E501
        :type: str
        """

        self._trn = trn

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


        :return: The update_time of this CreatePolicyResponse.  # noqa: E501
        :rtype: str
        """
        return self._update_time

    @update_time.setter
    def update_time(self, update_time):
        """Sets the update_time of this CreatePolicyResponse.


        :param update_time: The update_time of this CreatePolicyResponse.  # noqa: E501
        :type: str
        """

        self._update_time = update_time

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

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