Dapr Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.Dapr

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 appId property: Dapr application identifier.

Integer appPort()

Get the appPort property: Port on which the Dapr side car.

List<DaprComponent> 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 JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Dapr withAppId(String appId)

Set the appId property: Dapr application identifier.

Dapr withAppPort(Integer appPort)

Set the appPort property: Port on which the Dapr side car.

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:

the appId value.

appPort

public Integer appPort()

Get the appPort property: Port on which the Dapr side car.

Returns:

the appPort value.

components

public List components()

Get the components property: Collection of Dapr components.

Returns:

the components value.

enabled

public Boolean enabled()

Get the enabled property: Boolean indicating if the Dapr side car is enabled.

Returns:

the enabled value.

fromJson

public static Dapr fromJson(JsonReader jsonReader)

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

withComponents

public Dapr withComponents(List components)

Set the components property: Collection of Dapr components.

Parameters:

components - the components value to set.

Returns:

the Dapr object itself.

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.

Applies to