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

from .create_batch_task_profile_extended_information_details import CreateBatchTaskProfileExtendedInformationDetails
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 CreateCpuShapeTaskProfileExtendedInformationDetails(CreateBatchTaskProfileExtendedInformationDetails):
    """
    Extended information for the CPU-specific task profile.
    """

    def __init__(self, **kwargs):
        """
        Initializes a new CreateCpuShapeTaskProfileExtendedInformationDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.batch.models.CreateCpuShapeTaskProfileExtendedInformationDetails.type` attribute
        of this class is ``CPU_SHAPE_TASK_PROFILE_EXTENDED_INFORMATION`` 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 CreateCpuShapeTaskProfileExtendedInformationDetails.
            Allowed values for this property are: "CPU_ARCHITECTURE_TASK_PROFILE_EXTENDED_INFORMATION", "CPU_SHAPE_TASK_PROFILE_EXTENDED_INFORMATION", "GPU_SHAPE_TASK_PROFILE_EXTENDED_INFORMATION"
        :type type: str

        :param shape_name:
            The value to assign to the shape_name property of this CreateCpuShapeTaskProfileExtendedInformationDetails.
        :type shape_name: str

        """
        self.swagger_types = {
            'type': 'str',
            'shape_name': 'str'
        }
        self.attribute_map = {
            'type': 'type',
            'shape_name': 'shapeName'
        }
        self._type = None
        self._shape_name = None
        self._type = 'CPU_SHAPE_TASK_PROFILE_EXTENDED_INFORMATION'

    @property
    def shape_name(self):
        """
        **[Required]** Gets the shape_name of this CreateCpuShapeTaskProfileExtendedInformationDetails.
        A name of the CPU shape.


        :return: The shape_name of this CreateCpuShapeTaskProfileExtendedInformationDetails.
        :rtype: str
        """
        return self._shape_name

    @shape_name.setter
    def shape_name(self, shape_name):
        """
        Sets the shape_name of this CreateCpuShapeTaskProfileExtendedInformationDetails.
        A name of the CPU shape.


        :param shape_name: The shape_name of this CreateCpuShapeTaskProfileExtendedInformationDetails.
        :type: str
        """
        self._shape_name = shape_name

    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
