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

from .database_api_gateway_config_certificate_bundle import DatabaseApiGatewayConfigCertificateBundle
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 DatabaseApiGatewayConfigCertificateBundleFileName(DatabaseApiGatewayConfigCertificateBundle):
    """
    The certificate bundle that describes the SSL certicicate files.
    """

    def __init__(self, **kwargs):
        """
        Initializes a new DatabaseApiGatewayConfigCertificateBundleFileName object with values from keyword arguments. The default value of the :py:attr:`~oci.database_tools_runtime.models.DatabaseApiGatewayConfigCertificateBundleFileName.type` attribute
        of this class is ``FILENAME`` and it should not be changed.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param type:
            The value to assign to the type property of this DatabaseApiGatewayConfigCertificateBundleFileName.
            Allowed values for this property are: "FILENAME", "SELF_SIGNED"
        :type type: str

        :param certificate_public:
            The value to assign to the certificate_public property of this DatabaseApiGatewayConfigCertificateBundleFileName.
        :type certificate_public: oci.database_tools_runtime.models.DatabaseApiGatewayConfigCertificatePublicFileName

        :param certificate_private_key:
            The value to assign to the certificate_private_key property of this DatabaseApiGatewayConfigCertificateBundleFileName.
        :type certificate_private_key: oci.database_tools_runtime.models.DatabaseApiGatewayConfigCertificatePrivateKeyFileName

        """
        self.swagger_types = {
            'type': 'str',
            'certificate_public': 'DatabaseApiGatewayConfigCertificatePublicFileName',
            'certificate_private_key': 'DatabaseApiGatewayConfigCertificatePrivateKeyFileName'
        }
        self.attribute_map = {
            'type': 'type',
            'certificate_public': 'certificatePublic',
            'certificate_private_key': 'certificatePrivateKey'
        }
        self._type = None
        self._certificate_public = None
        self._certificate_private_key = None
        self._type = 'FILENAME'

    @property
    def certificate_public(self):
        """
        Gets the certificate_public of this DatabaseApiGatewayConfigCertificateBundleFileName.

        :return: The certificate_public of this DatabaseApiGatewayConfigCertificateBundleFileName.
        :rtype: oci.database_tools_runtime.models.DatabaseApiGatewayConfigCertificatePublicFileName
        """
        return self._certificate_public

    @certificate_public.setter
    def certificate_public(self, certificate_public):
        """
        Sets the certificate_public of this DatabaseApiGatewayConfigCertificateBundleFileName.

        :param certificate_public: The certificate_public of this DatabaseApiGatewayConfigCertificateBundleFileName.
        :type: oci.database_tools_runtime.models.DatabaseApiGatewayConfigCertificatePublicFileName
        """
        self._certificate_public = certificate_public

    @property
    def certificate_private_key(self):
        """
        Gets the certificate_private_key of this DatabaseApiGatewayConfigCertificateBundleFileName.

        :return: The certificate_private_key of this DatabaseApiGatewayConfigCertificateBundleFileName.
        :rtype: oci.database_tools_runtime.models.DatabaseApiGatewayConfigCertificatePrivateKeyFileName
        """
        return self._certificate_private_key

    @certificate_private_key.setter
    def certificate_private_key(self, certificate_private_key):
        """
        Sets the certificate_private_key of this DatabaseApiGatewayConfigCertificateBundleFileName.

        :param certificate_private_key: The certificate_private_key of this DatabaseApiGatewayConfigCertificateBundleFileName.
        :type: oci.database_tools_runtime.models.DatabaseApiGatewayConfigCertificatePrivateKeyFileName
        """
        self._certificate_private_key = certificate_private_key

    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
