# 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 CreateCpuArchitectureTaskProfileExtendedInformationDetails(CreateBatchTaskProfileExtendedInformationDetails):
    """
    Extended information about CPU architecture for the task profile.
    """

    #: A constant which can be used with the architecture property of a CreateCpuArchitectureTaskProfileExtendedInformationDetails.
    #: This constant has a value of "GENERIC_X86"
    ARCHITECTURE_GENERIC_X86 = "GENERIC_X86"

    #: A constant which can be used with the architecture property of a CreateCpuArchitectureTaskProfileExtendedInformationDetails.
    #: This constant has a value of "GENERIC_ARM"
    ARCHITECTURE_GENERIC_ARM = "GENERIC_ARM"

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

        """
        self.swagger_types = {
            'type': 'str',
            'architecture': 'str'
        }
        self.attribute_map = {
            'type': 'type',
            'architecture': 'architecture'
        }
        self._type = None
        self._architecture = None
        self._type = 'CPU_ARCHITECTURE_TASK_PROFILE_EXTENDED_INFORMATION'

    @property
    def architecture(self):
        """
        **[Required]** Gets the architecture of this CreateCpuArchitectureTaskProfileExtendedInformationDetails.
        Type of CPU architecture.

        Allowed values for this property are: "GENERIC_X86", "GENERIC_ARM"


        :return: The architecture of this CreateCpuArchitectureTaskProfileExtendedInformationDetails.
        :rtype: str
        """
        return self._architecture

    @architecture.setter
    def architecture(self, architecture):
        """
        Sets the architecture of this CreateCpuArchitectureTaskProfileExtendedInformationDetails.
        Type of CPU architecture.


        :param architecture: The architecture of this CreateCpuArchitectureTaskProfileExtendedInformationDetails.
        :type: str
        """
        allowed_values = ["GENERIC_X86", "GENERIC_ARM"]
        if not value_allowed_none_or_none_sentinel(architecture, allowed_values):
            raise ValueError(
                f"Invalid value for `architecture`, must be None or one of {allowed_values}"
            )
        self._architecture = architecture

    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
