DaprMetadata Class

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

Implements

public final class DaprMetadata
implements JsonSerializable<DaprMetadata>

Container App Dapr component metadata.

Constructor Summary

Constructor Description
DaprMetadata()

Creates an instance of DaprMetadata class.

Method Summary

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

Reads an instance of DaprMetadata from the JsonReader.

String name()

Get the name property: Metadata property name.

String secretRef()

Get the secretRef property: Name of the Container App secret from which to pull the metadata property value.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String value()

Get the value property: Metadata property value.

DaprMetadata withName(String name)

Set the name property: Metadata property name.

DaprMetadata withSecretRef(String secretRef)

Set the secretRef property: Name of the Container App secret from which to pull the metadata property value.

DaprMetadata withValue(String value)

Set the value property: Metadata property value.

Methods inherited from java.lang.Object

Constructor Details

DaprMetadata

public DaprMetadata()

Creates an instance of DaprMetadata class.

Method Details

fromJson

public static DaprMetadata fromJson(JsonReader jsonReader)

Reads an instance of DaprMetadata from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: Metadata property name.

Returns:

the name value.

secretRef

public String secretRef()

Get the secretRef property: Name of the Container App secret from which to pull the metadata property value.

Returns:

the secretRef 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: Metadata property value.

Returns:

the value value.

withName

public DaprMetadata withName(String name)

Set the name property: Metadata property name.

Parameters:

name - the name value to set.

Returns:

the DaprMetadata object itself.

withSecretRef

public DaprMetadata withSecretRef(String secretRef)

Set the secretRef property: Name of the Container App secret from which to pull the metadata property value.

Parameters:

secretRef - the secretRef value to set.

Returns:

the DaprMetadata object itself.

withValue

public DaprMetadata withValue(String value)

Set the value property: Metadata property value.

Parameters:

value - the value value to set.

Returns:

the DaprMetadata object itself.

Applies to