Class DscConfigurationParameter
java.lang.Object
com.azure.resourcemanager.automation.models.DscConfigurationParameter
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DscConfigurationParameter>
public final class DscConfigurationParameter
extends Object
implements com.azure.json.JsonSerializable<DscConfigurationParameter>
Definition of the configuration parameter type.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DscConfigurationParameter class. -
Method Summary
Modifier and TypeMethodDescriptionGet the defaultValue property: Gets or sets the default value of parameter.static DscConfigurationParameter
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of DscConfigurationParameter from the JsonReader.Get the isMandatory property: Gets or sets a Boolean value to indicate whether the parameter is mandatory or not.position()
Get the position property: Get or sets the position of the parameter.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) type()
Get the type property: Gets or sets the type of the parameter.void
validate()
Validates the instance.withDefaultValue
(String defaultValue) Set the defaultValue property: Gets or sets the default value of parameter.withIsMandatory
(Boolean isMandatory) Set the isMandatory property: Gets or sets a Boolean value to indicate whether the parameter is mandatory or not.withPosition
(Integer position) Set the position property: Get or sets the position of the parameter.Set the type property: Gets or sets the type of the parameter.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
-
Constructor Details
-
DscConfigurationParameter
public DscConfigurationParameter()Creates an instance of DscConfigurationParameter class.
-
-
Method Details
-
type
Get the type property: Gets or sets the type of the parameter.- Returns:
- the type value.
-
withType
Set the type property: Gets or sets the type of the parameter.- Parameters:
type
- the type value to set.- Returns:
- the DscConfigurationParameter object itself.
-
isMandatory
Get the isMandatory property: Gets or sets a Boolean value to indicate whether the parameter is mandatory or not.- Returns:
- the isMandatory value.
-
withIsMandatory
Set the isMandatory property: Gets or sets a Boolean value to indicate whether the parameter is mandatory or not.- Parameters:
isMandatory
- the isMandatory value to set.- Returns:
- the DscConfigurationParameter object itself.
-
position
Get the position property: Get or sets the position of the parameter.- Returns:
- the position value.
-
withPosition
Set the position property: Get or sets the position of the parameter.- Parameters:
position
- the position value to set.- Returns:
- the DscConfigurationParameter object itself.
-
defaultValue
Get the defaultValue property: Gets or sets the default value of parameter.- Returns:
- the defaultValue value.
-
withDefaultValue
Set the defaultValue property: Gets or sets the default value of parameter.- Parameters:
defaultValue
- the defaultValue value to set.- Returns:
- the DscConfigurationParameter object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<DscConfigurationParameter>
- Throws:
IOException
-
fromJson
public static DscConfigurationParameter fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DscConfigurationParameter from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of DscConfigurationParameter if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the DscConfigurationParameter.
-