Class ParameterDefinitionsValue
- java.lang.Object
-
- com.azure.resourcemanager.resources.models.ParameterDefinitionsValue
-
public final class ParameterDefinitionsValue extends Object
The definition of a parameter that can be provided to the policy.
-
-
Constructor Summary
Constructors Constructor Description ParameterDefinitionsValue()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Object>allowedValues()Get the allowedValues property: The allowed values for the parameter.ObjectdefaultValue()Get the defaultValue property: The default value for the parameter if no value is provided.ParameterDefinitionsValueMetadatametadata()Get the metadata property: General metadata for the parameter.ParameterTypetype()Get the type property: The data type of the parameter.voidvalidate()Validates the instance.ParameterDefinitionsValuewithAllowedValues(List<Object> allowedValues)Set the allowedValues property: The allowed values for the parameter.ParameterDefinitionsValuewithDefaultValue(Object defaultValue)Set the defaultValue property: The default value for the parameter if no value is provided.ParameterDefinitionsValuewithMetadata(ParameterDefinitionsValueMetadata metadata)Set the metadata property: General metadata for the parameter.ParameterDefinitionsValuewithType(ParameterType type)Set the type property: The data type of the parameter.
-
-
-
Method Detail
-
type
public ParameterType type()
Get the type property: The data type of the parameter.- Returns:
- the type value.
-
withType
public ParameterDefinitionsValue withType(ParameterType type)
Set the type property: The data type of the parameter.- Parameters:
type- the type value to set.- Returns:
- the ParameterDefinitionsValue object itself.
-
allowedValues
public List<Object> allowedValues()
Get the allowedValues property: The allowed values for the parameter.- Returns:
- the allowedValues value.
-
withAllowedValues
public ParameterDefinitionsValue withAllowedValues(List<Object> allowedValues)
Set the allowedValues property: The allowed values for the parameter.- Parameters:
allowedValues- the allowedValues value to set.- Returns:
- the ParameterDefinitionsValue object itself.
-
defaultValue
public Object defaultValue()
Get the defaultValue property: The default value for the parameter if no value is provided.- Returns:
- the defaultValue value.
-
withDefaultValue
public ParameterDefinitionsValue withDefaultValue(Object defaultValue)
Set the defaultValue property: The default value for the parameter if no value is provided.- Parameters:
defaultValue- the defaultValue value to set.- Returns:
- the ParameterDefinitionsValue object itself.
-
metadata
public ParameterDefinitionsValueMetadata metadata()
Get the metadata property: General metadata for the parameter.- Returns:
- the metadata value.
-
withMetadata
public ParameterDefinitionsValue withMetadata(ParameterDefinitionsValueMetadata metadata)
Set the metadata property: General metadata for the parameter.- Parameters:
metadata- the metadata value to set.- Returns:
- the ParameterDefinitionsValue object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-