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 Summary
ConstructorsConstructorDescriptionCreates an instance of ComputeInstanceContainer class. -
Method Summary
Modifier and TypeMethodDescriptionautosave()Get the autosave property: Auto save settings.Get the environment property: Environment information of this container.static ComputeInstanceContainerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ComputeInstanceContainer from the JsonReader.gpu()Get the gpu property: Information of GPU.name()Get the name property: Name of the ComputeInstance container.network()Get the network property: network of this container.services()Get the services property: services of this containers.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAutosave(Autosave autosave) Set the autosave property: Auto save settings.withEnvironment(ComputeInstanceEnvironmentInfo environment) Set the environment property: Environment information of this container.Set the gpu property: Information of GPU.Set the name property: Name of the ComputeInstance container.withNetwork(Network network) Set the network property: network of this container.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ComputeInstanceContainer
public ComputeInstanceContainer()Creates an instance of ComputeInstanceContainer class.
-
-
Method Details
-
name
Get the name property: Name of the ComputeInstance container.- Returns:
- the name value.
-
withName
Set the name property: Name of the ComputeInstance container.- Parameters:
name- the name value to set.- Returns:
- the ComputeInstanceContainer object itself.
-
autosave
Get the autosave property: Auto save settings.- Returns:
- the autosave value.
-
withAutosave
Set the autosave property: Auto save settings.- Parameters:
autosave- the autosave value to set.- Returns:
- the ComputeInstanceContainer object itself.
-
gpu
Get the gpu property: Information of GPU.- Returns:
- the gpu value.
-
withGpu
Set the gpu property: Information of GPU.- Parameters:
gpu- the gpu value to set.- Returns:
- the ComputeInstanceContainer object itself.
-
network
Get the network property: network of this container.- Returns:
- the network value.
-
withNetwork
Set the network property: network of this container.- Parameters:
network- the network value to set.- Returns:
- the ComputeInstanceContainer object itself.
-
environment
Get the environment property: Environment information of this container.- Returns:
- the environment value.
-
withEnvironment
Set the environment property: Environment information of this container.- Parameters:
environment- the environment value to set.- Returns:
- the ComputeInstanceContainer object itself.
-
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
- Specified by:
toJsonin interfacecom.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.
-