Class CustomImageFragment
java.lang.Object
com.azure.resourcemanager.devtestlabs.models.UpdateResource
com.azure.resourcemanager.devtestlabs.models.CustomImageFragment
- All Implemented Interfaces:
com.azure.json.JsonSerializable<UpdateResource>
A custom image.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CustomImageFragment
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of CustomImageFragment from the JsonReader.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.Set the tags property: The tags of the resource.Methods inherited from class com.azure.resourcemanager.devtestlabs.models.UpdateResource
tags
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
CustomImageFragment
public CustomImageFragment()Creates an instance of CustomImageFragment class.
-
-
Method Details
-
withTags
Set the tags property: The tags of the resource.- Overrides:
withTags
in classUpdateResource
- Parameters:
tags
- the tags value to set.- Returns:
- the UpdateResource object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classUpdateResource
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<UpdateResource>
- Overrides:
toJson
in classUpdateResource
- Throws:
IOException
-
fromJson
Reads an instance of CustomImageFragment from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of CustomImageFragment 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 CustomImageFragment.
-