# coding: utf-8
# Copyright (c) 2016, 2026, Oracle and/or its affiliates.  All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.

# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20220509


from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel  # noqa: F401
from oci.decorators import init_model_state_from_kwargs


@init_model_state_from_kwargs
class OlvmCertificate(object):
    """
    The TLS certificate in case of a TLS connection.
    """

    def __init__(self, **kwargs):
        """
        Initializes a new OlvmCertificate object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param comment:
            The value to assign to the comment property of this OlvmCertificate.
        :type comment: str

        :param content:
            The value to assign to the content property of this OlvmCertificate.
        :type content: str

        :param certificate_description:
            The value to assign to the certificate_description property of this OlvmCertificate.
        :type certificate_description: str

        :param id:
            The value to assign to the id property of this OlvmCertificate.
        :type id: str

        :param name:
            The value to assign to the name property of this OlvmCertificate.
        :type name: str

        :param organization:
            The value to assign to the organization property of this OlvmCertificate.
        :type organization: str

        :param subject:
            The value to assign to the subject property of this OlvmCertificate.
        :type subject: str

        """
        self.swagger_types = {
            'comment': 'str',
            'content': 'str',
            'certificate_description': 'str',
            'id': 'str',
            'name': 'str',
            'organization': 'str',
            'subject': 'str'
        }
        self.attribute_map = {
            'comment': 'comment',
            'content': 'content',
            'certificate_description': 'certificateDescription',
            'id': 'id',
            'name': 'name',
            'organization': 'organization',
            'subject': 'subject'
        }
        self._comment = None
        self._content = None
        self._certificate_description = None
        self._id = None
        self._name = None
        self._organization = None
        self._subject = None

    @property
    def comment(self):
        """
        Gets the comment of this OlvmCertificate.
        Free text containing comments about this object.


        :return: The comment of this OlvmCertificate.
        :rtype: str
        """
        return self._comment

    @comment.setter
    def comment(self, comment):
        """
        Sets the comment of this OlvmCertificate.
        Free text containing comments about this object.


        :param comment: The comment of this OlvmCertificate.
        :type: str
        """
        self._comment = comment

    @property
    def content(self):
        """
        Gets the content of this OlvmCertificate.
        Content of the certificate.


        :return: The content of this OlvmCertificate.
        :rtype: str
        """
        return self._content

    @content.setter
    def content(self, content):
        """
        Sets the content of this OlvmCertificate.
        Content of the certificate.


        :param content: The content of this OlvmCertificate.
        :type: str
        """
        self._content = content

    @property
    def certificate_description(self):
        """
        Gets the certificate_description of this OlvmCertificate.
        A human-readable description in plain text.


        :return: The certificate_description of this OlvmCertificate.
        :rtype: str
        """
        return self._certificate_description

    @certificate_description.setter
    def certificate_description(self, certificate_description):
        """
        Sets the certificate_description of this OlvmCertificate.
        A human-readable description in plain text.


        :param certificate_description: The certificate_description of this OlvmCertificate.
        :type: str
        """
        self._certificate_description = certificate_description

    @property
    def id(self):
        """
        Gets the id of this OlvmCertificate.
        A unique identifier.


        :return: The id of this OlvmCertificate.
        :rtype: str
        """
        return self._id

    @id.setter
    def id(self, id):
        """
        Sets the id of this OlvmCertificate.
        A unique identifier.


        :param id: The id of this OlvmCertificate.
        :type: str
        """
        self._id = id

    @property
    def name(self):
        """
        Gets the name of this OlvmCertificate.
        A human-readable name in plain text.


        :return: The name of this OlvmCertificate.
        :rtype: str
        """
        return self._name

    @name.setter
    def name(self, name):
        """
        Sets the name of this OlvmCertificate.
        A human-readable name in plain text.


        :param name: The name of this OlvmCertificate.
        :type: str
        """
        self._name = name

    @property
    def organization(self):
        """
        Gets the organization of this OlvmCertificate.
        Organization of the certificate


        :return: The organization of this OlvmCertificate.
        :rtype: str
        """
        return self._organization

    @organization.setter
    def organization(self, organization):
        """
        Sets the organization of this OlvmCertificate.
        Organization of the certificate


        :param organization: The organization of this OlvmCertificate.
        :type: str
        """
        self._organization = organization

    @property
    def subject(self):
        """
        Gets the subject of this OlvmCertificate.
        Subject of the certificate


        :return: The subject of this OlvmCertificate.
        :rtype: str
        """
        return self._subject

    @subject.setter
    def subject(self, subject):
        """
        Sets the subject of this OlvmCertificate.
        Subject of the certificate


        :param subject: The subject of this OlvmCertificate.
        :type: str
        """
        self._subject = subject

    def __repr__(self):
        return formatted_flat_dict(self)

    def __eq__(self, other):
        if other is None:
            return False

        return self.__dict__ == other.__dict__

    def __ne__(self, other):
        return not self == other
