Interface MethodSetting.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<MethodSetting.Builder,
,MethodSetting> SdkBuilder<MethodSetting.Builder,
,MethodSetting> SdkPojo
- Enclosing class:
MethodSetting
-
Method Summary
Modifier and TypeMethodDescriptioncacheDataEncrypted
(Boolean cacheDataEncrypted) Specifies whether the cached responses are encrypted.cacheTtlInSeconds
(Integer cacheTtlInSeconds) Specifies the time to live (TTL), in seconds, for cached responses.cachingEnabled
(Boolean cachingEnabled) Specifies whether responses should be cached and returned for requests.dataTraceEnabled
(Boolean dataTraceEnabled) Specifies whether data trace logging is enabled for this method, which affects the log entries pushed to Amazon CloudWatch Logs.loggingLevel
(String loggingLevel) Specifies the logging level for this method, which affects the log entries pushed to Amazon CloudWatch Logs.metricsEnabled
(Boolean metricsEnabled) Specifies whether Amazon CloudWatch metrics are enabled for this method.requireAuthorizationForCacheControl
(Boolean requireAuthorizationForCacheControl) Specifies whether authorization is required for a cache invalidation request.throttlingBurstLimit
(Integer throttlingBurstLimit) Specifies the throttling burst limit.throttlingRateLimit
(Double throttlingRateLimit) Specifies the throttling rate limit.unauthorizedCacheControlHeaderStrategy
(String unauthorizedCacheControlHeaderStrategy) Specifies how to handle unauthorized requests for cache invalidation.unauthorizedCacheControlHeaderStrategy
(UnauthorizedCacheControlHeaderStrategy unauthorizedCacheControlHeaderStrategy) Specifies how to handle unauthorized requests for cache invalidation.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
metricsEnabled
Specifies whether Amazon CloudWatch metrics are enabled for this method.
- Parameters:
metricsEnabled
- Specifies whether Amazon CloudWatch metrics are enabled for this method.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
loggingLevel
Specifies the logging level for this method, which affects the log entries pushed to Amazon CloudWatch Logs. Valid values are
OFF
,ERROR
, andINFO
. ChooseERROR
to write only error-level entries to CloudWatch Logs, or chooseINFO
to include allERROR
events as well as extra informational events.- Parameters:
loggingLevel
- Specifies the logging level for this method, which affects the log entries pushed to Amazon CloudWatch Logs. Valid values areOFF
,ERROR
, andINFO
. ChooseERROR
to write only error-level entries to CloudWatch Logs, or chooseINFO
to include allERROR
events as well as extra informational events.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataTraceEnabled
Specifies whether data trace logging is enabled for this method, which affects the log entries pushed to Amazon CloudWatch Logs.
- Parameters:
dataTraceEnabled
- Specifies whether data trace logging is enabled for this method, which affects the log entries pushed to Amazon CloudWatch Logs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
throttlingBurstLimit
Specifies the throttling burst limit.
- Parameters:
throttlingBurstLimit
- Specifies the throttling burst limit.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
throttlingRateLimit
Specifies the throttling rate limit.
- Parameters:
throttlingRateLimit
- Specifies the throttling rate limit.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cachingEnabled
Specifies whether responses should be cached and returned for requests. A cache cluster must be enabled on the stage for responses to be cached.
- Parameters:
cachingEnabled
- Specifies whether responses should be cached and returned for requests. A cache cluster must be enabled on the stage for responses to be cached.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cacheTtlInSeconds
Specifies the time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response will be cached.
- Parameters:
cacheTtlInSeconds
- Specifies the time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response will be cached.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cacheDataEncrypted
Specifies whether the cached responses are encrypted.
- Parameters:
cacheDataEncrypted
- Specifies whether the cached responses are encrypted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requireAuthorizationForCacheControl
MethodSetting.Builder requireAuthorizationForCacheControl(Boolean requireAuthorizationForCacheControl) Specifies whether authorization is required for a cache invalidation request.
- Parameters:
requireAuthorizationForCacheControl
- Specifies whether authorization is required for a cache invalidation request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
unauthorizedCacheControlHeaderStrategy
MethodSetting.Builder unauthorizedCacheControlHeaderStrategy(String unauthorizedCacheControlHeaderStrategy) Specifies how to handle unauthorized requests for cache invalidation.
- Parameters:
unauthorizedCacheControlHeaderStrategy
- Specifies how to handle unauthorized requests for cache invalidation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
unauthorizedCacheControlHeaderStrategy
MethodSetting.Builder unauthorizedCacheControlHeaderStrategy(UnauthorizedCacheControlHeaderStrategy unauthorizedCacheControlHeaderStrategy) Specifies how to handle unauthorized requests for cache invalidation.
- Parameters:
unauthorizedCacheControlHeaderStrategy
- Specifies how to handle unauthorized requests for cache invalidation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-