# 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 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 ManagedComputeClusterInstanceConfigurationDetails(object):
    """
    The compute target instance configuration details for managed compute cluster type compute target.
    """

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

        :param instance_shape:
            The value to assign to the instance_shape property of this ManagedComputeClusterInstanceConfigurationDetails.
        :type instance_shape: str

        :param boot_volume_size_in_gbs:
            The value to assign to the boot_volume_size_in_gbs property of this ManagedComputeClusterInstanceConfigurationDetails.
        :type boot_volume_size_in_gbs: int

        :param instance_shape_details:
            The value to assign to the instance_shape_details property of this ManagedComputeClusterInstanceConfigurationDetails.
        :type instance_shape_details: oci.data_science.models.ManagedComputeClusterInstanceShapeDetails

        """
        self.swagger_types = {
            'instance_shape': 'str',
            'boot_volume_size_in_gbs': 'int',
            'instance_shape_details': 'ManagedComputeClusterInstanceShapeDetails'
        }
        self.attribute_map = {
            'instance_shape': 'instanceShape',
            'boot_volume_size_in_gbs': 'bootVolumeSizeInGBs',
            'instance_shape_details': 'instanceShapeDetails'
        }
        self._instance_shape = None
        self._boot_volume_size_in_gbs = None
        self._instance_shape_details = None

    @property
    def instance_shape(self):
        """
        **[Required]** Gets the instance_shape of this ManagedComputeClusterInstanceConfigurationDetails.
        The shape used to launch the instances in compute target. Supported shapes can be retrieved using compute target shapes api.


        :return: The instance_shape of this ManagedComputeClusterInstanceConfigurationDetails.
        :rtype: str
        """
        return self._instance_shape

    @instance_shape.setter
    def instance_shape(self, instance_shape):
        """
        Sets the instance_shape of this ManagedComputeClusterInstanceConfigurationDetails.
        The shape used to launch the instances in compute target. Supported shapes can be retrieved using compute target shapes api.


        :param instance_shape: The instance_shape of this ManagedComputeClusterInstanceConfigurationDetails.
        :type: str
        """
        self._instance_shape = instance_shape

    @property
    def boot_volume_size_in_gbs(self):
        """
        Gets the boot_volume_size_in_gbs of this ManagedComputeClusterInstanceConfigurationDetails.
        The size of the boot volume to attach to the instance.


        :return: The boot_volume_size_in_gbs of this ManagedComputeClusterInstanceConfigurationDetails.
        :rtype: int
        """
        return self._boot_volume_size_in_gbs

    @boot_volume_size_in_gbs.setter
    def boot_volume_size_in_gbs(self, boot_volume_size_in_gbs):
        """
        Sets the boot_volume_size_in_gbs of this ManagedComputeClusterInstanceConfigurationDetails.
        The size of the boot volume to attach to the instance.


        :param boot_volume_size_in_gbs: The boot_volume_size_in_gbs of this ManagedComputeClusterInstanceConfigurationDetails.
        :type: int
        """
        self._boot_volume_size_in_gbs = boot_volume_size_in_gbs

    @property
    def instance_shape_details(self):
        """
        Gets the instance_shape_details of this ManagedComputeClusterInstanceConfigurationDetails.

        :return: The instance_shape_details of this ManagedComputeClusterInstanceConfigurationDetails.
        :rtype: oci.data_science.models.ManagedComputeClusterInstanceShapeDetails
        """
        return self._instance_shape_details

    @instance_shape_details.setter
    def instance_shape_details(self, instance_shape_details):
        """
        Sets the instance_shape_details of this ManagedComputeClusterInstanceConfigurationDetails.

        :param instance_shape_details: The instance_shape_details of this ManagedComputeClusterInstanceConfigurationDetails.
        :type: oci.data_science.models.ManagedComputeClusterInstanceShapeDetails
        """
        self._instance_shape_details = instance_shape_details

    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
