Class Dapr
java.lang.Object
com.azure.resourcemanager.appcontainers.models.Dapr
Container App Dapr configuration.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionappId()
Get the appId property: Dapr application identifier.appPort()
Get the appPort property: Tells Dapr which port your application is listening on.Get the appProtocol property: Tells Dapr which protocol your application is using.Get the enableApiLogging property: Enables API logging for the Dapr sidecar.enabled()
Get the enabled property: Boolean indicating if the Dapr side car is enabled.Get the httpMaxRequestSize property: Increasing max size of request body http and grpc servers parameter in MB to handle uploading of big files.Get the httpReadBufferSize property: Dapr max size of http header read buffer in KB to handle when sending multi-KB headers.logLevel()
Get the logLevel property: Sets the log level for the Dapr sidecar.void
validate()
Validates the instance.Set the appId property: Dapr application identifier.withAppPort
(Integer appPort) Set the appPort property: Tells Dapr which port your application is listening on.withAppProtocol
(AppProtocol appProtocol) Set the appProtocol property: Tells Dapr which protocol your application is using.withEnableApiLogging
(Boolean enableApiLogging) Set the enableApiLogging property: Enables API logging for the Dapr sidecar.withEnabled
(Boolean enabled) Set the enabled property: Boolean indicating if the Dapr side car is enabled.withHttpMaxRequestSize
(Integer httpMaxRequestSize) Set the httpMaxRequestSize property: Increasing max size of request body http and grpc servers parameter in MB to handle uploading of big files.withHttpReadBufferSize
(Integer httpReadBufferSize) Set the httpReadBufferSize property: Dapr max size of http header read buffer in KB to handle when sending multi-KB headers.withLogLevel
(LogLevel logLevel) Set the logLevel property: Sets the log level for the Dapr sidecar.
-
Constructor Details
-
Dapr
public Dapr()Creates an instance of Dapr class.
-
-
Method Details
-
enabled
Get the enabled property: Boolean indicating if the Dapr side car is enabled.- Returns:
- the enabled value.
-
withEnabled
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
Get the appId property: Dapr application identifier.- Returns:
- the appId value.
-
withAppId
Set the appId property: Dapr application identifier.- Parameters:
appId
- the appId value to set.- Returns:
- the Dapr object itself.
-
appProtocol
Get the appProtocol property: Tells Dapr which protocol your application is using. Valid options are http and grpc. Default is http.- Returns:
- the appProtocol value.
-
withAppProtocol
Set the appProtocol property: Tells Dapr which protocol your application is using. Valid options are http and grpc. Default is http.- Parameters:
appProtocol
- the appProtocol value to set.- Returns:
- the Dapr object itself.
-
appPort
Get the appPort property: Tells Dapr which port your application is listening on.- Returns:
- the appPort value.
-
withAppPort
Set the appPort property: Tells Dapr which port your application is listening on.- Parameters:
appPort
- the appPort value to set.- Returns:
- the Dapr object itself.
-
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.
-
withHttpReadBufferSize
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 Dapr object itself.
-
httpMaxRequestSize
Get the httpMaxRequestSize property: Increasing max size of request body http and grpc servers parameter in MB to handle uploading of big files. Default is 4 MB.- Returns:
- the httpMaxRequestSize value.
-
withHttpMaxRequestSize
Set the httpMaxRequestSize property: Increasing max size of request body http and grpc servers parameter in MB to handle uploading of big files. Default is 4 MB.- Parameters:
httpMaxRequestSize
- the httpMaxRequestSize value to set.- Returns:
- the Dapr object itself.
-
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.
-
withLogLevel
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 Dapr object itself.
-
enableApiLogging
Get the enableApiLogging property: Enables API logging for the Dapr sidecar.- Returns:
- the enableApiLogging value.
-
withEnableApiLogging
Set the enableApiLogging property: Enables API logging for the Dapr sidecar.- Parameters:
enableApiLogging
- the enableApiLogging value to set.- Returns:
- the Dapr object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-