Class UserArtifactManage
java.lang.Object
com.azure.resourcemanager.compute.models.UserArtifactManage
- All Implemented Interfaces:
com.azure.json.JsonSerializable<UserArtifactManage>
public final class UserArtifactManage
extends Object
implements com.azure.json.JsonSerializable<UserArtifactManage>
The UserArtifactManage model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UserArtifactManagefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of UserArtifactManage from the JsonReader.install()Get the install property: Required.remove()Get the remove property: Required.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) update()Get the update property: Optional.voidvalidate()Validates the instance.withInstall(String install) Set the install property: Required.withRemove(String remove) Set the remove property: Required.withUpdate(String update) Set the update property: Optional.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
-
UserArtifactManage
public UserArtifactManage()Creates an instance of UserArtifactManage class.
-
-
Method Details
-
install
Get the install property: Required. The path and arguments to install the gallery application. This is limited to 4096 characters.- Returns:
- the install value.
-
withInstall
Set the install property: Required. The path and arguments to install the gallery application. This is limited to 4096 characters.- Parameters:
install- the install value to set.- Returns:
- the UserArtifactManage object itself.
-
remove
Get the remove property: Required. The path and arguments to remove the gallery application. This is limited to 4096 characters.- Returns:
- the remove value.
-
withRemove
Set the remove property: Required. The path and arguments to remove the gallery application. This is limited to 4096 characters.- Parameters:
remove- the remove value to set.- Returns:
- the UserArtifactManage object itself.
-
update
Get the update property: Optional. The path and arguments to update the gallery application. If not present, then update operation will invoke remove command on the previous version and install command on the current version of the gallery application. This is limited to 4096 characters.- Returns:
- the update value.
-
withUpdate
Set the update property: Optional. The path and arguments to update the gallery application. If not present, then update operation will invoke remove command on the previous version and install command on the current version of the gallery application. This is limited to 4096 characters.- Parameters:
update- the update value to set.- Returns:
- the UserArtifactManage 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<UserArtifactManage>- Throws:
IOException
-
fromJson
Reads an instance of UserArtifactManage from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of UserArtifactManage if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the UserArtifactManage.
-