Class DaprComponent
- java.lang.Object
-
- com.azure.resourcemanager.appservice.models.DaprComponent
-
public final class DaprComponent extends Object
Dapr component configuration.
-
-
Constructor Summary
Constructors Constructor Description DaprComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<DaprMetadata>metadata()Get the metadata property: Component metadata.Stringname()Get the name property: Component name.Stringtype()Get the type property: Component type.voidvalidate()Validates the instance.Stringversion()Get the version property: Component version.DaprComponentwithMetadata(List<DaprMetadata> metadata)Set the metadata property: Component metadata.DaprComponentwithName(String name)Set the name property: Component name.DaprComponentwithType(String type)Set the type property: Component type.DaprComponentwithVersion(String version)Set the version property: Component version.
-
-
-
Method Detail
-
name
public String name()
Get the name property: Component name.- Returns:
- the name value.
-
withName
public DaprComponent withName(String name)
Set the name property: Component name.- Parameters:
name- the name value to set.- Returns:
- the DaprComponent object itself.
-
type
public String type()
Get the type property: Component type.- Returns:
- the type value.
-
withType
public DaprComponent withType(String type)
Set the type property: Component type.- Parameters:
type- the type value to set.- Returns:
- the DaprComponent object itself.
-
version
public String version()
Get the version property: Component version.- Returns:
- the version value.
-
withVersion
public DaprComponent withVersion(String version)
Set the version property: Component version.- Parameters:
version- the version value to set.- Returns:
- the DaprComponent object itself.
-
metadata
public List<DaprMetadata> metadata()
Get the metadata property: Component metadata.- Returns:
- the metadata value.
-
withMetadata
public DaprComponent withMetadata(List<DaprMetadata> metadata)
Set the metadata property: Component metadata.- Parameters:
metadata- the metadata value to set.- Returns:
- the DaprComponent object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-