# 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 .update_property_set_details import UpdatePropertySetDetails
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 UpdatePropertySetApexDocumentGeneratorDetails(UpdatePropertySetDetails):
    """
    Contains the update details of an APEX document generator property set
    """

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

        :param key:
            The value to assign to the key property of this UpdatePropertySetApexDocumentGeneratorDetails.
            Allowed values for this property are: "APEX_DOCUMENT_GENERATOR", "APEX", "APEX_FA_INTEGRATION", "ORACLE_DATABASE_EXTERNAL_AUTHENTICATION"
        :type key: str

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

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

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

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

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

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

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

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

        """
        self.swagger_types = {
            'key': 'str',
            'print_server_type': 'str',
            'credential_key': 'str',
            'autonomous_database_resource_principal_status': 'str',
            'object_storage_namespace': 'str',
            'object_storage_bucket_compartment_id': 'str',
            'object_storage_endpoint': 'str',
            'function_id': 'str',
            'invoke_endpoint': 'str'
        }
        self.attribute_map = {
            'key': 'key',
            'print_server_type': 'printServerType',
            'credential_key': 'credentialKey',
            'autonomous_database_resource_principal_status': 'autonomousDatabaseResourcePrincipalStatus',
            'object_storage_namespace': 'objectStorageNamespace',
            'object_storage_bucket_compartment_id': 'objectStorageBucketCompartmentId',
            'object_storage_endpoint': 'objectStorageEndpoint',
            'function_id': 'functionId',
            'invoke_endpoint': 'invokeEndpoint'
        }
        self._key = None
        self._print_server_type = None
        self._credential_key = None
        self._autonomous_database_resource_principal_status = None
        self._object_storage_namespace = None
        self._object_storage_bucket_compartment_id = None
        self._object_storage_endpoint = None
        self._function_id = None
        self._invoke_endpoint = None
        self._key = 'APEX_DOCUMENT_GENERATOR'

    @property
    def print_server_type(self):
        """
        Gets the print_server_type of this UpdatePropertySetApexDocumentGeneratorDetails.
        The print server type


        :return: The print_server_type of this UpdatePropertySetApexDocumentGeneratorDetails.
        :rtype: str
        """
        return self._print_server_type

    @print_server_type.setter
    def print_server_type(self, print_server_type):
        """
        Sets the print_server_type of this UpdatePropertySetApexDocumentGeneratorDetails.
        The print server type


        :param print_server_type: The print_server_type of this UpdatePropertySetApexDocumentGeneratorDetails.
        :type: str
        """
        self._print_server_type = print_server_type

    @property
    def credential_key(self):
        """
        Gets the credential_key of this UpdatePropertySetApexDocumentGeneratorDetails.
        The name of the credential used by APEX to manage Object Storage Buckets and Objects as well as invoke the Document Generator function.


        :return: The credential_key of this UpdatePropertySetApexDocumentGeneratorDetails.
        :rtype: str
        """
        return self._credential_key

    @credential_key.setter
    def credential_key(self, credential_key):
        """
        Sets the credential_key of this UpdatePropertySetApexDocumentGeneratorDetails.
        The name of the credential used by APEX to manage Object Storage Buckets and Objects as well as invoke the Document Generator function.


        :param credential_key: The credential_key of this UpdatePropertySetApexDocumentGeneratorDetails.
        :type: str
        """
        self._credential_key = credential_key

    @property
    def autonomous_database_resource_principal_status(self):
        """
        Gets the autonomous_database_resource_principal_status of this UpdatePropertySetApexDocumentGeneratorDetails.
        The status of the Autonomous Database Serverless Resource Principal (OCI$RESOURCE_PRINCIPAL)


        :return: The autonomous_database_resource_principal_status of this UpdatePropertySetApexDocumentGeneratorDetails.
        :rtype: str
        """
        return self._autonomous_database_resource_principal_status

    @autonomous_database_resource_principal_status.setter
    def autonomous_database_resource_principal_status(self, autonomous_database_resource_principal_status):
        """
        Sets the autonomous_database_resource_principal_status of this UpdatePropertySetApexDocumentGeneratorDetails.
        The status of the Autonomous Database Serverless Resource Principal (OCI$RESOURCE_PRINCIPAL)


        :param autonomous_database_resource_principal_status: The autonomous_database_resource_principal_status of this UpdatePropertySetApexDocumentGeneratorDetails.
        :type: str
        """
        self._autonomous_database_resource_principal_status = autonomous_database_resource_principal_status

    @property
    def object_storage_namespace(self):
        """
        Gets the object_storage_namespace of this UpdatePropertySetApexDocumentGeneratorDetails.
        The Object Storage Namespace containing the Object Storage Buckets managed by APEX


        :return: The object_storage_namespace of this UpdatePropertySetApexDocumentGeneratorDetails.
        :rtype: str
        """
        return self._object_storage_namespace

    @object_storage_namespace.setter
    def object_storage_namespace(self, object_storage_namespace):
        """
        Sets the object_storage_namespace of this UpdatePropertySetApexDocumentGeneratorDetails.
        The Object Storage Namespace containing the Object Storage Buckets managed by APEX


        :param object_storage_namespace: The object_storage_namespace of this UpdatePropertySetApexDocumentGeneratorDetails.
        :type: str
        """
        self._object_storage_namespace = object_storage_namespace

    @property
    def object_storage_bucket_compartment_id(self):
        """
        Gets the object_storage_bucket_compartment_id of this UpdatePropertySetApexDocumentGeneratorDetails.
        The `OCID`__ of the compartment containing the Object Storage Buckets managed by APEX

        __ https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm


        :return: The object_storage_bucket_compartment_id of this UpdatePropertySetApexDocumentGeneratorDetails.
        :rtype: str
        """
        return self._object_storage_bucket_compartment_id

    @object_storage_bucket_compartment_id.setter
    def object_storage_bucket_compartment_id(self, object_storage_bucket_compartment_id):
        """
        Sets the object_storage_bucket_compartment_id of this UpdatePropertySetApexDocumentGeneratorDetails.
        The `OCID`__ of the compartment containing the Object Storage Buckets managed by APEX

        __ https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm


        :param object_storage_bucket_compartment_id: The object_storage_bucket_compartment_id of this UpdatePropertySetApexDocumentGeneratorDetails.
        :type: str
        """
        self._object_storage_bucket_compartment_id = object_storage_bucket_compartment_id

    @property
    def object_storage_endpoint(self):
        """
        Gets the object_storage_endpoint of this UpdatePropertySetApexDocumentGeneratorDetails.
        Object Storage Endpoint


        :return: The object_storage_endpoint of this UpdatePropertySetApexDocumentGeneratorDetails.
        :rtype: str
        """
        return self._object_storage_endpoint

    @object_storage_endpoint.setter
    def object_storage_endpoint(self, object_storage_endpoint):
        """
        Sets the object_storage_endpoint of this UpdatePropertySetApexDocumentGeneratorDetails.
        Object Storage Endpoint


        :param object_storage_endpoint: The object_storage_endpoint of this UpdatePropertySetApexDocumentGeneratorDetails.
        :type: str
        """
        self._object_storage_endpoint = object_storage_endpoint

    @property
    def function_id(self):
        """
        Gets the function_id of this UpdatePropertySetApexDocumentGeneratorDetails.
        The `OCID`__ of the Document Generator function

        __ https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm


        :return: The function_id of this UpdatePropertySetApexDocumentGeneratorDetails.
        :rtype: str
        """
        return self._function_id

    @function_id.setter
    def function_id(self, function_id):
        """
        Sets the function_id of this UpdatePropertySetApexDocumentGeneratorDetails.
        The `OCID`__ of the Document Generator function

        __ https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm


        :param function_id: The function_id of this UpdatePropertySetApexDocumentGeneratorDetails.
        :type: str
        """
        self._function_id = function_id

    @property
    def invoke_endpoint(self):
        """
        Gets the invoke_endpoint of this UpdatePropertySetApexDocumentGeneratorDetails.
        The base endpoint URL to use to invoke the Document Generator function


        :return: The invoke_endpoint of this UpdatePropertySetApexDocumentGeneratorDetails.
        :rtype: str
        """
        return self._invoke_endpoint

    @invoke_endpoint.setter
    def invoke_endpoint(self, invoke_endpoint):
        """
        Sets the invoke_endpoint of this UpdatePropertySetApexDocumentGeneratorDetails.
        The base endpoint URL to use to invoke the Document Generator function


        :param invoke_endpoint: The invoke_endpoint of this UpdatePropertySetApexDocumentGeneratorDetails.
        :type: str
        """
        self._invoke_endpoint = invoke_endpoint

    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
