Class GalleryApplicationCustomAction
java.lang.Object
com.azure.resourcemanager.compute.models.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.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.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.
-
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.
-