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

from .create_auth_configuration_details import CreateAuthConfigurationDetails
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 CreateIdcsCustomServiceAuthConfigurationDetails(CreateAuthConfigurationDetails):
    """
    Create configuration for existing Oracle Cloud Service
    """

    def __init__(self, **kwargs):
        """
        Initializes a new CreateIdcsCustomServiceAuthConfigurationDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.data_science.models.CreateIdcsCustomServiceAuthConfigurationDetails.type` attribute
        of this class is ``IDCS_CUSTOM_SERVICE`` 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 CreateIdcsCustomServiceAuthConfigurationDetails.
        :type type: str

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

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

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

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

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

        """
        self.swagger_types = {
            'type': 'str',
            'audience': 'str',
            'scope': 'str',
            'application_name': 'str',
            'role_name': 'str',
            'access_token': 'str'
        }
        self.attribute_map = {
            'type': 'type',
            'audience': 'audience',
            'scope': 'scope',
            'application_name': 'applicationName',
            'role_name': 'roleName',
            'access_token': 'accessToken'
        }
        self._type = None
        self._audience = None
        self._scope = None
        self._application_name = None
        self._role_name = None
        self._access_token = None
        self._type = 'IDCS_CUSTOM_SERVICE'

    @property
    def audience(self):
        """
        **[Required]** Gets the audience of this CreateIdcsCustomServiceAuthConfigurationDetails.
        Audience of the IDCS application


        :return: The audience of this CreateIdcsCustomServiceAuthConfigurationDetails.
        :rtype: str
        """
        return self._audience

    @audience.setter
    def audience(self, audience):
        """
        Sets the audience of this CreateIdcsCustomServiceAuthConfigurationDetails.
        Audience of the IDCS application


        :param audience: The audience of this CreateIdcsCustomServiceAuthConfigurationDetails.
        :type: str
        """
        self._audience = audience

    @property
    def scope(self):
        """
        **[Required]** Gets the scope of this CreateIdcsCustomServiceAuthConfigurationDetails.
        Scope of the IDCS application


        :return: The scope of this CreateIdcsCustomServiceAuthConfigurationDetails.
        :rtype: str
        """
        return self._scope

    @scope.setter
    def scope(self, scope):
        """
        Sets the scope of this CreateIdcsCustomServiceAuthConfigurationDetails.
        Scope of the IDCS application


        :param scope: The scope of this CreateIdcsCustomServiceAuthConfigurationDetails.
        :type: str
        """
        self._scope = scope

    @property
    def application_name(self):
        """
        **[Required]** Gets the application_name of this CreateIdcsCustomServiceAuthConfigurationDetails.
        Name of the IDCS application


        :return: The application_name of this CreateIdcsCustomServiceAuthConfigurationDetails.
        :rtype: str
        """
        return self._application_name

    @application_name.setter
    def application_name(self, application_name):
        """
        Sets the application_name of this CreateIdcsCustomServiceAuthConfigurationDetails.
        Name of the IDCS application


        :param application_name: The application_name of this CreateIdcsCustomServiceAuthConfigurationDetails.
        :type: str
        """
        self._application_name = application_name

    @property
    def role_name(self):
        """
        Gets the role_name of this CreateIdcsCustomServiceAuthConfigurationDetails.
        Name of the IDCS application role


        :return: The role_name of this CreateIdcsCustomServiceAuthConfigurationDetails.
        :rtype: str
        """
        return self._role_name

    @role_name.setter
    def role_name(self, role_name):
        """
        Sets the role_name of this CreateIdcsCustomServiceAuthConfigurationDetails.
        Name of the IDCS application role


        :param role_name: The role_name of this CreateIdcsCustomServiceAuthConfigurationDetails.
        :type: str
        """
        self._role_name = role_name

    @property
    def access_token(self):
        """
        **[Required]** Gets the access_token of this CreateIdcsCustomServiceAuthConfigurationDetails.
        Bearer token serving as Proof-of-Ownership for referenced IDCS stripe/application


        :return: The access_token of this CreateIdcsCustomServiceAuthConfigurationDetails.
        :rtype: str
        """
        return self._access_token

    @access_token.setter
    def access_token(self, access_token):
        """
        Sets the access_token of this CreateIdcsCustomServiceAuthConfigurationDetails.
        Bearer token serving as Proof-of-Ownership for referenced IDCS stripe/application


        :param access_token: The access_token of this CreateIdcsCustomServiceAuthConfigurationDetails.
        :type: str
        """
        self._access_token = access_token

    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
