Class Argument
java.lang.Object
com.azure.resourcemanager.containerregistry.models.Argument
- All Implemented Interfaces:
com.azure.json.JsonSerializable<Argument>
The properties of a run argument.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ArgumentfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of Argument from the JsonReader.isSecret()Get the isSecret property: Flag to indicate whether the argument represents a secret and want to be removed from build logs.name()Get the name property: The name of the argument.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.value()Get the value property: The value of the argument.withIsSecret(Boolean isSecret) Set the isSecret property: Flag to indicate whether the argument represents a secret and want to be removed from build logs.Set the name property: The name of the argument.Set the value property: The value of the argument.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
-
Argument
public Argument()Creates an instance of Argument class.
-
-
Method Details
-
name
Get the name property: The name of the argument.- Returns:
- the name value.
-
withName
Set the name property: The name of the argument.- Parameters:
name- the name value to set.- Returns:
- the Argument object itself.
-
value
Get the value property: The value of the argument.- Returns:
- the value value.
-
withValue
Set the value property: The value of the argument.- Parameters:
value- the value value to set.- Returns:
- the Argument object itself.
-
isSecret
Get the isSecret property: Flag to indicate whether the argument represents a secret and want to be removed from build logs.- Returns:
- the isSecret value.
-
withIsSecret
Set the isSecret property: Flag to indicate whether the argument represents a secret and want to be removed from build logs.- Parameters:
isSecret- the isSecret value to set.- Returns:
- the Argument 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<Argument>- Throws:
IOException
-
fromJson
Reads an instance of Argument from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of Argument 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 Argument.
-