DaprComponent Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. DaprComponent
- com.
Implements
public final class DaprComponent
implements JsonSerializable<DaprComponent>
Dapr component configuration.
Constructor Summary
Constructor | Description |
---|---|
DaprComponent() |
Creates an instance of Dapr |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Dapr |
fromJson(JsonReader jsonReader)
Reads an instance of Dapr |
List<Dapr |
metadata()
Get the metadata property: Component metadata. |
String |
name()
Get the name property: Component name. |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: Component type. |
void |
validate()
Validates the instance. |
String |
version()
Get the version property: Component version. |
Dapr |
withMetadata(List<DaprMetadata> metadata)
Set the metadata property: Component metadata. |
Dapr |
withName(String name)
Set the name property: Component name. |
Dapr |
withType(String type)
Set the type property: Component type. |
Dapr |
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:
Returns:
Throws:
metadata
public List
Get the metadata property: Component metadata.
Returns:
name
public String name()
Get the name property: Component name.
Returns:
toJson
type
public String type()
Get the type property: Component type.
Returns:
validate
public void validate()
Validates the instance.
version
public String version()
Get the version property: Component version.
Returns:
withMetadata
public DaprComponent withMetadata(List
Set the metadata property: Component metadata.
Parameters:
Returns:
withName
public DaprComponent withName(String name)
Set the name property: Component name.
Parameters:
Returns:
withType
public DaprComponent withType(String type)
Set the type property: Component type.
Parameters:
Returns:
withVersion
public DaprComponent withVersion(String version)
Set the version property: Component version.
Parameters:
Returns:
Applies to
Azure SDK for Java