DaprComponent Class

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

Implements

public final class DaprComponent
implements JsonSerializable<DaprComponent>

Dapr component configuration.

Constructor Summary

Constructor Description
DaprComponent()

Creates an instance of DaprComponent class.

Method Summary

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

Reads an instance of DaprComponent from the JsonReader.

List<DaprMetadata> metadata()

Get the metadata property: Component metadata.

String name()

Get the name property: Component name.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Component type.

void validate()

Validates the instance.

String version()

Get the version property: Component version.

DaprComponent withMetadata(List<DaprMetadata> metadata)

Set the metadata property: Component metadata.

DaprComponent withName(String name)

Set the name property: Component name.

DaprComponent withType(String type)

Set the type property: Component type.

DaprComponent withVersion(String version)

Set the version property: Component version.

Methods inherited from java.lang.Object

Constructor Details

DaprComponent

public DaprComponent()

Creates an instance of DaprComponent class.

Method Details

fromJson

public static DaprComponent fromJson(JsonReader jsonReader)

Reads an instance of DaprComponent from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

metadata

public List metadata()

Get the metadata property: Component metadata.

Returns:

the metadata value.

name

public String name()

Get the name property: Component name.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Component type.

Returns:

the type value.

validate

public void validate()

Validates the instance.

version

public String version()

Get the version property: Component version.

Returns:

the version value.

withMetadata

public DaprComponent withMetadata(List metadata)

Set the metadata property: Component metadata.

Parameters:

metadata - the metadata value to set.

Returns:

the DaprComponent object itself.

withName

public DaprComponent withName(String name)

Set the name property: Component name.

Parameters:

name - the name value to set.

Returns:

the DaprComponent object itself.

withType

public DaprComponent withType(String type)

Set the type property: Component type.

Parameters:

type - the type value to set.

Returns:

the DaprComponent object itself.

withVersion

public DaprComponent withVersion(String version)

Set the version property: Component version.

Parameters:

version - the version value to set.

Returns:

the DaprComponent object itself.

Applies to