# coding: utf-8

"""
    pca20251001

    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 ResultForListRootInstancesOutput(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 = {
        'common_name': 'str',
        'contact': 'ContactForListRootInstancesOutput',
        'create_at': 'str',
        'deploy_info': 'DeployInfoForListRootInstancesOutput',
        'duration': 'str',
        'encryption_algorithm': 'str',
        'has_private_key': 'bool',
        'instance_id': 'str',
        'instance_status': 'int',
        'issued_common_name': 'str',
        'issued_id': 'str',
        'not_after': 'int',
        'not_before': 'int',
        'plan': 'str',
        'project_name': 'str',
        'serial_number': 'str',
        'signature_algorithm': 'str',
        'source_type': 'int',
        'subject': 'SubjectForListRootInstancesOutput',
        'tag': 'str',
        'tags': 'list[TagForListRootInstancesOutput]'
    }

    attribute_map = {
        'common_name': 'CommonName',
        'contact': 'Contact',
        'create_at': 'CreateAt',
        'deploy_info': 'DeployInfo',
        'duration': 'Duration',
        'encryption_algorithm': 'EncryptionAlgorithm',
        'has_private_key': 'HasPrivateKey',
        'instance_id': 'InstanceId',
        'instance_status': 'InstanceStatus',
        'issued_common_name': 'IssuedCommonName',
        'issued_id': 'IssuedId',
        'not_after': 'NotAfter',
        'not_before': 'NotBefore',
        'plan': 'Plan',
        'project_name': 'ProjectName',
        'serial_number': 'SerialNumber',
        'signature_algorithm': 'SignatureAlgorithm',
        'source_type': 'SourceType',
        'subject': 'Subject',
        'tag': 'Tag',
        'tags': 'Tags'
    }

    def __init__(self, common_name=None, contact=None, create_at=None, deploy_info=None, duration=None, encryption_algorithm=None, has_private_key=None, instance_id=None, instance_status=None, issued_common_name=None, issued_id=None, not_after=None, not_before=None, plan=None, project_name=None, serial_number=None, signature_algorithm=None, source_type=None, subject=None, tag=None, tags=None, _configuration=None):  # noqa: E501
        """ResultForListRootInstancesOutput - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._common_name = None
        self._contact = None
        self._create_at = None
        self._deploy_info = None
        self._duration = None
        self._encryption_algorithm = None
        self._has_private_key = None
        self._instance_id = None
        self._instance_status = None
        self._issued_common_name = None
        self._issued_id = None
        self._not_after = None
        self._not_before = None
        self._plan = None
        self._project_name = None
        self._serial_number = None
        self._signature_algorithm = None
        self._source_type = None
        self._subject = None
        self._tag = None
        self._tags = None
        self.discriminator = None

        if common_name is not None:
            self.common_name = common_name
        if contact is not None:
            self.contact = contact
        if create_at is not None:
            self.create_at = create_at
        if deploy_info is not None:
            self.deploy_info = deploy_info
        if duration is not None:
            self.duration = duration
        if encryption_algorithm is not None:
            self.encryption_algorithm = encryption_algorithm
        if has_private_key is not None:
            self.has_private_key = has_private_key
        if instance_id is not None:
            self.instance_id = instance_id
        if instance_status is not None:
            self.instance_status = instance_status
        if issued_common_name is not None:
            self.issued_common_name = issued_common_name
        if issued_id is not None:
            self.issued_id = issued_id
        if not_after is not None:
            self.not_after = not_after
        if not_before is not None:
            self.not_before = not_before
        if plan is not None:
            self.plan = plan
        if project_name is not None:
            self.project_name = project_name
        if serial_number is not None:
            self.serial_number = serial_number
        if signature_algorithm is not None:
            self.signature_algorithm = signature_algorithm
        if source_type is not None:
            self.source_type = source_type
        if subject is not None:
            self.subject = subject
        if tag is not None:
            self.tag = tag
        if tags is not None:
            self.tags = tags

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


        :return: The common_name of this ResultForListRootInstancesOutput.  # noqa: E501
        :rtype: str
        """
        return self._common_name

    @common_name.setter
    def common_name(self, common_name):
        """Sets the common_name of this ResultForListRootInstancesOutput.


        :param common_name: The common_name of this ResultForListRootInstancesOutput.  # noqa: E501
        :type: str
        """

        self._common_name = common_name

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


        :return: The contact of this ResultForListRootInstancesOutput.  # noqa: E501
        :rtype: ContactForListRootInstancesOutput
        """
        return self._contact

    @contact.setter
    def contact(self, contact):
        """Sets the contact of this ResultForListRootInstancesOutput.


        :param contact: The contact of this ResultForListRootInstancesOutput.  # noqa: E501
        :type: ContactForListRootInstancesOutput
        """

        self._contact = contact

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


        :return: The create_at of this ResultForListRootInstancesOutput.  # noqa: E501
        :rtype: str
        """
        return self._create_at

    @create_at.setter
    def create_at(self, create_at):
        """Sets the create_at of this ResultForListRootInstancesOutput.


        :param create_at: The create_at of this ResultForListRootInstancesOutput.  # noqa: E501
        :type: str
        """

        self._create_at = create_at

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


        :return: The deploy_info of this ResultForListRootInstancesOutput.  # noqa: E501
        :rtype: DeployInfoForListRootInstancesOutput
        """
        return self._deploy_info

    @deploy_info.setter
    def deploy_info(self, deploy_info):
        """Sets the deploy_info of this ResultForListRootInstancesOutput.


        :param deploy_info: The deploy_info of this ResultForListRootInstancesOutput.  # noqa: E501
        :type: DeployInfoForListRootInstancesOutput
        """

        self._deploy_info = deploy_info

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


        :return: The duration of this ResultForListRootInstancesOutput.  # noqa: E501
        :rtype: str
        """
        return self._duration

    @duration.setter
    def duration(self, duration):
        """Sets the duration of this ResultForListRootInstancesOutput.


        :param duration: The duration of this ResultForListRootInstancesOutput.  # noqa: E501
        :type: str
        """

        self._duration = duration

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


        :return: The encryption_algorithm of this ResultForListRootInstancesOutput.  # noqa: E501
        :rtype: str
        """
        return self._encryption_algorithm

    @encryption_algorithm.setter
    def encryption_algorithm(self, encryption_algorithm):
        """Sets the encryption_algorithm of this ResultForListRootInstancesOutput.


        :param encryption_algorithm: The encryption_algorithm of this ResultForListRootInstancesOutput.  # noqa: E501
        :type: str
        """

        self._encryption_algorithm = encryption_algorithm

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


        :return: The has_private_key of this ResultForListRootInstancesOutput.  # noqa: E501
        :rtype: bool
        """
        return self._has_private_key

    @has_private_key.setter
    def has_private_key(self, has_private_key):
        """Sets the has_private_key of this ResultForListRootInstancesOutput.


        :param has_private_key: The has_private_key of this ResultForListRootInstancesOutput.  # noqa: E501
        :type: bool
        """

        self._has_private_key = has_private_key

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


        :return: The instance_id of this ResultForListRootInstancesOutput.  # noqa: E501
        :rtype: str
        """
        return self._instance_id

    @instance_id.setter
    def instance_id(self, instance_id):
        """Sets the instance_id of this ResultForListRootInstancesOutput.


        :param instance_id: The instance_id of this ResultForListRootInstancesOutput.  # noqa: E501
        :type: str
        """

        self._instance_id = instance_id

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


        :return: The instance_status of this ResultForListRootInstancesOutput.  # noqa: E501
        :rtype: int
        """
        return self._instance_status

    @instance_status.setter
    def instance_status(self, instance_status):
        """Sets the instance_status of this ResultForListRootInstancesOutput.


        :param instance_status: The instance_status of this ResultForListRootInstancesOutput.  # noqa: E501
        :type: int
        """

        self._instance_status = instance_status

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


        :return: The issued_common_name of this ResultForListRootInstancesOutput.  # noqa: E501
        :rtype: str
        """
        return self._issued_common_name

    @issued_common_name.setter
    def issued_common_name(self, issued_common_name):
        """Sets the issued_common_name of this ResultForListRootInstancesOutput.


        :param issued_common_name: The issued_common_name of this ResultForListRootInstancesOutput.  # noqa: E501
        :type: str
        """

        self._issued_common_name = issued_common_name

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


        :return: The issued_id of this ResultForListRootInstancesOutput.  # noqa: E501
        :rtype: str
        """
        return self._issued_id

    @issued_id.setter
    def issued_id(self, issued_id):
        """Sets the issued_id of this ResultForListRootInstancesOutput.


        :param issued_id: The issued_id of this ResultForListRootInstancesOutput.  # noqa: E501
        :type: str
        """

        self._issued_id = issued_id

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


        :return: The not_after of this ResultForListRootInstancesOutput.  # noqa: E501
        :rtype: int
        """
        return self._not_after

    @not_after.setter
    def not_after(self, not_after):
        """Sets the not_after of this ResultForListRootInstancesOutput.


        :param not_after: The not_after of this ResultForListRootInstancesOutput.  # noqa: E501
        :type: int
        """

        self._not_after = not_after

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


        :return: The not_before of this ResultForListRootInstancesOutput.  # noqa: E501
        :rtype: int
        """
        return self._not_before

    @not_before.setter
    def not_before(self, not_before):
        """Sets the not_before of this ResultForListRootInstancesOutput.


        :param not_before: The not_before of this ResultForListRootInstancesOutput.  # noqa: E501
        :type: int
        """

        self._not_before = not_before

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


        :return: The plan of this ResultForListRootInstancesOutput.  # noqa: E501
        :rtype: str
        """
        return self._plan

    @plan.setter
    def plan(self, plan):
        """Sets the plan of this ResultForListRootInstancesOutput.


        :param plan: The plan of this ResultForListRootInstancesOutput.  # noqa: E501
        :type: str
        """

        self._plan = plan

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


        :return: The project_name of this ResultForListRootInstancesOutput.  # noqa: E501
        :rtype: str
        """
        return self._project_name

    @project_name.setter
    def project_name(self, project_name):
        """Sets the project_name of this ResultForListRootInstancesOutput.


        :param project_name: The project_name of this ResultForListRootInstancesOutput.  # noqa: E501
        :type: str
        """

        self._project_name = project_name

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


        :return: The serial_number of this ResultForListRootInstancesOutput.  # noqa: E501
        :rtype: str
        """
        return self._serial_number

    @serial_number.setter
    def serial_number(self, serial_number):
        """Sets the serial_number of this ResultForListRootInstancesOutput.


        :param serial_number: The serial_number of this ResultForListRootInstancesOutput.  # noqa: E501
        :type: str
        """

        self._serial_number = serial_number

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


        :return: The signature_algorithm of this ResultForListRootInstancesOutput.  # noqa: E501
        :rtype: str
        """
        return self._signature_algorithm

    @signature_algorithm.setter
    def signature_algorithm(self, signature_algorithm):
        """Sets the signature_algorithm of this ResultForListRootInstancesOutput.


        :param signature_algorithm: The signature_algorithm of this ResultForListRootInstancesOutput.  # noqa: E501
        :type: str
        """

        self._signature_algorithm = signature_algorithm

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


        :return: The source_type of this ResultForListRootInstancesOutput.  # noqa: E501
        :rtype: int
        """
        return self._source_type

    @source_type.setter
    def source_type(self, source_type):
        """Sets the source_type of this ResultForListRootInstancesOutput.


        :param source_type: The source_type of this ResultForListRootInstancesOutput.  # noqa: E501
        :type: int
        """

        self._source_type = source_type

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


        :return: The subject of this ResultForListRootInstancesOutput.  # noqa: E501
        :rtype: SubjectForListRootInstancesOutput
        """
        return self._subject

    @subject.setter
    def subject(self, subject):
        """Sets the subject of this ResultForListRootInstancesOutput.


        :param subject: The subject of this ResultForListRootInstancesOutput.  # noqa: E501
        :type: SubjectForListRootInstancesOutput
        """

        self._subject = subject

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


        :return: The tag of this ResultForListRootInstancesOutput.  # noqa: E501
        :rtype: str
        """
        return self._tag

    @tag.setter
    def tag(self, tag):
        """Sets the tag of this ResultForListRootInstancesOutput.


        :param tag: The tag of this ResultForListRootInstancesOutput.  # noqa: E501
        :type: str
        """

        self._tag = tag

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


        :return: The tags of this ResultForListRootInstancesOutput.  # noqa: E501
        :rtype: list[TagForListRootInstancesOutput]
        """
        return self._tags

    @tags.setter
    def tags(self, tags):
        """Sets the tags of this ResultForListRootInstancesOutput.


        :param tags: The tags of this ResultForListRootInstancesOutput.  # noqa: E501
        :type: list[TagForListRootInstancesOutput]
        """

        self._tags = tags

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

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