Class VariableUpdateParameters
java.lang.Object
com.azure.resourcemanager.automation.models.VariableUpdateParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VariableUpdateParameters>
public final class VariableUpdateParameters
extends Object
implements com.azure.json.JsonSerializable<VariableUpdateParameters>
The parameters supplied to the update variable operation.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VariableUpdateParameters class. -
Method Summary
Modifier and TypeMethodDescriptionGet the description property: Gets or sets the description of the variable.static VariableUpdateParameters
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of VariableUpdateParameters from the JsonReader.name()
Get the name property: Gets or sets the name of the variable.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.value()
Get the value property: Gets or sets the value of the variable.withDescription
(String description) Set the description property: Gets or sets the description of the variable.Set the name property: Gets or sets the name of the variable.Set the value property: Gets or sets the value of the variable.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
-
VariableUpdateParameters
public VariableUpdateParameters()Creates an instance of VariableUpdateParameters class.
-
-
Method Details
-
name
Get the name property: Gets or sets the name of the variable.- Returns:
- the name value.
-
withName
Set the name property: Gets or sets the name of the variable.- Parameters:
name
- the name value to set.- Returns:
- the VariableUpdateParameters object itself.
-
value
Get the value property: Gets or sets the value of the variable.- Returns:
- the value value.
-
withValue
Set the value property: Gets or sets the value of the variable.- Parameters:
value
- the value value to set.- Returns:
- the VariableUpdateParameters object itself.
-
description
Get the description property: Gets or sets the description of the variable.- Returns:
- the description value.
-
withDescription
Set the description property: Gets or sets the description of the variable.- Parameters:
description
- the description value to set.- Returns:
- the VariableUpdateParameters 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<VariableUpdateParameters>
- Throws:
IOException
-
fromJson
public static VariableUpdateParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VariableUpdateParameters from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of VariableUpdateParameters 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 VariableUpdateParameters.
-