# 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 GetRootInstanceResponse(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 = {
        'certificate': 'CertificateForGetRootInstanceOutput',
        'common_name': 'str',
        'contact': 'ContactForGetRootInstanceOutput',
        'create_at': 'str',
        'duration': 'str',
        'encryption_algorithm': 'str',
        'instance_id': 'str',
        'instance_status': 'int',
        'not_after': 'int',
        'not_before': 'int',
        'plan': 'str',
        'project_name': 'str',
        'serial_number': 'str',
        'signature_algorithm': 'str',
        'source_type': 'int',
        'subject': 'SubjectForGetRootInstanceOutput',
        'tag': 'str',
        'tags': 'list[TagForGetRootInstanceOutput]'
    }

    attribute_map = {
        'certificate': 'Certificate',
        'common_name': 'CommonName',
        'contact': 'Contact',
        'create_at': 'CreateAt',
        'duration': 'Duration',
        'encryption_algorithm': 'EncryptionAlgorithm',
        'instance_id': 'InstanceId',
        'instance_status': 'InstanceStatus',
        '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, certificate=None, common_name=None, contact=None, create_at=None, duration=None, encryption_algorithm=None, instance_id=None, instance_status=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
        """GetRootInstanceResponse - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._certificate = None
        self._common_name = None
        self._contact = None
        self._create_at = None
        self._duration = None
        self._encryption_algorithm = None
        self._instance_id = None
        self._instance_status = 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 certificate is not None:
            self.certificate = certificate
        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 duration is not None:
            self.duration = duration
        if encryption_algorithm is not None:
            self.encryption_algorithm = encryption_algorithm
        if instance_id is not None:
            self.instance_id = instance_id
        if instance_status is not None:
            self.instance_status = instance_status
        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 certificate(self):
        """Gets the certificate of this GetRootInstanceResponse.  # noqa: E501


        :return: The certificate of this GetRootInstanceResponse.  # noqa: E501
        :rtype: CertificateForGetRootInstanceOutput
        """
        return self._certificate

    @certificate.setter
    def certificate(self, certificate):
        """Sets the certificate of this GetRootInstanceResponse.


        :param certificate: The certificate of this GetRootInstanceResponse.  # noqa: E501
        :type: CertificateForGetRootInstanceOutput
        """

        self._certificate = certificate

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


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

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


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

        self._common_name = common_name

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


        :return: The contact of this GetRootInstanceResponse.  # noqa: E501
        :rtype: ContactForGetRootInstanceOutput
        """
        return self._contact

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


        :param contact: The contact of this GetRootInstanceResponse.  # noqa: E501
        :type: ContactForGetRootInstanceOutput
        """

        self._contact = contact

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


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

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


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

        self._create_at = create_at

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


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

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


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

        self._duration = duration

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


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

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


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

        self._encryption_algorithm = encryption_algorithm

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


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

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


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

        self._instance_id = instance_id

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


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

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


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

        self._instance_status = instance_status

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


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

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


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

        self._not_after = not_after

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


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

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


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

        self._not_before = not_before

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


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

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


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

        self._plan = plan

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


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

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


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

        self._project_name = project_name

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


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

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


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

        self._serial_number = serial_number

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


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

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


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

        self._signature_algorithm = signature_algorithm

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


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

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


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

        self._source_type = source_type

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


        :return: The subject of this GetRootInstanceResponse.  # noqa: E501
        :rtype: SubjectForGetRootInstanceOutput
        """
        return self._subject

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


        :param subject: The subject of this GetRootInstanceResponse.  # noqa: E501
        :type: SubjectForGetRootInstanceOutput
        """

        self._subject = subject

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


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

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


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

        self._tag = tag

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


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

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


        :param tags: The tags of this GetRootInstanceResponse.  # noqa: E501
        :type: list[TagForGetRootInstanceOutput]
        """

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

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