Class VariableUpdateProperties
java.lang.Object
com.azure.resourcemanager.automation.fluent.models.VariableUpdateProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VariableUpdateProperties>
public final class VariableUpdateProperties
extends Object
implements com.azure.json.JsonSerializable<VariableUpdateProperties>
The properties of the update variable.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VariableUpdateProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the description property: Gets or sets the description of the variable.static VariableUpdateProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of VariableUpdateProperties from the JsonReader.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 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
-
VariableUpdateProperties
public VariableUpdateProperties()Creates an instance of VariableUpdateProperties class.
-
-
Method Details
-
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 VariableUpdateProperties 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 VariableUpdateProperties 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<VariableUpdateProperties>
- Throws:
IOException
-
fromJson
public static VariableUpdateProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VariableUpdateProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of VariableUpdateProperties 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 VariableUpdateProperties.
-