DaprServiceBindMetadata Class

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

Implements

public final class DaprServiceBindMetadata
implements JsonSerializable<DaprServiceBindMetadata>

Dapr component metadata.

Constructor Summary

Constructor Description
DaprServiceBindMetadata()

Creates an instance of DaprServiceBindMetadata class.

Method Summary

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

Reads an instance of DaprServiceBindMetadata from the JsonReader.

String name()

Get the name property: Service bind metadata property name.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String value()

Get the value property: Service bind metadata property value.

DaprServiceBindMetadata withName(String name)

Set the name property: Service bind metadata property name.

DaprServiceBindMetadata withValue(String value)

Set the value property: Service bind metadata property value.

Methods inherited from java.lang.Object

Constructor Details

DaprServiceBindMetadata

public DaprServiceBindMetadata()

Creates an instance of DaprServiceBindMetadata class.

Method Details

fromJson

public static DaprServiceBindMetadata fromJson(JsonReader jsonReader)

Reads an instance of DaprServiceBindMetadata from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: Service bind metadata property 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: Service bind metadata property value.

Returns:

the value value.

withName

public DaprServiceBindMetadata withName(String name)

Set the name property: Service bind metadata property name.

Parameters:

name - the name value to set.

Returns:

the DaprServiceBindMetadata object itself.

withValue

public DaprServiceBindMetadata withValue(String value)

Set the value property: Service bind metadata property value.

Parameters:

value - the value value to set.

Returns:

the DaprServiceBindMetadata object itself.

Applies to