Class GalleryApplicationCustomAction

java.lang.Object
com.azure.resourcemanager.compute.models.GalleryApplicationCustomAction

public final class GalleryApplicationCustomAction extends Object
A custom action that can be performed with a Gallery Application Version.
  • Constructor Details

    • GalleryApplicationCustomAction

      public GalleryApplicationCustomAction()
      Creates an instance of GalleryApplicationCustomAction class.
  • Method Details

    • name

      public String name()
      Get the name property: The name of the custom action. Must be unique within the Gallery Application Version.
      Returns:
      the name value.
    • 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:
      name - the name value to set.
      Returns:
      the GalleryApplicationCustomAction object itself.
    • script

      public String script()
      Get the script property: The script to run when executing this custom action.
      Returns:
      the script value.
    • withScript

      public GalleryApplicationCustomAction withScript(String script)
      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

      public String description()
      Get the description property: Description to help the users understand what this custom action does.
      Returns:
      the description value.
    • withDescription

      public GalleryApplicationCustomAction withDescription(String description)
      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

      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.