Dapr Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. Dapr
- com.
Implements
public final class Dapr
implements JsonSerializable<Dapr>
Container App Dapr configuration.
Constructor Summary
Constructor | Description |
---|---|
Dapr() |
Creates an instance of Dapr class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
appId()
Get the app |
Integer |
appPort()
Get the app |
List<Dapr |
components()
Get the components property: Collection of Dapr components. |
Boolean |
enabled()
Get the enabled property: Boolean indicating if the Dapr side car is enabled. |
static Dapr |
fromJson(JsonReader jsonReader)
Reads an instance of Dapr from the Json |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Dapr |
withAppId(String appId)
Set the app |
Dapr |
withAppPort(Integer appPort)
Set the app |
Dapr |
withComponents(List<DaprComponent> components)
Set the components property: Collection of Dapr components. |
Dapr |
withEnabled(Boolean enabled)
Set the enabled property: Boolean indicating if the Dapr side car is enabled. |
Methods inherited from java.lang.Object
Constructor Details
Dapr
public Dapr()
Creates an instance of Dapr class.
Method Details
appId
public String appId()
Get the appId property: Dapr application identifier.
Returns:
appPort
public Integer appPort()
Get the appPort property: Port on which the Dapr side car.
Returns:
components
public List
Get the components property: Collection of Dapr components.
Returns:
enabled
public Boolean enabled()
Get the enabled property: Boolean indicating if the Dapr side car is enabled.
Returns:
fromJson
public static Dapr fromJson(JsonReader jsonReader)
Reads an instance of Dapr from the JsonReader.
Parameters:
Returns:
Throws:
toJson
validate
public void validate()
Validates the instance.
withAppId
public Dapr withAppId(String appId)
Set the appId property: Dapr application identifier.
Parameters:
Returns:
withAppPort
public Dapr withAppPort(Integer appPort)
Set the appPort property: Port on which the Dapr side car.
Parameters:
Returns:
withComponents
public Dapr withComponents(List
Set the components property: Collection of Dapr components.
Parameters:
Returns:
withEnabled
public Dapr withEnabled(Boolean enabled)
Set the enabled property: Boolean indicating if the Dapr side car is enabled.
Parameters:
Returns:
Applies to
Azure SDK for Java