DaprComponentServiceBinding Class

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

Implements

public final class DaprComponentServiceBinding
implements JsonSerializable<DaprComponentServiceBinding>

Configuration to bind a Dapr Component to a dev ContainerApp Service.

Constructor Summary

Constructor Description
DaprComponentServiceBinding()

Creates an instance of DaprComponentServiceBinding class.

Method Summary

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

Reads an instance of DaprComponentServiceBinding from the JsonReader.

DaprServiceBindMetadata metadata()

Get the metadata property: Service bind metadata.

String name()

Get the name property: Name of the service bind.

String serviceId()

Get the serviceId property: Resource id of the target service.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DaprComponentServiceBinding withMetadata(DaprServiceBindMetadata metadata)

Set the metadata property: Service bind metadata.

DaprComponentServiceBinding withName(String name)

Set the name property: Name of the service bind.

DaprComponentServiceBinding withServiceId(String serviceId)

Set the serviceId property: Resource id of the target service.

Methods inherited from java.lang.Object

Constructor Details

DaprComponentServiceBinding

public DaprComponentServiceBinding()

Creates an instance of DaprComponentServiceBinding class.

Method Details

fromJson

public static DaprComponentServiceBinding fromJson(JsonReader jsonReader)

Reads an instance of DaprComponentServiceBinding from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

metadata

public DaprServiceBindMetadata metadata()

Get the metadata property: Service bind metadata.

Returns:

the metadata value.

name

public String name()

Get the name property: Name of the service bind.

Returns:

the name value.

serviceId

public String serviceId()

Get the serviceId property: Resource id of the target service.

Returns:

the serviceId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withMetadata

public DaprComponentServiceBinding withMetadata(DaprServiceBindMetadata metadata)

Set the metadata property: Service bind metadata.

Parameters:

metadata - the metadata value to set.

Returns:

the DaprComponentServiceBinding object itself.

withName

public DaprComponentServiceBinding withName(String name)

Set the name property: Name of the service bind.

Parameters:

name - the name value to set.

Returns:

the DaprComponentServiceBinding object itself.

withServiceId

public DaprComponentServiceBinding withServiceId(String serviceId)

Set the serviceId property: Resource id of the target service.

Parameters:

serviceId - the serviceId value to set.

Returns:

the DaprComponentServiceBinding object itself.

Applies to