Class VariableCreateOrUpdateParameters
java.lang.Object
com.azure.resourcemanager.automation.models.VariableCreateOrUpdateParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VariableCreateOrUpdateParameters>
public final class VariableCreateOrUpdateParameters
extends Object
implements com.azure.json.JsonSerializable<VariableCreateOrUpdateParameters>
The parameters supplied to the create or update variable operation.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VariableCreateOrUpdateParameters class. -
Method Summary
Modifier and TypeMethodDescriptionGet the description property: Gets or sets the description of the variable.fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of VariableCreateOrUpdateParameters from the JsonReader.Get the isEncrypted property: Gets or sets the encrypted flag of the variable.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.withIsEncrypted
(Boolean isEncrypted) Set the isEncrypted property: Gets or sets the encrypted flag 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
-
VariableCreateOrUpdateParameters
public VariableCreateOrUpdateParameters()Creates an instance of VariableCreateOrUpdateParameters 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 VariableCreateOrUpdateParameters 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 VariableCreateOrUpdateParameters 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 VariableCreateOrUpdateParameters object itself.
-
isEncrypted
Get the isEncrypted property: Gets or sets the encrypted flag of the variable.- Returns:
- the isEncrypted value.
-
withIsEncrypted
Set the isEncrypted property: Gets or sets the encrypted flag of the variable.- Parameters:
isEncrypted
- the isEncrypted value to set.- Returns:
- the VariableCreateOrUpdateParameters 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<VariableCreateOrUpdateParameters>
- Throws:
IOException
-
fromJson
public static VariableCreateOrUpdateParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VariableCreateOrUpdateParameters from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of VariableCreateOrUpdateParameters 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 VariableCreateOrUpdateParameters.
-