Class ComputeInstanceEnvironmentInfo
java.lang.Object
com.azure.resourcemanager.machinelearning.models.ComputeInstanceEnvironmentInfo
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ComputeInstanceEnvironmentInfo>
public final class ComputeInstanceEnvironmentInfo
extends Object
implements com.azure.json.JsonSerializable<ComputeInstanceEnvironmentInfo>
Environment information.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ComputeInstanceEnvironmentInfo class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ComputeInstanceEnvironmentInfo from the JsonReader.name()Get the name property: name of environment.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.version()Get the version property: version of environment.Set the name property: name of environment.withVersion(String version) Set the version property: version of environment.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
-
ComputeInstanceEnvironmentInfo
public ComputeInstanceEnvironmentInfo()Creates an instance of ComputeInstanceEnvironmentInfo class.
-
-
Method Details
-
name
Get the name property: name of environment.- Returns:
- the name value.
-
withName
Set the name property: name of environment.- Parameters:
name- the name value to set.- Returns:
- the ComputeInstanceEnvironmentInfo object itself.
-
version
Get the version property: version of environment.- Returns:
- the version value.
-
withVersion
Set the version property: version of environment.- Parameters:
version- the version value to set.- Returns:
- the ComputeInstanceEnvironmentInfo object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ComputeInstanceEnvironmentInfo>- Throws:
IOException
-
fromJson
public static ComputeInstanceEnvironmentInfo fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ComputeInstanceEnvironmentInfo from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ComputeInstanceEnvironmentInfo 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 ComputeInstanceEnvironmentInfo.
-