Class ComputeInstanceContainer

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

public final class ComputeInstanceContainer extends Object implements com.azure.json.JsonSerializable<ComputeInstanceContainer>
Defines an Aml Instance container.
  • Constructor Details

    • ComputeInstanceContainer

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

    • name

      public String name()
      Get the name property: Name of the ComputeInstance container.
      Returns:
      the name value.
    • withName

      public ComputeInstanceContainer withName(String name)
      Set the name property: Name of the ComputeInstance container.
      Parameters:
      name - the name value to set.
      Returns:
      the ComputeInstanceContainer object itself.
    • autosave

      public Autosave autosave()
      Get the autosave property: Auto save settings.
      Returns:
      the autosave value.
    • withAutosave

      public ComputeInstanceContainer withAutosave(Autosave autosave)
      Set the autosave property: Auto save settings.
      Parameters:
      autosave - the autosave value to set.
      Returns:
      the ComputeInstanceContainer object itself.
    • gpu

      public String gpu()
      Get the gpu property: Information of GPU.
      Returns:
      the gpu value.
    • withGpu

      public ComputeInstanceContainer withGpu(String gpu)
      Set the gpu property: Information of GPU.
      Parameters:
      gpu - the gpu value to set.
      Returns:
      the ComputeInstanceContainer object itself.
    • network

      public Network network()
      Get the network property: network of this container.
      Returns:
      the network value.
    • withNetwork

      public ComputeInstanceContainer withNetwork(Network network)
      Set the network property: network of this container.
      Parameters:
      network - the network value to set.
      Returns:
      the ComputeInstanceContainer object itself.
    • environment

      public ComputeInstanceEnvironmentInfo environment()
      Get the environment property: Environment information of this container.
      Returns:
      the environment value.
    • withEnvironment

      public ComputeInstanceContainer withEnvironment(ComputeInstanceEnvironmentInfo environment)
      Set the environment property: Environment information of this container.
      Parameters:
      environment - the environment value to set.
      Returns:
      the ComputeInstanceContainer object itself.
    • services

      public List<Object> services()
      Get the services property: services of this containers.
      Returns:
      the services value.
    • validate

      public void validate()
      Validates the instance.
      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<ComputeInstanceContainer>
      Throws:
      IOException
    • fromJson

      public static ComputeInstanceContainer fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ComputeInstanceContainer from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ComputeInstanceContainer 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 ComputeInstanceContainer.