GalleryApplicationCustomAction Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. GalleryApplicationCustomAction
- com.
Implements
public final class GalleryApplicationCustomAction
implements JsonSerializable<GalleryApplicationCustomAction>
A custom action that can be performed with a Gallery Application Version.
Constructor Summary
Constructor | Description |
---|---|
GalleryApplicationCustomAction() |
Creates an instance of Gallery |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
description()
Get the description property: Description to help the users understand what this custom action does. |
static
Gallery |
fromJson(JsonReader jsonReader)
Reads an instance of Gallery |
String |
name()
Get the name property: The name of the custom action. |
List<Gallery |
parameters()
Get the parameters property: The parameters that this custom action uses. |
String |
script()
Get the script property: The script to run when executing this custom action. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Gallery |
withDescription(String description)
Set the description property: Description to help the users understand what this custom action does. |
Gallery |
withName(String name)
Set the name property: The name of the custom action. |
Gallery |
withParameters(List<GalleryApplicationCustomActionParameter> parameters)
Set the parameters property: The parameters that this custom action uses. |
Gallery |
withScript(String script)
Set the script property: The script to run when executing this custom action. |
Methods inherited from java.lang.Object
Constructor Details
GalleryApplicationCustomAction
public GalleryApplicationCustomAction()
Creates an instance of GalleryApplicationCustomAction class.
Method Details
description
public String description()
Get the description property: Description to help the users understand what this custom action does.
Returns:
fromJson
public static GalleryApplicationCustomAction fromJson(JsonReader jsonReader)
Reads an instance of GalleryApplicationCustomAction from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: The name of the custom action. Must be unique within the Gallery Application Version.
Returns:
parameters
public List
Get the parameters property: The parameters that this custom action uses.
Returns:
script
public String script()
Get the script property: The script to run when executing this custom action.
Returns:
toJson
validate
public void validate()
Validates the instance.
withDescription
public GalleryApplicationCustomAction withDescription(String description)
Set the description property: Description to help the users understand what this custom action does.
Parameters:
Returns:
withName
public GalleryApplicationCustomAction withName(String name)
Set the name property: The name of the custom action. Must be unique within the Gallery Application Version.
Parameters:
Returns:
withParameters
public GalleryApplicationCustomAction withParameters(List
Set the parameters property: The parameters that this custom action uses.
Parameters:
Returns:
withScript
public GalleryApplicationCustomAction withScript(String script)
Set the script property: The script to run when executing this custom action.
Parameters:
Returns:
Applies to
Azure SDK for Java