# 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: 20190531


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 BdsCertificateConfigurationSummary(object):
    """
    Summary details of the BDS certificate configuration.
    """

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

        :param bds_instance_id:
            The value to assign to the bds_instance_id property of this BdsCertificateConfigurationSummary.
        :type bds_instance_id: str

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

        :param certificate_authority_id:
            The value to assign to the certificate_authority_id property of this BdsCertificateConfigurationSummary.
        :type certificate_authority_id: str

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this BdsCertificateConfigurationSummary.
        :type lifecycle_state: str

        :param display_name:
            The value to assign to the display_name property of this BdsCertificateConfigurationSummary.
        :type display_name: str

        :param time_last_refreshed_or_generated:
            The value to assign to the time_last_refreshed_or_generated property of this BdsCertificateConfigurationSummary.
        :type time_last_refreshed_or_generated: datetime

        :param time_created:
            The value to assign to the time_created property of this BdsCertificateConfigurationSummary.
        :type time_created: datetime

        :param time_updated:
            The value to assign to the time_updated property of this BdsCertificateConfigurationSummary.
        :type time_updated: datetime

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

        :param is_default_configuration:
            The value to assign to the is_default_configuration property of this BdsCertificateConfigurationSummary.
        :type is_default_configuration: bool

        :param compartment_id:
            The value to assign to the compartment_id property of this BdsCertificateConfigurationSummary.
        :type compartment_id: str

        :param freeform_tags:
            The value to assign to the freeform_tags property of this BdsCertificateConfigurationSummary.
        :type freeform_tags: dict(str, str)

        :param defined_tags:
            The value to assign to the defined_tags property of this BdsCertificateConfigurationSummary.
        :type defined_tags: dict(str, dict(str, object))

        """
        self.swagger_types = {
            'bds_instance_id': 'str',
            'id': 'str',
            'certificate_authority_id': 'str',
            'lifecycle_state': 'str',
            'display_name': 'str',
            'time_last_refreshed_or_generated': 'datetime',
            'time_created': 'datetime',
            'time_updated': 'datetime',
            'type': 'str',
            'is_default_configuration': 'bool',
            'compartment_id': 'str',
            'freeform_tags': 'dict(str, str)',
            'defined_tags': 'dict(str, dict(str, object))'
        }
        self.attribute_map = {
            'bds_instance_id': 'bdsInstanceId',
            'id': 'id',
            'certificate_authority_id': 'certificateAuthorityId',
            'lifecycle_state': 'lifecycleState',
            'display_name': 'displayName',
            'time_last_refreshed_or_generated': 'timeLastRefreshedOrGenerated',
            'time_created': 'timeCreated',
            'time_updated': 'timeUpdated',
            'type': 'type',
            'is_default_configuration': 'isDefaultConfiguration',
            'compartment_id': 'compartmentId',
            'freeform_tags': 'freeformTags',
            'defined_tags': 'definedTags'
        }
        self._bds_instance_id = None
        self._id = None
        self._certificate_authority_id = None
        self._lifecycle_state = None
        self._display_name = None
        self._time_last_refreshed_or_generated = None
        self._time_created = None
        self._time_updated = None
        self._type = None
        self._is_default_configuration = None
        self._compartment_id = None
        self._freeform_tags = None
        self._defined_tags = None

    @property
    def bds_instance_id(self):
        """
        Gets the bds_instance_id of this BdsCertificateConfigurationSummary.
        The OCID of the bdsInstance which is the parent resource id.


        :return: The bds_instance_id of this BdsCertificateConfigurationSummary.
        :rtype: str
        """
        return self._bds_instance_id

    @bds_instance_id.setter
    def bds_instance_id(self, bds_instance_id):
        """
        Sets the bds_instance_id of this BdsCertificateConfigurationSummary.
        The OCID of the bdsInstance which is the parent resource id.


        :param bds_instance_id: The bds_instance_id of this BdsCertificateConfigurationSummary.
        :type: str
        """
        self._bds_instance_id = bds_instance_id

    @property
    def id(self):
        """
        **[Required]** Gets the id of this BdsCertificateConfigurationSummary.
        The ID of the BDS certificate configuration defined under BDS resources, not OCID.


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

    @id.setter
    def id(self, id):
        """
        Sets the id of this BdsCertificateConfigurationSummary.
        The ID of the BDS certificate configuration defined under BDS resources, not OCID.


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

    @property
    def certificate_authority_id(self):
        """
        Gets the certificate_authority_id of this BdsCertificateConfigurationSummary.
        The OCID of the certificate authority which is associated with this certificate configuration. The value is Null when this BDS certificate configuration type is SELF_SIGNED.


        :return: The certificate_authority_id of this BdsCertificateConfigurationSummary.
        :rtype: str
        """
        return self._certificate_authority_id

    @certificate_authority_id.setter
    def certificate_authority_id(self, certificate_authority_id):
        """
        Sets the certificate_authority_id of this BdsCertificateConfigurationSummary.
        The OCID of the certificate authority which is associated with this certificate configuration. The value is Null when this BDS certificate configuration type is SELF_SIGNED.


        :param certificate_authority_id: The certificate_authority_id of this BdsCertificateConfigurationSummary.
        :type: str
        """
        self._certificate_authority_id = certificate_authority_id

    @property
    def lifecycle_state(self):
        """
        **[Required]** Gets the lifecycle_state of this BdsCertificateConfigurationSummary.
        The lifecycle status of the BDS certificate configuration.


        :return: The lifecycle_state of this BdsCertificateConfigurationSummary.
        :rtype: str
        """
        return self._lifecycle_state

    @lifecycle_state.setter
    def lifecycle_state(self, lifecycle_state):
        """
        Sets the lifecycle_state of this BdsCertificateConfigurationSummary.
        The lifecycle status of the BDS certificate configuration.


        :param lifecycle_state: The lifecycle_state of this BdsCertificateConfigurationSummary.
        :type: str
        """
        self._lifecycle_state = lifecycle_state

    @property
    def display_name(self):
        """
        Gets the display_name of this BdsCertificateConfigurationSummary.
        The display name of BDS certificate configuration.


        :return: The display_name of this BdsCertificateConfigurationSummary.
        :rtype: str
        """
        return self._display_name

    @display_name.setter
    def display_name(self, display_name):
        """
        Sets the display_name of this BdsCertificateConfigurationSummary.
        The display name of BDS certificate configuration.


        :param display_name: The display_name of this BdsCertificateConfigurationSummary.
        :type: str
        """
        self._display_name = display_name

    @property
    def time_last_refreshed_or_generated(self):
        """
        Gets the time_last_refreshed_or_generated of this BdsCertificateConfigurationSummary.
        The last time the BDS certificate configuration was used to generate or renew the certificate(s).


        :return: The time_last_refreshed_or_generated of this BdsCertificateConfigurationSummary.
        :rtype: datetime
        """
        return self._time_last_refreshed_or_generated

    @time_last_refreshed_or_generated.setter
    def time_last_refreshed_or_generated(self, time_last_refreshed_or_generated):
        """
        Sets the time_last_refreshed_or_generated of this BdsCertificateConfigurationSummary.
        The last time the BDS certificate configuration was used to generate or renew the certificate(s).


        :param time_last_refreshed_or_generated: The time_last_refreshed_or_generated of this BdsCertificateConfigurationSummary.
        :type: datetime
        """
        self._time_last_refreshed_or_generated = time_last_refreshed_or_generated

    @property
    def time_created(self):
        """
        Gets the time_created of this BdsCertificateConfigurationSummary.
        The time when the BDS certificate configuration was created, shown as an RFC 3339 formatted datetime string.


        :return: The time_created of this BdsCertificateConfigurationSummary.
        :rtype: datetime
        """
        return self._time_created

    @time_created.setter
    def time_created(self, time_created):
        """
        Sets the time_created of this BdsCertificateConfigurationSummary.
        The time when the BDS certificate configuration was created, shown as an RFC 3339 formatted datetime string.


        :param time_created: The time_created of this BdsCertificateConfigurationSummary.
        :type: datetime
        """
        self._time_created = time_created

    @property
    def time_updated(self):
        """
        Gets the time_updated of this BdsCertificateConfigurationSummary.
        The time the BDS certificate configuration was updated, shown as an RFC 3339 formatted datetime string.


        :return: The time_updated of this BdsCertificateConfigurationSummary.
        :rtype: datetime
        """
        return self._time_updated

    @time_updated.setter
    def time_updated(self, time_updated):
        """
        Sets the time_updated of this BdsCertificateConfigurationSummary.
        The time the BDS certificate configuration was updated, shown as an RFC 3339 formatted datetime string.


        :param time_updated: The time_updated of this BdsCertificateConfigurationSummary.
        :type: datetime
        """
        self._time_updated = time_updated

    @property
    def type(self):
        """
        **[Required]** Gets the type of this BdsCertificateConfigurationSummary.
        The type of the BDS certificate configuration, also the type of the BDS certificates which will be generated by the BDS certificate configuration.


        :return: The type of this BdsCertificateConfigurationSummary.
        :rtype: str
        """
        return self._type

    @type.setter
    def type(self, type):
        """
        Sets the type of this BdsCertificateConfigurationSummary.
        The type of the BDS certificate configuration, also the type of the BDS certificates which will be generated by the BDS certificate configuration.


        :param type: The type of this BdsCertificateConfigurationSummary.
        :type: str
        """
        self._type = type

    @property
    def is_default_configuration(self):
        """
        **[Required]** Gets the is_default_configuration of this BdsCertificateConfigurationSummary.
        If this BDS certificate configuration is a default configuration or not. There will be only one Default certificate configuration per BDS cluster.


        :return: The is_default_configuration of this BdsCertificateConfigurationSummary.
        :rtype: bool
        """
        return self._is_default_configuration

    @is_default_configuration.setter
    def is_default_configuration(self, is_default_configuration):
        """
        Sets the is_default_configuration of this BdsCertificateConfigurationSummary.
        If this BDS certificate configuration is a default configuration or not. There will be only one Default certificate configuration per BDS cluster.


        :param is_default_configuration: The is_default_configuration of this BdsCertificateConfigurationSummary.
        :type: bool
        """
        self._is_default_configuration = is_default_configuration

    @property
    def compartment_id(self):
        """
        Gets the compartment_id of this BdsCertificateConfigurationSummary.
        The OCID of the compartment of the certificate authority connecting to this certificate configuration.


        :return: The compartment_id of this BdsCertificateConfigurationSummary.
        :rtype: str
        """
        return self._compartment_id

    @compartment_id.setter
    def compartment_id(self, compartment_id):
        """
        Sets the compartment_id of this BdsCertificateConfigurationSummary.
        The OCID of the compartment of the certificate authority connecting to this certificate configuration.


        :param compartment_id: The compartment_id of this BdsCertificateConfigurationSummary.
        :type: str
        """
        self._compartment_id = compartment_id

    @property
    def freeform_tags(self):
        """
        Gets the freeform_tags of this BdsCertificateConfigurationSummary.
        Simple key-value pair that is applied without any predefined name, type, or scope.
        Exists for cross-compatibility only. For example, `{\"bar-key\": \"value\"}`


        :return: The freeform_tags of this BdsCertificateConfigurationSummary.
        :rtype: dict(str, str)
        """
        return self._freeform_tags

    @freeform_tags.setter
    def freeform_tags(self, freeform_tags):
        """
        Sets the freeform_tags of this BdsCertificateConfigurationSummary.
        Simple key-value pair that is applied without any predefined name, type, or scope.
        Exists for cross-compatibility only. For example, `{\"bar-key\": \"value\"}`


        :param freeform_tags: The freeform_tags of this BdsCertificateConfigurationSummary.
        :type: dict(str, str)
        """
        self._freeform_tags = freeform_tags

    @property
    def defined_tags(self):
        """
        Gets the defined_tags of this BdsCertificateConfigurationSummary.
        Defined tags for this resource. Each key is predefined and scoped to a namespace.
        For example, `{\"foo-namespace\": {\"bar-key\": \"value\"}}`


        :return: The defined_tags of this BdsCertificateConfigurationSummary.
        :rtype: dict(str, dict(str, object))
        """
        return self._defined_tags

    @defined_tags.setter
    def defined_tags(self, defined_tags):
        """
        Sets the defined_tags of this BdsCertificateConfigurationSummary.
        Defined tags for this resource. Each key is predefined and scoped to a namespace.
        For example, `{\"foo-namespace\": {\"bar-key\": \"value\"}}`


        :param defined_tags: The defined_tags of this BdsCertificateConfigurationSummary.
        :type: dict(str, dict(str, object))
        """
        self._defined_tags = defined_tags

    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
