GenericGalleryParameter Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. GenericGalleryParameter
- com.
Implements
public class GenericGalleryParameter
implements JsonSerializable<GenericGalleryParameter>
The definition of a generic gallery parameter.
Constructor Summary
| Constructor | Description |
|---|---|
| GenericGalleryParameter() |
Creates an instance of Generic |
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
Generic |
fromJson(JsonReader jsonReader)
Reads an instance of Generic |
| String |
name()
Get the name property: The name of the parameter. |
| Boolean |
required()
Get the required property: Indicates whether this parameter must be passed. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Generic |
withDefaultValue(String defaultValue)
Set the default |
|
Generic |
withDescription(String description)
Set the description property: A description to help users understand what this parameter means. |
|
Generic |
withName(String name)
Set the name property: The name of the parameter. |
|
Generic |
withRequired(Boolean required)
Set the required property: Indicates whether this parameter must be passed. |
Methods inherited from java.lang.Object
Constructor Details
GenericGalleryParameter
public GenericGalleryParameter()
Creates an instance of GenericGalleryParameter 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 GenericGalleryParameter fromJson(JsonReader jsonReader)
Reads an instance of GenericGalleryParameter from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: The name of the parameter.
Returns:
required
public Boolean required()
Get the required property: Indicates whether this parameter must be passed.
Returns:
toJson
validate
public void validate()
Validates the instance.
withDefaultValue
public GenericGalleryParameter withDefaultValue(String defaultValue)
Set the defaultValue property: The default value of the parameter, only applies to string types.
Parameters:
Returns:
withDescription
public GenericGalleryParameter withDescription(String description)
Set the description property: A description to help users understand what this parameter means.
Parameters:
Returns:
withName
public GenericGalleryParameter withName(String name)
Set the name property: The name of the parameter.
Parameters:
Returns:
withRequired
public GenericGalleryParameter withRequired(Boolean required)
Set the required property: Indicates whether this parameter must be passed.
Parameters:
Returns: