GalleryScriptParameter Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. GenericGalleryParameter - com.
azure. resourcemanager. compute. models. GalleryScriptParameter
- com.
- com.
public final class GalleryScriptParameter
extends GenericGalleryParameter
The definition of a parameter that can be passed to a script of a Gallery Script Version.
Constructor Summary
| Constructor | Description |
|---|---|
| GalleryScriptParameter() |
Creates an instance of Gallery |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| List<String> |
enumValues()
Get the enum |
|
static
Gallery |
fromJson(JsonReader jsonReader)
Reads an instance of Gallery |
| String |
maxValue()
Get the max |
| String |
minValue()
Get the min |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Gallery |
type()
Get the type property: Specifies the type of the Gallery Script 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 |
withEnumValues(List<String> enumValues)
Set the enum |
|
Gallery |
withMaxValue(String maxValue)
Set the max |
|
Gallery |
withMinValue(String minValue)
Set the min |
|
Gallery |
withName(String name)
Set the name property: The name of the parameter. |
|
Gallery |
withRequired(Boolean required)
Set the required property: Indicates whether this parameter must be passed. |
|
Gallery |
withType(GalleryScriptParameterType type)
Set the type property: Specifies the type of the Gallery Script parameter. |
Methods inherited from GenericGalleryParameter
Methods inherited from java.lang.Object
Constructor Details
GalleryScriptParameter
public GalleryScriptParameter()
Creates an instance of GalleryScriptParameter class.
Method Details
enumValues
public List<String> enumValues()
Get the enumValues property: A list of permissible values. Only applicable values are from 'enum' values defined in 'GalleryScriptParameter'.
Returns:
fromJson
public static GalleryScriptParameter fromJson(JsonReader jsonReader)
Reads an instance of GalleryScriptParameter from the JsonReader.
Parameters:
Returns:
Throws:
maxValue
public String maxValue()
Get the maxValue property: The minimum value of parameter.
Returns:
minValue
public String minValue()
Get the minValue property: The minimum value of parameter.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
GalleryScriptParameter.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public GalleryScriptParameterType type()
Get the type property: Specifies the type of the Gallery Script parameter. Possible values are: String, Int, Double, Boolean, Enum.
Returns:
validate
public void validate()
Validates the instance.
Overrides:
GalleryScriptParameter.validate()withDefaultValue
public GalleryScriptParameter withDefaultValue(String defaultValue)
Set the defaultValue property: The default value of the parameter, only applies to string types.
Overrides:
GalleryScriptParameter.withDefaultValue(String defaultValue)Parameters:
withDescription
public GalleryScriptParameter withDescription(String description)
Set the description property: A description to help users understand what this parameter means.
Overrides:
GalleryScriptParameter.withDescription(String description)Parameters:
withEnumValues
public GalleryScriptParameter withEnumValues(List<String> enumValues)
Set the enumValues property: A list of permissible values. Only applicable values are from 'enum' values defined in 'GalleryScriptParameter'.
Parameters:
Returns:
withMaxValue
public GalleryScriptParameter withMaxValue(String maxValue)
Set the maxValue property: The minimum value of parameter.
Parameters:
Returns:
withMinValue
public GalleryScriptParameter withMinValue(String minValue)
Set the minValue property: The minimum value of parameter.
Parameters:
Returns:
withName
public GalleryScriptParameter withName(String name)
Set the name property: The name of the parameter.
Overrides:
GalleryScriptParameter.withName(String name)Parameters:
withRequired
public GalleryScriptParameter withRequired(Boolean required)
Set the required property: Indicates whether this parameter must be passed.
Overrides:
GalleryScriptParameter.withRequired(Boolean required)Parameters:
withType
public GalleryScriptParameter withType(GalleryScriptParameterType type)
Set the type property: Specifies the type of the Gallery Script parameter. Possible values are: String, Int, Double, Boolean, Enum.
Parameters:
Returns: