Class ComputeInstance

java.lang.Object
com.azure.resourcemanager.machinelearning.models.Compute
com.azure.resourcemanager.machinelearning.models.ComputeInstance
All Implemented Interfaces:
com.azure.json.JsonSerializable<Compute>

public final class ComputeInstance extends Compute
An Azure Machine Learning compute instance.
  • Constructor Details

    • ComputeInstance

      public ComputeInstance()
      Creates an instance of ComputeInstance class.
  • Method Details

    • computeType

      public ComputeType computeType()
      Get the computeType property: The type of compute.
      Overrides:
      computeType in class Compute
      Returns:
      the computeType value.
    • properties

      public ComputeInstanceProperties properties()
      Get the properties property: Properties of ComputeInstance.
      Returns:
      the properties value.
    • withProperties

      public ComputeInstance withProperties(ComputeInstanceProperties properties)
      Set the properties property: Properties of ComputeInstance.
      Parameters:
      properties - the properties value to set.
      Returns:
      the ComputeInstance object itself.
    • provisioningState

      public ProvisioningState provisioningState()
      Get the provisioningState property: The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and Failed.
      Overrides:
      provisioningState in class Compute
      Returns:
      the provisioningState value.
    • createdOn

      public OffsetDateTime createdOn()
      Get the createdOn property: The time at which the compute was created.
      Overrides:
      createdOn in class Compute
      Returns:
      the createdOn value.
    • modifiedOn

      public OffsetDateTime modifiedOn()
      Get the modifiedOn property: The time at which the compute was last modified.
      Overrides:
      modifiedOn in class Compute
      Returns:
      the modifiedOn value.
    • provisioningErrors

      public List<com.azure.core.management.exception.ManagementError> provisioningErrors()
      Get the provisioningErrors property: Errors during provisioning.
      Overrides:
      provisioningErrors in class Compute
      Returns:
      the provisioningErrors value.
    • isAttachedCompute

      public Boolean isAttachedCompute()
      Get the isAttachedCompute property: Indicating whether the compute was provisioned by user and brought from outside if true, or machine learning service provisioned it if false.
      Overrides:
      isAttachedCompute in class Compute
      Returns:
      the isAttachedCompute value.
    • withComputeLocation

      public ComputeInstance withComputeLocation(String computeLocation)
      Set the computeLocation property: Location for the underlying compute.
      Overrides:
      withComputeLocation in class Compute
      Parameters:
      computeLocation - the computeLocation value to set.
      Returns:
      the Compute object itself.
    • withDescription

      public ComputeInstance withDescription(String description)
      Set the description property: The description of the Machine Learning compute.
      Overrides:
      withDescription in class Compute
      Parameters:
      description - the description value to set.
      Returns:
      the Compute object itself.
    • withResourceId

      public ComputeInstance withResourceId(String resourceId)
      Set the resourceId property: ARM resource id of the underlying compute.
      Overrides:
      withResourceId in class Compute
      Parameters:
      resourceId - the resourceId value to set.
      Returns:
      the Compute object itself.
    • withDisableLocalAuth

      public ComputeInstance withDisableLocalAuth(Boolean disableLocalAuth)
      Set the disableLocalAuth property: Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for authentication.
      Overrides:
      withDisableLocalAuth in class Compute
      Parameters:
      disableLocalAuth - the disableLocalAuth value to set.
      Returns:
      the Compute object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class Compute
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<Compute>
      Overrides:
      toJson in class Compute
      Throws:
      IOException
    • fromJson

      public static ComputeInstance fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ComputeInstance from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ComputeInstance if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the ComputeInstance.