Class Argument
- java.lang.Object
-
- com.azure.resourcemanager.containerregistry.models.Argument
-
public final class Argument extends Object
The properties of a run argument.
-
-
Constructor Summary
Constructors Constructor Description Argument()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanisSecret()Get the isSecret property: Flag to indicate whether the argument represents a secret and want to be removed from build logs.Stringname()Get the name property: The name of the argument.voidvalidate()Validates the instance.Stringvalue()Get the value property: The value of the argument.ArgumentwithIsSecret(Boolean isSecret)Set the isSecret property: Flag to indicate whether the argument represents a secret and want to be removed from build logs.ArgumentwithName(String name)Set the name property: The name of the argument.ArgumentwithValue(String value)Set the value property: The value of the argument.
-
-
-
Method Detail
-
name
public String name()
Get the name property: The name of the argument.- Returns:
- the name value.
-
withName
public Argument withName(String name)
Set the name property: The name of the argument.- Parameters:
name- the name value to set.- Returns:
- the Argument object itself.
-
value
public String value()
Get the value property: The value of the argument.- Returns:
- the value value.
-
withValue
public Argument withValue(String value)
Set the value property: The value of the argument.- Parameters:
value- the value value to set.- Returns:
- the Argument object itself.
-
isSecret
public Boolean 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
public 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.- 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.
-
-