# 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 BdsInstanceResetPasswordDetails(object):
    """
    The request body for resetting the password of indicated component.
    """

    #: A constant which can be used with the service property of a BdsInstanceResetPasswordDetails.
    #: This constant has a value of "AMBARI"
    SERVICE_AMBARI = "AMBARI"

    #: A constant which can be used with the service property of a BdsInstanceResetPasswordDetails.
    #: This constant has a value of "HUE"
    SERVICE_HUE = "HUE"

    #: A constant which can be used with the service property of a BdsInstanceResetPasswordDetails.
    #: This constant has a value of "RANGER"
    SERVICE_RANGER = "RANGER"

    #: A constant which can be used with the service property of a BdsInstanceResetPasswordDetails.
    #: This constant has a value of "JUPYTERHUB"
    SERVICE_JUPYTERHUB = "JUPYTERHUB"

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

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

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

        :param service:
            The value to assign to the service property of this BdsInstanceResetPasswordDetails.
            Allowed values for this property are: "AMBARI", "HUE", "RANGER", "JUPYTERHUB"
        :type service: str

        """
        self.swagger_types = {
            'cluster_admin_password': 'str',
            'secret_id': 'str',
            'service': 'str'
        }
        self.attribute_map = {
            'cluster_admin_password': 'clusterAdminPassword',
            'secret_id': 'secretId',
            'service': 'service'
        }
        self._cluster_admin_password = None
        self._secret_id = None
        self._service = None

    @property
    def cluster_admin_password(self):
        """
        Gets the cluster_admin_password of this BdsInstanceResetPasswordDetails.
        Base-64 encoded password for the cluster admin user.


        :return: The cluster_admin_password of this BdsInstanceResetPasswordDetails.
        :rtype: str
        """
        return self._cluster_admin_password

    @cluster_admin_password.setter
    def cluster_admin_password(self, cluster_admin_password):
        """
        Sets the cluster_admin_password of this BdsInstanceResetPasswordDetails.
        Base-64 encoded password for the cluster admin user.


        :param cluster_admin_password: The cluster_admin_password of this BdsInstanceResetPasswordDetails.
        :type: str
        """
        self._cluster_admin_password = cluster_admin_password

    @property
    def secret_id(self):
        """
        Gets the secret_id of this BdsInstanceResetPasswordDetails.
        The secretId for the cluster admin user.


        :return: The secret_id of this BdsInstanceResetPasswordDetails.
        :rtype: str
        """
        return self._secret_id

    @secret_id.setter
    def secret_id(self, secret_id):
        """
        Sets the secret_id of this BdsInstanceResetPasswordDetails.
        The secretId for the cluster admin user.


        :param secret_id: The secret_id of this BdsInstanceResetPasswordDetails.
        :type: str
        """
        self._secret_id = secret_id

    @property
    def service(self):
        """
        **[Required]** Gets the service of this BdsInstanceResetPasswordDetails.
        Target service to which this operation applies.

        Allowed values for this property are: "AMBARI", "HUE", "RANGER", "JUPYTERHUB"


        :return: The service of this BdsInstanceResetPasswordDetails.
        :rtype: str
        """
        return self._service

    @service.setter
    def service(self, service):
        """
        Sets the service of this BdsInstanceResetPasswordDetails.
        Target service to which this operation applies.


        :param service: The service of this BdsInstanceResetPasswordDetails.
        :type: str
        """
        allowed_values = ["AMBARI", "HUE", "RANGER", "JUPYTERHUB"]
        if not value_allowed_none_or_none_sentinel(service, allowed_values):
            raise ValueError(
                f"Invalid value for `service`, must be None or one of {allowed_values}"
            )
        self._service = service

    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
