Class GalleryScriptParameter
java.lang.Object
com.azure.resourcemanager.compute.models.GenericGalleryParameter
com.azure.resourcemanager.compute.models.GalleryScriptParameter
- All Implemented Interfaces:
com.azure.json.JsonSerializable<GenericGalleryParameter>
The definition of a parameter that can be passed to a script of a Gallery Script Version.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of GalleryScriptParameter class. -
Method Summary
Modifier and TypeMethodDescriptionGet the enumValues property: A list of permissible values.static GalleryScriptParameterfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of GalleryScriptParameter from the JsonReader.maxValue()Get the maxValue property: The minimum value of parameter.minValue()Get the minValue property: The minimum value of parameter.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Specifies the type of the Gallery Script parameter.voidvalidate()Validates the instance.withDefaultValue(String defaultValue) Set the defaultValue property: The default value of the parameter, only applies to string types.withDescription(String description) Set the description property: A description to help users understand what this parameter means.withEnumValues(List<String> enumValues) Set the enumValues property: A list of permissible values.withMaxValue(String maxValue) Set the maxValue property: The minimum value of parameter.withMinValue(String minValue) Set the minValue property: The minimum value of parameter.Set the name property: The name of the parameter.withRequired(Boolean required) Set the required property: Indicates whether this parameter must be passed.Set the type property: Specifies the type of the Gallery Script parameter.Methods inherited from class GenericGalleryParameter
defaultValue, description, name, requiredMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
GalleryScriptParameter
public GalleryScriptParameter()Creates an instance of GalleryScriptParameter class.
-
-
Method Details
-
type
Get the type property: Specifies the type of the Gallery Script parameter. Possible values are: String, Int, Double, Boolean, Enum.- Returns:
- the type value.
-
withType
Set the type property: Specifies the type of the Gallery Script parameter. Possible values are: String, Int, Double, Boolean, Enum.- Parameters:
type- the type value to set.- Returns:
- the GalleryScriptParameter object itself.
-
minValue
Get the minValue property: The minimum value of parameter.- Returns:
- the minValue value.
-
withMinValue
Set the minValue property: The minimum value of parameter.- Parameters:
minValue- the minValue value to set.- Returns:
- the GalleryScriptParameter object itself.
-
maxValue
Get the maxValue property: The minimum value of parameter.- Returns:
- the maxValue value.
-
withMaxValue
Set the maxValue property: The minimum value of parameter.- Parameters:
maxValue- the maxValue value to set.- Returns:
- the GalleryScriptParameter object itself.
-
enumValues
-
withEnumValues
Set the enumValues property: A list of permissible values. Only applicable values are from 'enum' values defined in 'GalleryScriptParameter'.- Parameters:
enumValues- the enumValues value to set.- Returns:
- the GalleryScriptParameter object itself.
-
withName
Set the name property: The name of the parameter.- Overrides:
withNamein classGenericGalleryParameter- Parameters:
name- the name value to set.- Returns:
- the GenericGalleryParameter object itself.
-
withRequired
Set the required property: Indicates whether this parameter must be passed.- Overrides:
withRequiredin classGenericGalleryParameter- Parameters:
required- the required value to set.- Returns:
- the GenericGalleryParameter object itself.
-
withDefaultValue
Set the defaultValue property: The default value of the parameter, only applies to string types.- Overrides:
withDefaultValuein classGenericGalleryParameter- Parameters:
defaultValue- the defaultValue value to set.- Returns:
- the GenericGalleryParameter object itself.
-
withDescription
Set the description property: A description to help users understand what this parameter means.- Overrides:
withDescriptionin classGenericGalleryParameter- Parameters:
description- the description value to set.- Returns:
- the GenericGalleryParameter object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classGenericGalleryParameter- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<GenericGalleryParameter>- Overrides:
toJsonin classGenericGalleryParameter- Throws:
IOException
-
fromJson
public static GalleryScriptParameter fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of GalleryScriptParameter from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of GalleryScriptParameter if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the GalleryScriptParameter.
-