ParameterDefinitionsValue Class
- java.
lang. Object - com.
azure. resourcemanager. resources. models. ParameterDefinitionsValue
- com.
Implements
public final class ParameterDefinitionsValue
implements JsonSerializable<ParameterDefinitionsValue>
The definition of a parameter that can be provided to the policy.
Constructor Summary
| Constructor | Description |
|---|---|
| ParameterDefinitionsValue() |
Creates an instance of Parameter |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| List<Object> |
allowedValues()
Get the allowed |
| Object |
defaultValue()
Get the default |
|
static
Parameter |
fromJson(JsonReader jsonReader)
Reads an instance of Parameter |
|
Parameter |
metadata()
Get the metadata property: General metadata for the parameter. |
| Object |
schema()
Get the schema property: Provides validation of parameter inputs during assignment using a self-defined JSON schema. |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Parameter |
type()
Get the type property: The data type of the parameter. |
| void |
validate()
Validates the instance. |
|
Parameter |
withAllowedValues(List<Object> allowedValues)
Set the allowed |
|
Parameter |
withDefaultValue(Object defaultValue)
Set the default |
|
Parameter |
withMetadata(ParameterDefinitionsValueMetadata metadata)
Set the metadata property: General metadata for the parameter. |
|
Parameter |
withSchema(Object schema)
Set the schema property: Provides validation of parameter inputs during assignment using a self-defined JSON schema. |
|
Parameter |
withType(ParameterType type)
Set the type property: The data type of the parameter. |
Methods inherited from java.lang.Object
Constructor Details
ParameterDefinitionsValue
public ParameterDefinitionsValue()
Creates an instance of ParameterDefinitionsValue class.
Method Details
allowedValues
public List<Object> allowedValues()
Get the allowedValues property: The allowed values for the parameter.
Returns:
defaultValue
public Object defaultValue()
Get the defaultValue property: The default value for the parameter if no value is provided.
Returns:
fromJson
public static ParameterDefinitionsValue fromJson(JsonReader jsonReader)
Reads an instance of ParameterDefinitionsValue from the JsonReader.
Parameters:
Returns:
Throws:
metadata
public ParameterDefinitionsValueMetadata metadata()
Get the metadata property: General metadata for the parameter.
Returns:
schema
public Object schema()
Get the schema property: Provides validation of parameter inputs during assignment using a self-defined JSON schema. This property is only supported for object-type parameters and follows the Json.NET Schema 2019-09 implementation. You can learn more about using schemas at https://json-schema.org/ and test draft schemas at https://www.jsonschemavalidator.net/.
Returns:
toJson
type
public ParameterType type()
Get the type property: The data type of the parameter.
Returns:
validate
public void validate()
Validates the instance.
withAllowedValues
public ParameterDefinitionsValue withAllowedValues(List<Object> allowedValues)
Set the allowedValues property: The allowed values for the parameter.
Parameters:
Returns:
withDefaultValue
public ParameterDefinitionsValue withDefaultValue(Object defaultValue)
Set the defaultValue property: The default value for the parameter if no value is provided.
Parameters:
Returns:
withMetadata
public ParameterDefinitionsValue withMetadata(ParameterDefinitionsValueMetadata metadata)
Set the metadata property: General metadata for the parameter.
Parameters:
Returns:
withSchema
public ParameterDefinitionsValue withSchema(Object schema)
Set the schema property: Provides validation of parameter inputs during assignment using a self-defined JSON schema. This property is only supported for object-type parameters and follows the Json.NET Schema 2019-09 implementation. You can learn more about using schemas at https://json-schema.org/ and test draft schemas at https://www.jsonschemavalidator.net/.
Parameters:
Returns:
withType
public ParameterDefinitionsValue withType(ParameterType type)
Set the type property: The data type of the parameter.
Parameters:
Returns: