Class Argument
java.lang.Object
com.azure.resourcemanager.containerregistry.models.Argument
The properties of a run argument.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionisSecret()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.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.
-
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.
-