Class SetValue
java.lang.Object
com.azure.resourcemanager.containerregistry.models.SetValue
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SetValue>
The properties of a overridable value that can be passed to a task template.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SetValuefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SetValue from the JsonReader.isSecret()Get the isSecret property: Flag to indicate whether the value represents a secret or not.name()Get the name property: The name of the overridable value.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.value()Get the value property: The overridable value.withIsSecret(Boolean isSecret) Set the isSecret property: Flag to indicate whether the value represents a secret or not.Set the name property: The name of the overridable value.Set the value property: The overridable value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
SetValue
public SetValue()Creates an instance of SetValue class.
-
-
Method Details
-
name
Get the name property: The name of the overridable value.- Returns:
- the name value.
-
withName
Set the name property: The name of the overridable value.- Parameters:
name- the name value to set.- Returns:
- the SetValue object itself.
-
value
Get the value property: The overridable value.- Returns:
- the value value.
-
withValue
Set the value property: The overridable value.- Parameters:
value- the value value to set.- Returns:
- the SetValue object itself.
-
isSecret
Get the isSecret property: Flag to indicate whether the value represents a secret or not.- Returns:
- the isSecret value.
-
withIsSecret
Set the isSecret property: Flag to indicate whether the value represents a secret or not.- Parameters:
isSecret- the isSecret value to set.- Returns:
- the SetValue object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SetValue>- Throws:
IOException
-
fromJson
Reads an instance of SetValue from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SetValue 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 SetValue.
-