# 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 .job_infrastructure_configuration_details import JobInfrastructureConfigurationDetails
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 ManagedComputeClusterJobInfrastructureConfigurationDetails(JobInfrastructureConfigurationDetails):
    """
    The job infrastructure configuration for compute target.
    """

    def __init__(self, **kwargs):
        """
        Initializes a new ManagedComputeClusterJobInfrastructureConfigurationDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.data_science.models.ManagedComputeClusterJobInfrastructureConfigurationDetails.job_infrastructure_type` attribute
        of this class is ``MANAGED_COMPUTE_CLUSTER`` and it should not be changed.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param job_infrastructure_type:
            The value to assign to the job_infrastructure_type property of this ManagedComputeClusterJobInfrastructureConfigurationDetails.
            Allowed values for this property are: "STANDALONE", "ME_STANDALONE", "MULTI_NODE", "EMPTY", "MANAGED_COMPUTE_CLUSTER"
        :type job_infrastructure_type: str

        :param compute_target_id:
            The value to assign to the compute_target_id property of this ManagedComputeClusterJobInfrastructureConfigurationDetails.
        :type compute_target_id: str

        :param resource_configuration:
            The value to assign to the resource_configuration property of this ManagedComputeClusterJobInfrastructureConfigurationDetails.
        :type resource_configuration: oci.data_science.models.ManagedComputeClusterJobResourceConfiguration

        """
        self.swagger_types = {
            'job_infrastructure_type': 'str',
            'compute_target_id': 'str',
            'resource_configuration': 'ManagedComputeClusterJobResourceConfiguration'
        }
        self.attribute_map = {
            'job_infrastructure_type': 'jobInfrastructureType',
            'compute_target_id': 'computeTargetId',
            'resource_configuration': 'resourceConfiguration'
        }
        self._job_infrastructure_type = None
        self._compute_target_id = None
        self._resource_configuration = None
        self._job_infrastructure_type = 'MANAGED_COMPUTE_CLUSTER'

    @property
    def compute_target_id(self):
        """
        **[Required]** Gets the compute_target_id of this ManagedComputeClusterJobInfrastructureConfigurationDetails.
        The `OCID`__ of the compute target.

        __ https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm


        :return: The compute_target_id of this ManagedComputeClusterJobInfrastructureConfigurationDetails.
        :rtype: str
        """
        return self._compute_target_id

    @compute_target_id.setter
    def compute_target_id(self, compute_target_id):
        """
        Sets the compute_target_id of this ManagedComputeClusterJobInfrastructureConfigurationDetails.
        The `OCID`__ of the compute target.

        __ https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm


        :param compute_target_id: The compute_target_id of this ManagedComputeClusterJobInfrastructureConfigurationDetails.
        :type: str
        """
        self._compute_target_id = compute_target_id

    @property
    def resource_configuration(self):
        """
        **[Required]** Gets the resource_configuration of this ManagedComputeClusterJobInfrastructureConfigurationDetails.

        :return: The resource_configuration of this ManagedComputeClusterJobInfrastructureConfigurationDetails.
        :rtype: oci.data_science.models.ManagedComputeClusterJobResourceConfiguration
        """
        return self._resource_configuration

    @resource_configuration.setter
    def resource_configuration(self, resource_configuration):
        """
        Sets the resource_configuration of this ManagedComputeClusterJobInfrastructureConfigurationDetails.

        :param resource_configuration: The resource_configuration of this ManagedComputeClusterJobInfrastructureConfigurationDetails.
        :type: oci.data_science.models.ManagedComputeClusterJobResourceConfiguration
        """
        self._resource_configuration = resource_configuration

    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
