Secret Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.Secret

Implements

public final class Secret
implements JsonSerializable<Secret>

Container App Secret.

Constructor Summary

Constructor Description
Secret()

Creates an instance of Secret class.

Method Summary

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

Reads an instance of Secret from the JsonReader.

String name()

Get the name property: Secret Name.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String value()

Get the value property: Secret Value.

Secret withName(String name)

Set the name property: Secret Name.

Secret withValue(String value)

Set the value property: Secret Value.

Methods inherited from java.lang.Object

Constructor Details

Secret

public Secret()

Creates an instance of Secret class.

Method Details

fromJson

public static Secret fromJson(JsonReader jsonReader)

Reads an instance of Secret from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of Secret if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the Secret.

name

public String name()

Get the name property: Secret Name.

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: Secret Value.

Returns:

the value value.

withName

public Secret withName(String name)

Set the name property: Secret Name.

Parameters:

name - the name value to set.

Returns:

the Secret object itself.

withValue

public Secret withValue(String value)

Set the value property: Secret Value.

Parameters:

value - the value value to set.

Returns:

the Secret object itself.

Applies to