Share via


Argument Class

  • java.lang.Object
    • com.azure.resourcemanager.containerregistry.models.Argument

Implements

public final class Argument
implements JsonSerializable<Argument>

The properties of a run argument.

Constructor Summary

Constructor Description
Argument()

Creates an instance of Argument class.

Method Summary

Modifier and Type Method and Description
static Argument fromJson(JsonReader jsonReader)

Reads an instance of Argument from the JsonReader.

Boolean isSecret()

Get the isSecret property: Flag to indicate whether the argument represents a secret and want to be removed from build logs.

String name()

Get the name property: The name of the argument.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String value()

Get the value property: The value of the argument.

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.

Argument withName(String name)

Set the name property: The name of the argument.

Argument withValue(String value)

Set the value property: The value of the argument.

Methods inherited from java.lang.Object

Constructor Details

Argument

public Argument()

Creates an instance of Argument class.

Method Details

fromJson

public static Argument fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

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.

name

public String name()

Get the name property: The name of the argument.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

value

public String value()

Get the value property: The value of the argument.

Returns:

the value 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.

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.

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.

Applies to