text: # coding: utf-8
  
  import pprint
  import re
  
  import six
  
  
  
  
  
  class NatGatewaySnatRuleResponseBody:
  
  
      """
      Attributes:
        openapi_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.
      """
  
      sensitive_list = []
  
      openapi_types = {
          'id': 'str',
          'tenant_id': 'str',
          'nat_gateway_id': 'str',
          'cidr': 'str',
          'source_type': 'int',
          'floating_ip_id': 'str',
          'description': 'str',
          'status': 'str',
          'created_at': 'datetime',
          'network_id': 'str',
          'admin_state_up': 'bool',
          'floating_ip_address': 'str',
          'freezed_ip_address': 'str'
      }
  
      attribute_map = {
          'id': 'id',
          'tenant_id': 'tenant_id',
          'nat_gateway_id': 'nat_gateway_id',
          'cidr': 'cidr',
          'source_type': 'source_type',
          'floating_ip_id': 'floating_ip_id',
          'description': 'description',
          'status': 'status',
          'created_at': 'created_at',
          'network_id': 'network_id',
          'admin_state_up': 'admin_state_up',
          'floating_ip_address': 'floating_ip_address',
          'freezed_ip_address': 'freezed_ip_address'
      }
  
      def __init__(self, id=None, tenant_id=None, nat_gateway_id=None, cidr=None, source_type=0, floating_ip_id=None, description=None, status=None, created_at=None, network_id=None, admin_state_up=None, floating_ip_address=None, freezed_ip_address=None):
          """NatGatewaySnatRuleResponseBody - a model defined in huaweicloud sdk"""
          
          
  
          self._id = None
          self._tenant_id = None
          self._nat_gateway_id = None
          self._cidr = None
          self._source_type = None
          self._floating_ip_id = None
          self._description = None
          self._status = None
          self._created_at = None
          self._network_id = None
          self._admin_state_up = None
          self._floating_ip_address = None
          self._freezed_ip_address = None
          self.discriminator = None
  
          if id is not None:
              self.id = id
          if tenant_id is not None:
              self.tenant_id = tenant_id
          if nat_gateway_id is not None:
              self.nat_gateway_id = nat_gateway_id
          if cidr is not None:
              self.cidr = cidr
          if source_type is not None:
              self.source_type = source_type
          if floating_ip_id is not None:
              self.floating_ip_id = floating_ip_id
          if description is not None:
              self.description = description
          if status is not None:
              self.status = status
          if created_at is not None:
              self.created_at = created_at
          if network_id is not None:
              self.network_id = network_id
          if admin_state_up is not None:
              self.admin_state_up = admin_state_up
          if floating_ip_address is not None:
              self.floating_ip_address = floating_ip_address
          if freezed_ip_address is not None:
              self.freezed_ip_address = freezed_ip_address
  
      @property
      def id(self):
          """Gets the id of this NatGatewaySnatRuleResponseBody.
  
          SNAT规则的ID。
  
          :return: The id of this NatGatewaySnatRuleResponseBody.
          :rtype: str
          """
          return self._id
  
      @id.setter
      def id(self, id):
          """Sets the id of this NatGatewaySnatRuleResponseBody.
  
          SNAT规则的ID。
  
          :param id: The id of this NatGatewaySnatRuleResponseBody.
          :type: str
          """
          self._id = id
  
      @property
      def tenant_id(self):
          """Gets the tenant_id of this NatGatewaySnatRuleResponseBody.
  
          项目的ID。
  
          :return: The tenant_id of this NatGatewaySnatRuleResponseBody.
          :rtype: str
          """
          return self._tenant_id
  
      @tenant_id.setter
      def tenant_id(self, tenant_id):
          """Sets the tenant_id of this NatGatewaySnatRuleResponseBody.
  
          项目的ID。
  
          :param tenant_id: The tenant_id of this NatGatewaySnatRuleResponseBody.
          :type: str
          """
          self._tenant_id = tenant_id
  
      @property
      def nat_gateway_id(self):
          """Gets the nat_gateway_id of this NatGatewaySnatRuleResponseBody.
  
          公网NAT网关实例的ID。
  
          :return: The nat_gateway_id of this NatGatewaySnatRuleResponseBody.
          :rtype: str
          """
          return self._nat_gateway_id
  
      @nat_gateway_id.setter
      def nat_gateway_id(self, nat_gateway_id):
          """Sets the nat_gateway_id of this NatGatewaySnatRuleResponseBody.
  
          公网NAT网关实例的ID。
  
          :param nat_gateway_id: The nat_gateway_id of this NatGatewaySnatRuleResponseBody.
          :type: str
          """
          self._nat_gateway_id = nat_gateway_id
  
      @property
      def cidr(self):
          """Gets the cidr of this NatGatewaySnatRuleResponseBody.
  
          cidr，可以是网段或者主机格式，与network_id参数二选一。 Source_type=0时，cidr必须是vpc 子网网段的子集(不能相等）; Source_type=1时，cidr必须指定专线侧网段。
  
          :return: The cidr of this NatGatewaySnatRuleResponseBody.
          :rtype: str
          """
          return self._cidr
  
      @cidr.setter
      def cidr(self, cidr):
          """Sets the cidr of this NatGatewaySnatRuleResponseBody.
  
          cidr，可以是网段或者主机格式，与network_id参数二选一。 Source_type=0时，cidr必须是vpc 子网网段的子集(不能相等）; Source_type=1时，cidr必须指定专线侧网段。
  
          :param cidr: The cidr of this NatGatewaySnatRuleResponseBody.
          :type: str
          """
          self._cidr = cidr
  
      @property
      def source_type(self):
          """Gets the source_type of this NatGatewaySnatRuleResponseBody.
  
          0：VPC侧，可以指定network_id 或者cidr 1：专线侧，只能指定cidr 不输入默认为0（VPC）
  
          :return: The source_type of this NatGatewaySnatRuleResponseBody.
          :rtype: int
          """
          return self._source_type
  
      @source_type.setter
      def source_type(self, source_type):
          """Sets the source_type of this NatGatewaySnatRuleResponseBody.
  
          0：VPC侧，可以指定network_id 或者cidr 1：专线侧，只能指定cidr 不输入默认为0（VPC）
  
          :param source_type: The source_type of this NatGatewaySnatRuleResponseBody.
          :type: int
          """
          self._source_type = source_type
  
      @property
      def floating_ip_id(self):
          """Gets the floating_ip_id of this NatGatewaySnatRuleResponseBody.
  
          功能说明：弹性公网IP的id，多个弹性公网IP使用逗号分隔。 取值范围：最大长度4096字节。
  
          :return: The floating_ip_id of this NatGatewaySnatRuleResponseBody.
          :rtype: str
          """
          return self._floating_ip_id
  
      @floating_ip_id.setter
      def floating_ip_id(self, floating_ip_id):
          """Sets the floating_ip_id of this NatGatewaySnatRuleResponseBody.
  
          功能说明：弹性公网IP的id，多个弹性公网IP使用逗号分隔。 取值范围：最大长度4096字节。
  
          :param floating_ip_id: The floating_ip_id of this NatGatewaySnatRuleResponseBody.
          :type: str
          """
          self._floating_ip_id = floating_ip_id
  
      @property
      def description(self):
          """Gets the description of this NatGatewaySnatRuleResponseBody.
  
          SNAT规则的描述。
  
          :return: The description of this NatGatewaySnatRuleResponseBody.
          :rtype: str
          """
          return self._description
  
      @description.setter
      def description(self, description):
          """Sets the description of this NatGatewaySnatRuleResponseBody.
  
          SNAT规则的描述。
  
          :param description: The description of this NatGatewaySnatRuleResponseBody.
          :type: str
          """
          self._description = description
  
      @property
      def status(self):
          """Gets the status of this NatGatewaySnatRuleResponseBody.
  
          功能说明：SNAT规则的状态。
  
          :return: The status of this NatGatewaySnatRuleResponseBody.
          :rtype: str
          """
          return self._status
  
      @status.setter
      def status(self, status):
          """Sets the status of this NatGatewaySnatRuleResponseBody.
  
          功能说明：SNAT规则的状态。
  
          :param status: The status of this NatGatewaySnatRuleResponseBody.
          :type: str
          """
          self._status = status
  
      @property
      def created_at(self):
          """Gets the created_at of this NatGatewaySnatRuleResponseBody.
  
          SNAT规则的创建时间，遵循UTC时间，格式是yyyy-mm-ddThh:mm:ssZ。
  
          :return: The created_at of this NatGatewaySnatRuleResponseBody.
          :rtype: datetime
          """
          return self._created_at
  
      @created_at.setter
      def created_at(self, created_at):
          """Sets the created_at of this NatGatewaySnatRuleResponseBody.
  
          SNAT规则的创建时间，遵循UTC时间，格式是yyyy-mm-ddThh:mm:ssZ。
  
          :param created_at: The created_at of this NatGatewaySnatRuleResponseBody.
          :type: datetime
          """
          self._created_at = created_at
  
      @property
      def network_id(self):
          """Gets the network_id of this NatGatewaySnatRuleResponseBody.
  
          规则使用的网络id。与cidr参数二选一。
  
          :return: The network_id of this NatGatewaySnatRuleResponseBody.
          :rtype: str
          """
          return self._network_id
  
      @network_id.setter
      def network_id(self, network_id):
          """Sets the network_id of this NatGatewaySnatRuleResponseBody.
  
          规则使用的网络id。与cidr参数二选一。
  
          :param network_id: The network_id of this NatGatewaySnatRuleResponseBody.
          :type: str
          """
          self._network_id = network_id
  
      @property
      def admin_state_up(self):
          """Gets the admin_state_up of this NatGatewaySnatRuleResponseBody.
  
          解冻/冻结状态。 取值范围： - \"true\"：解冻 - \"false\"：冻结
  
          :return: The admin_state_up of this NatGatewaySnatRuleResponseBody.
          :rtype: bool
          """
          return self._admin_state_up
  
      @admin_state_up.setter
      def admin_state_up(self, admin_state_up):
          """Sets the admin_state_up of this NatGatewaySnatRuleResponseBody.
  
          解冻/冻结状态。 取值范围： - \"true\"：解冻 - \"false\"：冻结
  
          :param admin_state_up: The admin_state_up of this NatGatewaySnatRuleResponseBody.
          :type: bool
          """
          self._admin_state_up = admin_state_up
  
      @property
      def floating_ip_address(self):
          """Gets the floating_ip_address of this NatGatewaySnatRuleResponseBody.
  
          功能说明：弹性公网IP，多个弹性公网IP使用逗号分隔。 取值范围：最大长度1024字节。
  
          :return: The floating_ip_address of this NatGatewaySnatRuleResponseBody.
          :rtype: str
          """
          return self._floating_ip_address
  
      @floating_ip_address.setter
      def floating_ip_address(self, floating_ip_address):
          """Sets the floating_ip_address of this NatGatewaySnatRuleResponseBody.
  
          功能说明：弹性公网IP，多个弹性公网IP使用逗号分隔。 取值范围：最大长度1024字节。
  
          :param floating_ip_address: The floating_ip_address of this NatGatewaySnatRuleResponseBody.
          :type: str
          """
          self._floating_ip_address = floating_ip_address
  
      @property
      def freezed_ip_address(self):
          """Gets the freezed_ip_address of this NatGatewaySnatRuleResponseBody.
  
          功能说明：冻结的弹性公网IP，多个冻结的弹性公网IP使用逗号分隔。 取值范围：最大长度1024字节。
  
          :return: The freezed_ip_address of this NatGatewaySnatRuleResponseBody.
          :rtype: str
          """
          return self._freezed_ip_address
  
      @freezed_ip_address.setter
      def freezed_ip_address(self, freezed_ip_address):
          """Sets the freezed_ip_address of this NatGatewaySnatRuleResponseBody.
  
          功能说明：冻结的弹性公网IP，多个冻结的弹性公网IP使用逗号分隔。 取值范围：最大长度1024字节。
  
          :param freezed_ip_address: The freezed_ip_address of this NatGatewaySnatRuleResponseBody.
          :type: str
          """
          self._freezed_ip_address = freezed_ip_address
  
      def to_dict(self):
          """Returns the model properties as a dict"""
          result = {}
  
          for attr, _ in six.iteritems(self.openapi_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:
                  if attr in self.sensitive_list:
                      result[attr] = "****"
                  else:
                      result[attr] = 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, NatGatewaySnatRuleResponseBody):
              return False
  
          return self.__dict__ == other.__dict__
  
      def __ne__(self, other):
          """Returns true if both objects are not equal"""
          return not self == other
  