Class DaprComponent
java.lang.Object
com.azure.resourcemanager.appservice.models.DaprComponent
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DaprComponent>
public final class DaprComponent
extends Object
implements com.azure.json.JsonSerializable<DaprComponent>
Dapr component configuration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DaprComponentfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DaprComponent from the JsonReader.metadata()Get the metadata property: Component metadata.name()Get the name property: Component name.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Component type.voidvalidate()Validates the instance.version()Get the version property: Component version.withMetadata(List<DaprMetadata> metadata) Set the metadata property: Component metadata.Set the name property: Component name.Set the type property: Component type.withVersion(String version) Set the version property: Component version.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DaprComponent
public DaprComponent()Creates an instance of DaprComponent class.
-
-
Method Details
-
name
Get the name property: Component name.- Returns:
- the name value.
-
withName
Set the name property: Component name.- Parameters:
name- the name value to set.- Returns:
- the DaprComponent object itself.
-
type
Get the type property: Component type.- Returns:
- the type value.
-
withType
Set the type property: Component type.- Parameters:
type- the type value to set.- Returns:
- the DaprComponent object itself.
-
version
Get the version property: Component version.- Returns:
- the version value.
-
withVersion
Set the version property: Component version.- Parameters:
version- the version value to set.- Returns:
- the DaprComponent object itself.
-
metadata
Get the metadata property: Component metadata.- Returns:
- the metadata value.
-
withMetadata
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<DaprComponent>- Throws:
IOException
-
fromJson
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.
-