# 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, to_dict, redact_password_field  # noqa: F401
from oci.decorators import init_model_state_from_kwargs


@init_model_state_from_kwargs
class UpdateAutoScalingConfigurationDetails(object):
    """
    The information about the autoscale configuration.
    """

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

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

        :param is_enabled:
            The value to assign to the is_enabled property of this UpdateAutoScalingConfigurationDetails.
        :type is_enabled: bool

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

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

        :param policy:
            The value to assign to the policy property of this UpdateAutoScalingConfigurationDetails.
        :type policy: oci.bds.models.AutoScalePolicy

        :param policy_details:
            The value to assign to the policy_details property of this UpdateAutoScalingConfigurationDetails.
        :type policy_details: oci.bds.models.UpdateAutoScalePolicyDetails

        """
        self.swagger_types = {
            'display_name': 'str',
            'is_enabled': 'bool',
            'cluster_admin_password': 'str',
            'secret_id': 'str',
            'policy': 'AutoScalePolicy',
            'policy_details': 'UpdateAutoScalePolicyDetails'
        }
        self.attribute_map = {
            'display_name': 'displayName',
            'is_enabled': 'isEnabled',
            'cluster_admin_password': 'clusterAdminPassword',
            'secret_id': 'secretId',
            'policy': 'policy',
            'policy_details': 'policyDetails'
        }
        self._redacted_field_paths = [
            ['cluster_admin_password'],
        ]
        self._display_name = None
        self._is_enabled = None
        self._cluster_admin_password = None
        self._secret_id = None
        self._policy = None
        self._policy_details = None

    @property
    def display_name(self):
        """
        Gets the display_name of this UpdateAutoScalingConfigurationDetails.
        A user-friendly name. The name does not have to be unique, and it may be changed. Avoid entering confidential information.


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

    @display_name.setter
    def display_name(self, display_name):
        """
        Sets the display_name of this UpdateAutoScalingConfigurationDetails.
        A user-friendly name. The name does not have to be unique, and it may be changed. Avoid entering confidential information.


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

    @property
    def is_enabled(self):
        """
        Gets the is_enabled of this UpdateAutoScalingConfigurationDetails.
        Whether the autoscale configuration is enabled.


        :return: The is_enabled of this UpdateAutoScalingConfigurationDetails.
        :rtype: bool
        """
        return self._is_enabled

    @is_enabled.setter
    def is_enabled(self, is_enabled):
        """
        Sets the is_enabled of this UpdateAutoScalingConfigurationDetails.
        Whether the autoscale configuration is enabled.


        :param is_enabled: The is_enabled of this UpdateAutoScalingConfigurationDetails.
        :type: bool
        """
        self._is_enabled = is_enabled

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


        :return: The cluster_admin_password of this UpdateAutoScalingConfigurationDetails.
        :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 UpdateAutoScalingConfigurationDetails.
        Base-64 encoded password for the cluster (and Cloudera Manager) admin user.


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

    @property
    def secret_id(self):
        """
        Gets the secret_id of this UpdateAutoScalingConfigurationDetails.
        The secretId for the clusterAdminPassword.


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

    @secret_id.setter
    def secret_id(self, secret_id):
        """
        Sets the secret_id of this UpdateAutoScalingConfigurationDetails.
        The secretId for the clusterAdminPassword.


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

    @property
    def policy(self):
        """
        Gets the policy of this UpdateAutoScalingConfigurationDetails.

        :return: The policy of this UpdateAutoScalingConfigurationDetails.
        :rtype: oci.bds.models.AutoScalePolicy
        """
        return self._policy

    @policy.setter
    def policy(self, policy):
        """
        Sets the policy of this UpdateAutoScalingConfigurationDetails.

        :param policy: The policy of this UpdateAutoScalingConfigurationDetails.
        :type: oci.bds.models.AutoScalePolicy
        """
        self._policy = policy

    @property
    def policy_details(self):
        """
        Gets the policy_details of this UpdateAutoScalingConfigurationDetails.

        :return: The policy_details of this UpdateAutoScalingConfigurationDetails.
        :rtype: oci.bds.models.UpdateAutoScalePolicyDetails
        """
        return self._policy_details

    @policy_details.setter
    def policy_details(self, policy_details):
        """
        Sets the policy_details of this UpdateAutoScalingConfigurationDetails.

        :param policy_details: The policy_details of this UpdateAutoScalingConfigurationDetails.
        :type: oci.bds.models.UpdateAutoScalePolicyDetails
        """
        self._policy_details = policy_details

    def __repr__(self):
        as_dict = to_dict(self)
        redact_password_field(as_dict, ['cluster_admin_password'])
        return formatted_flat_dict(as_dict)

    def __eq__(self, other):
        if other is None:
            return False

        return self.__dict__ == other.__dict__

    def __ne__(self, other):
        return not self == other
