# 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 .batch_task_profile_extended_information import BatchTaskProfileExtendedInformation
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 CpuArchitectureTaskProfileExtendedInformation(BatchTaskProfileExtendedInformation):
    """
    Extended information about CPU architecture for the task profile.
    """

    #: A constant which can be used with the architecture property of a CpuArchitectureTaskProfileExtendedInformation.
    #: 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 CpuArchitectureTaskProfileExtendedInformation.
    #: This constant has a value of "GENERIC_ARM"
    ARCHITECTURE_GENERIC_ARM = "GENERIC_ARM"

    def __init__(self, **kwargs):
        """
        Initializes a new CpuArchitectureTaskProfileExtendedInformation object with values from keyword arguments. The default value of the :py:attr:`~oci.batch.models.CpuArchitectureTaskProfileExtendedInformation.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 CpuArchitectureTaskProfileExtendedInformation.
            Allowed values for this property are: "CPU_ARCHITECTURE_TASK_PROFILE_EXTENDED_INFORMATION", "CPU_SHAPE_TASK_PROFILE_EXTENDED_INFORMATION", "GPU_SHAPE_TASK_PROFILE_EXTENDED_INFORMATION", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type type: str

        :param architecture:
            The value to assign to the architecture property of this CpuArchitectureTaskProfileExtendedInformation.
            Allowed values for this property are: "GENERIC_X86", "GENERIC_ARM", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :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 CpuArchitectureTaskProfileExtendedInformation.
        Type of CPU architecture.

        Allowed values for this property are: "GENERIC_X86", "GENERIC_ARM", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


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

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


        :param architecture: The architecture of this CpuArchitectureTaskProfileExtendedInformation.
        :type: str
        """
        allowed_values = ["GENERIC_X86", "GENERIC_ARM"]
        if not value_allowed_none_or_none_sentinel(architecture, allowed_values):
            architecture = 'UNKNOWN_ENUM_VALUE'
        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
