Class VariableInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.automation.fluent.models.VariableInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class VariableInner
extends com.azure.core.management.ProxyResource
Definition of the variable.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the creationTime property: Gets or sets the creation time.Get the description property: Gets or sets the description.static VariableInner
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of VariableInner from the JsonReader.id()
Get the id property: Fully qualified resource Id for the resource.Get the isEncrypted property: Gets or sets the encrypted flag of the variable.Get the lastModifiedTime property: Gets or sets the last modified time.name()
Get the name property: The name of the resource.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) type()
Get the type property: The type of the resource.void
validate()
Validates the instance.value()
Get the value property: Gets or sets the value of the variable.withCreationTime
(OffsetDateTime creationTime) Set the creationTime property: Gets or sets the creation time.withDescription
(String description) Set the description property: Gets or sets the description.withIsEncrypted
(Boolean isEncrypted) Set the isEncrypted property: Gets or sets the encrypted flag of the variable.withLastModifiedTime
(OffsetDateTime lastModifiedTime) Set the lastModifiedTime property: Gets or sets the last modified time.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
-
VariableInner
public VariableInner()Creates an instance of VariableInner class.
-
-
Method Details
-
type
Get the type property: The type of the resource.- Overrides:
type
in classcom.azure.core.management.ProxyResource
- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
name
in classcom.azure.core.management.ProxyResource
- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
id
in classcom.azure.core.management.ProxyResource
- Returns:
- the id value.
-
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 VariableInner 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 VariableInner object itself.
-
creationTime
Get the creationTime property: Gets or sets the creation time.- Returns:
- the creationTime value.
-
withCreationTime
Set the creationTime property: Gets or sets the creation time.- Parameters:
creationTime
- the creationTime value to set.- Returns:
- the VariableInner object itself.
-
lastModifiedTime
Get the lastModifiedTime property: Gets or sets the last modified time.- Returns:
- the lastModifiedTime value.
-
withLastModifiedTime
Set the lastModifiedTime property: Gets or sets the last modified time.- Parameters:
lastModifiedTime
- the lastModifiedTime value to set.- Returns:
- the VariableInner object itself.
-
description
Get the description property: Gets or sets the description.- Returns:
- the description value.
-
withDescription
Set the description property: Gets or sets the description.- Parameters:
description
- the description value to set.- Returns:
- the VariableInner 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<com.azure.core.management.ProxyResource>
- Overrides:
toJson
in classcom.azure.core.management.ProxyResource
- Throws:
IOException
-
fromJson
Reads an instance of VariableInner from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of VariableInner 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 VariableInner.
-