Class Image
java.lang.Object
com.azure.resourcemanager.machinelearning.models.Image
- All Implemented Interfaces:
com.azure.json.JsonSerializable<Image>
Describes the Image Specifications.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the additionalProperties property: Describes the Image Specifications.static ImagefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of Image from the JsonReader.Get the reference property: Image reference.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Type of the image.voidvalidate()Validates the instance.withAdditionalProperties(Map<String, Object> additionalProperties) Set the additionalProperties property: Describes the Image Specifications.withReference(String reference) Set the reference property: Image reference.Set the type property: Type of the image.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
-
Image
public Image()Creates an instance of Image class.
-
-
Method Details
-
type
Get the type property: Type of the image. Possible values are: docker - For docker images. azureml - For AzureML images.- Returns:
- the type value.
-
withType
Set the type property: Type of the image. Possible values are: docker - For docker images. azureml - For AzureML images.- Parameters:
type- the type value to set.- Returns:
- the Image object itself.
-
reference
Get the reference property: Image reference.- Returns:
- the reference value.
-
withReference
Set the reference property: Image reference.- Parameters:
reference- the reference value to set.- Returns:
- the Image object itself.
-
additionalProperties
Get the additionalProperties property: Describes the Image Specifications.- Returns:
- the additionalProperties value.
-
withAdditionalProperties
Set the additionalProperties property: Describes the Image Specifications.- Parameters:
additionalProperties- the additionalProperties value to set.- Returns:
- the Image 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<Image>- Throws:
IOException
-
fromJson
Reads an instance of Image from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of Image 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 Image.
-