DaprConfig Class

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

public final class DaprConfig

App Dapr configuration.

Constructor Summary

Constructor Description
DaprConfig()

Creates an instance of DaprConfig class.

Method Summary

Modifier and Type Method and Description
String appId()

Get the appId property: Dapr application identifier.

Integer appPort()

Get the appPort property: Tells Dapr which port your application is listening on.

Boolean enableApiLogging()

Get the enableApiLogging property: Enables API logging for the Dapr sidecar.

Boolean enabled()

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

Integer httpMaxRequestSize()

Get the httpMaxRequestSize property: Increasing max size of request body http servers parameter in MB to handle uploading of big files.

Integer httpReadBufferSize()

Get the httpReadBufferSize property: Dapr max size of http header read buffer in KB to handle when sending multi-KB headers.

DaprLogLevel logLevel()

Get the logLevel property: Sets the log level for the Dapr sidecar.

void validate()

Validates the instance.

DaprConfig withAppId(String appId)

Set the appId property: Dapr application identifier.

DaprConfig withAppPort(Integer appPort)

Set the appPort property: Tells Dapr which port your application is listening on.

DaprConfig withEnableApiLogging(Boolean enableApiLogging)

Set the enableApiLogging property: Enables API logging for the Dapr sidecar.

DaprConfig withEnabled(Boolean enabled)

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

DaprConfig withHttpMaxRequestSize(Integer httpMaxRequestSize)

Set the httpMaxRequestSize property: Increasing max size of request body http servers parameter in MB to handle uploading of big files.

DaprConfig withHttpReadBufferSize(Integer httpReadBufferSize)

Set the httpReadBufferSize property: Dapr max size of http header read buffer in KB to handle when sending multi-KB headers.

DaprConfig withLogLevel(DaprLogLevel logLevel)

Set the logLevel property: Sets the log level for the Dapr sidecar.

Methods inherited from java.lang.Object

Constructor Details

DaprConfig

public DaprConfig()

Creates an instance of DaprConfig 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: Tells Dapr which port your application is listening on.

Returns:

the appPort value.

enableApiLogging

public Boolean enableApiLogging()

Get the enableApiLogging property: Enables API logging for the Dapr sidecar.

Returns:

the enableApiLogging value.

enabled

public Boolean enabled()

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

Returns:

the enabled value.

httpMaxRequestSize

public Integer httpMaxRequestSize()

Get the httpMaxRequestSize property: Increasing max size of request body http servers parameter in MB to handle uploading of big files. Default is 4 MB.

Returns:

the httpMaxRequestSize value.

httpReadBufferSize

public Integer httpReadBufferSize()

Get the httpReadBufferSize property: Dapr max size of http header read buffer in KB to handle when sending multi-KB headers. Default is 65KB.

Returns:

the httpReadBufferSize value.

logLevel

public DaprLogLevel logLevel()

Get the logLevel property: Sets the log level for the Dapr sidecar. Allowed values are debug, info, warn, error. Default is info.

Returns:

the logLevel value.

validate

public void validate()

Validates the instance.

withAppId

public DaprConfig withAppId(String appId)

Set the appId property: Dapr application identifier.

Parameters:

appId - the appId value to set.

Returns:

the DaprConfig object itself.

withAppPort

public DaprConfig withAppPort(Integer appPort)

Set the appPort property: Tells Dapr which port your application is listening on.

Parameters:

appPort - the appPort value to set.

Returns:

the DaprConfig object itself.

withEnableApiLogging

public DaprConfig withEnableApiLogging(Boolean enableApiLogging)

Set the enableApiLogging property: Enables API logging for the Dapr sidecar.

Parameters:

enableApiLogging - the enableApiLogging value to set.

Returns:

the DaprConfig object itself.

withEnabled

public DaprConfig 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 DaprConfig object itself.

withHttpMaxRequestSize

public DaprConfig withHttpMaxRequestSize(Integer httpMaxRequestSize)

Set the httpMaxRequestSize property: Increasing max size of request body http servers parameter in MB to handle uploading of big files. Default is 4 MB.

Parameters:

httpMaxRequestSize - the httpMaxRequestSize value to set.

Returns:

the DaprConfig object itself.

withHttpReadBufferSize

public DaprConfig withHttpReadBufferSize(Integer httpReadBufferSize)

Set the httpReadBufferSize property: Dapr max size of http header read buffer in KB to handle when sending multi-KB headers. Default is 65KB.

Parameters:

httpReadBufferSize - the httpReadBufferSize value to set.

Returns:

the DaprConfig object itself.

withLogLevel

public DaprConfig withLogLevel(DaprLogLevel logLevel)

Set the logLevel property: Sets the log level for the Dapr sidecar. Allowed values are debug, info, warn, error. Default is info.

Parameters:

logLevel - the logLevel value to set.

Returns:

the DaprConfig object itself.

Applies to