GalleryApplicationCustomActionParameter Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. GalleryApplicationCustomActionParameter
- com.
Implements
public final class GalleryApplicationCustomActionParameter
implements JsonSerializable<GalleryApplicationCustomActionParameter>
The definition of a parameter that can be passed to a custom action of a Gallery Application Version.
Constructor Summary
Constructor | Description |
---|---|
GalleryApplicationCustomActionParameter() |
Creates an instance of Gallery |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
defaultValue()
Get the default |
String |
description()
Get the description property: A description to help users understand what this parameter means. |
static
Gallery |
fromJson(JsonReader jsonReader)
Reads an instance of Gallery |
String |
name()
Get the name property: The name of the custom action. |
Boolean |
required()
Get the required property: Indicates whether this parameter must be passed when running the custom action. |
Json |
toJson(JsonWriter jsonWriter) |
Gallery |
type()
Get the type property: Specifies the type of the custom action parameter. |
void |
validate()
Validates the instance. |
Gallery |
withDefaultValue(String defaultValue)
Set the default |
Gallery |
withDescription(String description)
Set the description property: A description to help users understand what this parameter means. |
Gallery |
withName(String name)
Set the name property: The name of the custom action. |
Gallery |
withRequired(Boolean required)
Set the required property: Indicates whether this parameter must be passed when running the custom action. |
Gallery |
withType(GalleryApplicationCustomActionParameterType type)
Set the type property: Specifies the type of the custom action parameter. |
Methods inherited from java.lang.Object
Constructor Details
GalleryApplicationCustomActionParameter
public GalleryApplicationCustomActionParameter()
Creates an instance of GalleryApplicationCustomActionParameter class.
Method Details
defaultValue
public String defaultValue()
Get the defaultValue property: The default value of the parameter. Only applies to string types.
Returns:
description
public String description()
Get the description property: A description to help users understand what this parameter means.
Returns:
fromJson
public static GalleryApplicationCustomActionParameter fromJson(JsonReader jsonReader)
Reads an instance of GalleryApplicationCustomActionParameter 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:
required
public Boolean required()
Get the required property: Indicates whether this parameter must be passed when running the custom action.
Returns:
toJson
type
public GalleryApplicationCustomActionParameterType type()
Get the type property: Specifies the type of the custom action parameter. Possible values are: String, ConfigurationDataBlob or LogOutputBlob.
Returns:
validate
public void validate()
Validates the instance.
withDefaultValue
public GalleryApplicationCustomActionParameter withDefaultValue(String defaultValue)
Set the defaultValue property: The default value of the parameter. Only applies to string types.
Parameters:
Returns:
withDescription
public GalleryApplicationCustomActionParameter withDescription(String description)
Set the description property: A description to help users understand what this parameter means.
Parameters:
Returns:
withName
public GalleryApplicationCustomActionParameter withName(String name)
Set the name property: The name of the custom action. Must be unique within the Gallery Application Version.
Parameters:
Returns:
withRequired
public GalleryApplicationCustomActionParameter withRequired(Boolean required)
Set the required property: Indicates whether this parameter must be passed when running the custom action.
Parameters:
Returns:
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:
Returns:
Applies to
Azure SDK for Java