Class GalleryApplicationCustomAction
java.lang.Object
com.azure.resourcemanager.compute.models.GalleryApplicationCustomAction
- All Implemented Interfaces:
com.azure.json.JsonSerializable<GalleryApplicationCustomAction>
public final class GalleryApplicationCustomAction
extends Object
implements com.azure.json.JsonSerializable<GalleryApplicationCustomAction>
A custom action that can be performed with a Gallery Application Version.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of GalleryApplicationCustomAction class. -
Method Summary
Modifier and TypeMethodDescriptionGet the description property: Description to help the users understand what this custom action does.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of GalleryApplicationCustomAction from the JsonReader.name()Get the name property: The name of the custom action.Get the parameters property: The parameters that this custom action uses.script()Get the script property: The script to run when executing this custom action.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDescription(String description) Set the description property: Description to help the users understand what this custom action does.Set the name property: The name of the custom action.withParameters(List<GalleryApplicationCustomActionParameter> parameters) Set the parameters property: The parameters that this custom action uses.withScript(String script) Set the script property: The script to run when executing this custom action.Methods inherited from class 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
-
GalleryApplicationCustomAction
public GalleryApplicationCustomAction()Creates an instance of GalleryApplicationCustomAction class.
-
-
Method Details
-
name
Get the name property: The name of the custom action. Must be unique within the Gallery Application Version.- Returns:
- the name value.
-
withName
Set the name property: The name of the custom action. Must be unique within the Gallery Application Version.- Parameters:
name- the name value to set.- Returns:
- the GalleryApplicationCustomAction object itself.
-
script
Get the script property: The script to run when executing this custom action.- Returns:
- the script value.
-
withScript
Set the script property: The script to run when executing this custom action.- Parameters:
script- the script value to set.- Returns:
- the GalleryApplicationCustomAction object itself.
-
description
Get the description property: Description to help the users understand what this custom action does.- Returns:
- the description value.
-
withDescription
Set the description property: Description to help the users understand what this custom action does.- Parameters:
description- the description value to set.- Returns:
- the GalleryApplicationCustomAction object itself.
-
parameters
Get the parameters property: The parameters that this custom action uses.- Returns:
- the parameters value.
-
withParameters
public GalleryApplicationCustomAction withParameters(List<GalleryApplicationCustomActionParameter> parameters) Set the parameters property: The parameters that this custom action uses.- Parameters:
parameters- the parameters value to set.- Returns:
- the GalleryApplicationCustomAction 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<GalleryApplicationCustomAction>- Throws:
IOException
-
fromJson
public static GalleryApplicationCustomAction fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of GalleryApplicationCustomAction from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of GalleryApplicationCustomAction 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 GalleryApplicationCustomAction.
-