Class GalleryApplicationCustomActionParameter
java.lang.Object
com.azure.resourcemanager.compute.models.GalleryApplicationCustomActionParameter
The definition of a parameter that can be passed to a custom action of a Gallery Application Version.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of GalleryApplicationCustomActionParameter class. -
Method Summary
Modifier and TypeMethodDescriptionGet the defaultValue property: The default value of the parameter.Get the description property: A description to help users understand what this parameter means.name()Get the name property: The name of the custom action.required()Get the required property: Indicates whether this parameter must be passed when running the custom action.type()Get the type property: Specifies the type of the custom action parameter.voidvalidate()Validates the instance.withDefaultValue(String defaultValue) Set the defaultValue property: The default value of the parameter.withDescription(String description) Set the description property: A description to help users understand what this parameter means.Set the name property: The name of the custom action.withRequired(Boolean required) Set the required property: Indicates whether this parameter must be passed when running the custom action.Set the type property: Specifies the type of the custom action parameter.
-
Constructor Details
-
GalleryApplicationCustomActionParameter
public GalleryApplicationCustomActionParameter()Creates an instance of GalleryApplicationCustomActionParameter 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 GalleryApplicationCustomActionParameter object itself.
-
required
Get the required property: Indicates whether this parameter must be passed when running the custom action.- Returns:
- the required value.
-
withRequired
Set the required property: Indicates whether this parameter must be passed when running the custom action.- Parameters:
required- the required value to set.- Returns:
- the GalleryApplicationCustomActionParameter object itself.
-
type
Get the type property: Specifies the type of the custom action parameter. Possible values are: String, ConfigurationDataBlob or LogOutputBlob.- Returns:
- the type value.
-
withType
public GalleryApplicationCustomActionParameter withType(GalleryApplicationCustomActionParameterType type) Set the type property: Specifies the type of the custom action parameter. Possible values are: String, ConfigurationDataBlob or LogOutputBlob.- Parameters:
type- the type value to set.- Returns:
- the GalleryApplicationCustomActionParameter object itself.
-
defaultValue
Get the defaultValue property: The default value of the parameter. Only applies to string types.- Returns:
- the defaultValue value.
-
withDefaultValue
Set the defaultValue property: The default value of the parameter. Only applies to string types.- Parameters:
defaultValue- the defaultValue value to set.- Returns:
- the GalleryApplicationCustomActionParameter object itself.
-
description
Get the description property: A description to help users understand what this parameter means.- Returns:
- the description value.
-
withDescription
Set the description property: A description to help users understand what this parameter means.- Parameters:
description- the description value to set.- Returns:
- the GalleryApplicationCustomActionParameter object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-