# 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 .fleet_shape_execution_details import FleetShapeExecutionDetails
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 CpuFleetShapeExecutionDetails(FleetShapeExecutionDetails):
    """
    Details about the CPU shape which was used for the task execution.
    """

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

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

        :param ocpus:
            The value to assign to the ocpus property of this CpuFleetShapeExecutionDetails.
        :type ocpus: int

        :param memory_in_gbs:
            The value to assign to the memory_in_gbs property of this CpuFleetShapeExecutionDetails.
        :type memory_in_gbs: int

        :param disk_size_in_gbs:
            The value to assign to the disk_size_in_gbs property of this CpuFleetShapeExecutionDetails.
        :type disk_size_in_gbs: int

        """
        self.swagger_types = {
            'type': 'str',
            'shape_name': 'str',
            'ocpus': 'int',
            'memory_in_gbs': 'int',
            'disk_size_in_gbs': 'int'
        }
        self.attribute_map = {
            'type': 'type',
            'shape_name': 'shapeName',
            'ocpus': 'ocpus',
            'memory_in_gbs': 'memoryInGBs',
            'disk_size_in_gbs': 'diskSizeInGBs'
        }
        self._type = None
        self._shape_name = None
        self._ocpus = None
        self._memory_in_gbs = None
        self._disk_size_in_gbs = None
        self._type = 'CPU_FLEET_SHAPE_EXECUTION_DETAILS'

    @property
    def shape_name(self):
        """
        Gets the shape_name of this CpuFleetShapeExecutionDetails.
        Name of the shape.


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

    @shape_name.setter
    def shape_name(self, shape_name):
        """
        Sets the shape_name of this CpuFleetShapeExecutionDetails.
        Name of the shape.


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

    @property
    def ocpus(self):
        """
        Gets the ocpus of this CpuFleetShapeExecutionDetails.
        Number of OCPUs provided by the shape.


        :return: The ocpus of this CpuFleetShapeExecutionDetails.
        :rtype: int
        """
        return self._ocpus

    @ocpus.setter
    def ocpus(self, ocpus):
        """
        Sets the ocpus of this CpuFleetShapeExecutionDetails.
        Number of OCPUs provided by the shape.


        :param ocpus: The ocpus of this CpuFleetShapeExecutionDetails.
        :type: int
        """
        self._ocpus = ocpus

    @property
    def memory_in_gbs(self):
        """
        Gets the memory_in_gbs of this CpuFleetShapeExecutionDetails.
        Amount of memory in GBs provided by the shape.


        :return: The memory_in_gbs of this CpuFleetShapeExecutionDetails.
        :rtype: int
        """
        return self._memory_in_gbs

    @memory_in_gbs.setter
    def memory_in_gbs(self, memory_in_gbs):
        """
        Sets the memory_in_gbs of this CpuFleetShapeExecutionDetails.
        Amount of memory in GBs provided by the shape.


        :param memory_in_gbs: The memory_in_gbs of this CpuFleetShapeExecutionDetails.
        :type: int
        """
        self._memory_in_gbs = memory_in_gbs

    @property
    def disk_size_in_gbs(self):
        """
        Gets the disk_size_in_gbs of this CpuFleetShapeExecutionDetails.
        Amount of disk space provided by the shape.


        :return: The disk_size_in_gbs of this CpuFleetShapeExecutionDetails.
        :rtype: int
        """
        return self._disk_size_in_gbs

    @disk_size_in_gbs.setter
    def disk_size_in_gbs(self, disk_size_in_gbs):
        """
        Sets the disk_size_in_gbs of this CpuFleetShapeExecutionDetails.
        Amount of disk space provided by the shape.


        :param disk_size_in_gbs: The disk_size_in_gbs of this CpuFleetShapeExecutionDetails.
        :type: int
        """
        self._disk_size_in_gbs = disk_size_in_gbs

    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
