java.lang.Object
com.azure.resourcemanager.appservice.models.Dapr
All Implemented Interfaces:
com.azure.json.JsonSerializable<Dapr>

public final class Dapr extends Object implements com.azure.json.JsonSerializable<Dapr>
Container App Dapr configuration.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of Dapr class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the appId property: Dapr application identifier.
    Get the appPort property: Port on which the Dapr side car.
    Get the components property: Collection of Dapr components.
    Get the enabled property: Boolean indicating if the Dapr side car is enabled.
    static Dapr
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of Dapr from the JsonReader.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    Set the appId property: Dapr application identifier.
    Set the appPort property: Port on which the Dapr side car.
    Set the components property: Collection of Dapr components.
    Set the enabled property: Boolean indicating if the Dapr side car is enabled.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • Dapr

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

    • enabled

      public Boolean enabled()
      Get the enabled property: Boolean indicating if the Dapr side car is enabled.
      Returns:
      the enabled value.
    • withEnabled

      public Dapr withEnabled(Boolean enabled)
      Set the enabled property: Boolean indicating if the Dapr side car is enabled.
      Parameters:
      enabled - the enabled value to set.
      Returns:
      the Dapr object itself.
    • appId

      public String appId()
      Get the appId property: Dapr application identifier.
      Returns:
      the appId value.
    • withAppId

      public Dapr withAppId(String appId)
      Set the appId property: Dapr application identifier.
      Parameters:
      appId - the appId value to set.
      Returns:
      the Dapr object itself.
    • appPort

      public Integer appPort()
      Get the appPort property: Port on which the Dapr side car.
      Returns:
      the appPort value.
    • withAppPort

      public Dapr withAppPort(Integer appPort)
      Set the appPort property: Port on which the Dapr side car.
      Parameters:
      appPort - the appPort value to set.
      Returns:
      the Dapr object itself.
    • components

      public List<DaprComponent> components()
      Get the components property: Collection of Dapr components.
      Returns:
      the components value.
    • withComponents

      public Dapr withComponents(List<DaprComponent> components)
      Set the components property: Collection of Dapr components.
      Parameters:
      components - the components value to set.
      Returns:
      the Dapr 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<Dapr>
      Throws:
      IOException
    • fromJson

      public static Dapr fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of Dapr from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of Dapr 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 Dapr.