Share via


SetValue Class

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

Implements

public final class SetValue
implements JsonSerializable<SetValue>

The properties of a overridable value that can be passed to a task template.

Constructor Summary

Constructor Description
SetValue()

Creates an instance of SetValue class.

Method Summary

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

Reads an instance of SetValue from the JsonReader.

Boolean isSecret()

Get the isSecret property: Flag to indicate whether the value represents a secret or not.

String name()

Get the name property: The name of the overridable value.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String value()

Get the value property: The overridable value.

SetValue withIsSecret(Boolean isSecret)

Set the isSecret property: Flag to indicate whether the value represents a secret or not.

SetValue withName(String name)

Set the name property: The name of the overridable value.

SetValue withValue(String value)

Set the value property: The overridable value.

Methods inherited from java.lang.Object

Constructor Details

SetValue

public SetValue()

Creates an instance of SetValue class.

Method Details

fromJson

public static SetValue fromJson(JsonReader jsonReader)

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:

IOException

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

isSecret

public Boolean isSecret()

Get the isSecret property: Flag to indicate whether the value represents a secret or not.

Returns:

the isSecret value.

name

public String name()

Get the name property: The name of the overridable value.

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

Returns:

the value value.

withIsSecret

public SetValue withIsSecret(Boolean isSecret)

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.

withName

public SetValue withName(String name)

Set the name property: The name of the overridable value.

Parameters:

name - the name value to set.

Returns:

the SetValue object itself.

withValue

public SetValue withValue(String value)

Set the value property: The overridable value.

Parameters:

value - the value value to set.

Returns:

the SetValue object itself.

Applies to