Share via


DaprSecret Class

  • java.lang.Object
    • com.azure.resourcemanager.appcontainers.models.DaprSecret

Implements

public final class DaprSecret
implements JsonSerializable<DaprSecret>

Dapr component Secret for ListSecrets Action.

Constructor Summary

Constructor Description
DaprSecret()

Creates an instance of DaprSecret class.

Method Summary

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

Reads an instance of DaprSecret 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.

Methods inherited from java.lang.Object

Constructor Details

DaprSecret

public DaprSecret()

Creates an instance of DaprSecret class.

Method Details

fromJson

public static DaprSecret fromJson(JsonReader jsonReader)

Reads an instance of DaprSecret from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DaprSecret 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 DaprSecret.

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.

Applies to