Class EnvironmentDefinitionParameter
java.lang.Object
com.azure.developer.devcenter.models.EnvironmentDefinitionParameter
- All Implemented Interfaces:
com.azure.json.JsonSerializable<EnvironmentDefinitionParameter>
public final class EnvironmentDefinitionParameter
extends Object
implements com.azure.json.JsonSerializable<EnvironmentDefinitionParameter>
Properties of an Environment Definition parameter.
-
Method Summary
Modifier and TypeMethodDescriptionfromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of EnvironmentDefinitionParameter from the JsonReader.Get the allowed property: An array of allowed values.Get the defaultValue property: Default value of the parameter.Get the description property: Description of the parameter.getId()
Get the id property: Unique ID of the parameter.getName()
Get the name property: Display name of the parameter.Get the parameterType property: A string of one of the basic JSON types (number, integer, array, object, boolean, string).Get the readOnly property: Whether or not this parameter is read-only.boolean
Get the required property: Whether or not this parameter is required.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
getId
Get the id property: Unique ID of the parameter.- Returns:
- the id value.
-
getName
Get the name property: Display name of the parameter.- Returns:
- the name value.
-
getDescription
Get the description property: Description of the parameter.- Returns:
- the description value.
-
getDefaultValue
Get the defaultValue property: Default value of the parameter.- Returns:
- the defaultValue value.
-
getParameterType
Get the parameterType property: A string of one of the basic JSON types (number, integer, array, object, boolean, string).- Returns:
- the parameterType value.
-
isReadOnly
Get the readOnly property: Whether or not this parameter is read-only. If true, default should have a value.- Returns:
- the readOnly value.
-
isRequired
public boolean isRequired()Get the required property: Whether or not this parameter is required.- Returns:
- the required value.
-
getAllowed
Get the allowed property: An array of allowed values.- Returns:
- the allowed value.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<EnvironmentDefinitionParameter>
- Throws:
IOException
-
fromJson
public static EnvironmentDefinitionParameter fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of EnvironmentDefinitionParameter from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of EnvironmentDefinitionParameter 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 EnvironmentDefinitionParameter.
-