Class RunbookParameter
java.lang.Object
com.azure.resourcemanager.automation.models.RunbookParameter
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RunbookParameter>
public final class RunbookParameter
extends Object
implements com.azure.json.JsonSerializable<RunbookParameter>
Definition of the runbook parameter type.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the defaultValue property: Gets or sets the default value of parameter.static RunbookParameter
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of RunbookParameter 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
-
RunbookParameter
public RunbookParameter()Creates an instance of RunbookParameter 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 RunbookParameter 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 RunbookParameter 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 RunbookParameter 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 RunbookParameter 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<RunbookParameter>
- Throws:
IOException
-
fromJson
Reads an instance of RunbookParameter from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of RunbookParameter 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 RunbookParameter.
-