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 Details

    • DaprComponent

      public DaprComponent()
      Creates an instance of DaprComponent class.
  • Method Details

    • 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.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<DaprComponent>
      Throws:
      IOException
    • fromJson

      public static DaprComponent fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.