DaprConfig Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. DaprConfig
- com.
Implements
public final class DaprConfig
implements JsonSerializable<DaprConfig>
App Dapr configuration.
Constructor Summary
Constructor | Description |
---|---|
DaprConfig() |
Creates an instance of Dapr |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
appId()
Get the app |
Integer |
appPort()
Get the app |
Boolean |
enableApiLogging()
Get the enable |
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 |
Integer |
httpMaxRequestSize()
Get the http |
Integer |
httpReadBufferSize()
Get the http |
Dapr |
logLevel()
Get the log |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Dapr |
withAppId(String appId)
Set the app |
Dapr |
withAppPort(Integer appPort)
Set the app |
Dapr |
withEnableApiLogging(Boolean enableApiLogging)
Set the enable |
Dapr |
withEnabled(Boolean enabled)
Set the enabled property: Boolean indicating if the Dapr side car is enabled. |
Dapr |
withHttpMaxRequestSize(Integer httpMaxRequestSize)
Set the http |
Dapr |
withHttpReadBufferSize(Integer httpReadBufferSize)
Set the http |
Dapr |
withLogLevel(DaprLogLevel logLevel)
Set the log |
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:
appPort
public Integer appPort()
Get the appPort property: Tells Dapr which port your application is listening on.
Returns:
enableApiLogging
public Boolean enableApiLogging()
Get the enableApiLogging property: Enables API logging for the Dapr sidecar.
Returns:
enabled
public Boolean enabled()
Get the enabled property: Boolean indicating if the Dapr side car is enabled.
Returns:
fromJson
public static DaprConfig fromJson(JsonReader jsonReader)
Reads an instance of DaprConfig from the JsonReader.
Parameters:
Returns:
Throws:
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:
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:
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:
toJson
validate
public void validate()
Validates the instance.
withAppId
public DaprConfig withAppId(String appId)
Set the appId property: Dapr application identifier.
Parameters:
Returns:
withAppPort
public DaprConfig withAppPort(Integer appPort)
Set the appPort property: Tells Dapr which port your application is listening on.
Parameters:
Returns:
withEnableApiLogging
public DaprConfig withEnableApiLogging(Boolean enableApiLogging)
Set the enableApiLogging property: Enables API logging for the Dapr sidecar.
Parameters:
Returns:
withEnabled
public DaprConfig withEnabled(Boolean enabled)
Set the enabled property: Boolean indicating if the Dapr side car is enabled.
Parameters:
Returns:
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:
Returns:
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:
Returns:
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:
Returns:
Applies to
Azure SDK for Java