DaprComponentServiceBinding Class
- java.
lang. Object - com.
azure. resourcemanager. appcontainers. models. DaprComponentServiceBinding
- com.
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 Dapr |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Dapr |
fromJson(JsonReader jsonReader)
Reads an instance of Dapr |
|
Dapr |
metadata()
Get the metadata property: Service bind metadata. |
| String |
name()
Get the name property: Name of the service bind. |
| String |
serviceId()
Get the service |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Dapr |
withMetadata(DaprServiceBindMetadata metadata)
Set the metadata property: Service bind metadata. |
|
Dapr |
withName(String name)
Set the name property: Name of the service bind. |
|
Dapr |
withServiceId(String serviceId)
Set the 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:
Returns:
Throws:
metadata
public DaprServiceBindMetadata metadata()
Get the metadata property: Service bind metadata.
Returns:
name
public String name()
Get the name property: Name of the service bind.
Returns:
serviceId
public String serviceId()
Get the serviceId property: Resource id of the target service.
Returns:
toJson
validate
public void validate()
Validates the instance.
withMetadata
public DaprComponentServiceBinding withMetadata(DaprServiceBindMetadata metadata)
Set the metadata property: Service bind metadata.
Parameters:
Returns:
withName
public DaprComponentServiceBinding withName(String name)
Set the name property: Name of the service bind.
Parameters:
Returns:
withServiceId
public DaprComponentServiceBinding withServiceId(String serviceId)
Set the serviceId property: Resource id of the target service.
Parameters:
Returns: