Class MethodSetting
- All Implemented Interfaces:
Serializable
,Cloneable
Specifies the method setting properties.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
Specifies whether the cached responses are encrypted.Specifies the time to live (TTL) in seconds, for cached responses.Specifies whether responses should be cached and returned for requests.Specifies the whether data trace logging is enabled for this method, which effects the log entries pushed to Amazon CloudWatch Logs.Specifies the logging level for this method, which effects the log entries pushed to Amazon CloudWatch Logs.Specifies whether Amazon CloudWatch metrics are enabled for this method.Specifies whether authorization is required for a cache invalidation request.Specifies the throttling burst limit.Specifies the throttling rate limit.Specifies the strategy on how to handle the unauthorized requests for cache invalidation.int
hashCode()
Specifies whether the cached responses are encrypted.Specifies whether responses should be cached and returned for requests.Specifies the whether data trace logging is enabled for this method, which effects the log entries pushed to Amazon CloudWatch Logs.Specifies whether Amazon CloudWatch metrics are enabled for this method.Specifies whether authorization is required for a cache invalidation request.void
setCacheDataEncrypted
(Boolean cacheDataEncrypted) Specifies whether the cached responses are encrypted.void
setCacheTtlInSeconds
(Integer cacheTtlInSeconds) Specifies the time to live (TTL) in seconds, for cached responses.void
setCachingEnabled
(Boolean cachingEnabled) Specifies whether responses should be cached and returned for requests.void
setDataTraceEnabled
(Boolean dataTraceEnabled) Specifies the whether data trace logging is enabled for this method, which effects the log entries pushed to Amazon CloudWatch Logs.void
setLoggingLevel
(String loggingLevel) Specifies the logging level for this method, which effects the log entries pushed to Amazon CloudWatch Logs.void
setMetricsEnabled
(Boolean metricsEnabled) Specifies whether Amazon CloudWatch metrics are enabled for this method.void
setRequireAuthorizationForCacheControl
(Boolean requireAuthorizationForCacheControl) Specifies whether authorization is required for a cache invalidation request.void
setThrottlingBurstLimit
(Integer throttlingBurstLimit) Specifies the throttling burst limit.void
setThrottlingRateLimit
(Double throttlingRateLimit) Specifies the throttling rate limit.void
setUnauthorizedCacheControlHeaderStrategy
(UnauthorizedCacheControlHeaderStrategy unauthorizedCacheControlHeaderStrategy) Specifies the strategy on how to handle the unauthorized requests for cache invalidation.void
setUnauthorizedCacheControlHeaderStrategy
(String unauthorizedCacheControlHeaderStrategy) Specifies the strategy on how to handle the unauthorized requests for cache invalidation.toString()
Returns a string representation of this object; useful for testing and debugging.withCacheDataEncrypted
(Boolean cacheDataEncrypted) Specifies whether the cached responses are encrypted.withCacheTtlInSeconds
(Integer cacheTtlInSeconds) Specifies the time to live (TTL) in seconds, for cached responses.withCachingEnabled
(Boolean cachingEnabled) Specifies whether responses should be cached and returned for requests.withDataTraceEnabled
(Boolean dataTraceEnabled) Specifies the whether data trace logging is enabled for this method, which effects the log entries pushed to Amazon CloudWatch Logs.withLoggingLevel
(String loggingLevel) Specifies the logging level for this method, which effects the log entries pushed to Amazon CloudWatch Logs.withMetricsEnabled
(Boolean metricsEnabled) Specifies whether Amazon CloudWatch metrics are enabled for this method.withRequireAuthorizationForCacheControl
(Boolean requireAuthorizationForCacheControl) Specifies whether authorization is required for a cache invalidation request.withThrottlingBurstLimit
(Integer throttlingBurstLimit) Specifies the throttling burst limit.withThrottlingRateLimit
(Double throttlingRateLimit) Specifies the throttling rate limit.withUnauthorizedCacheControlHeaderStrategy
(UnauthorizedCacheControlHeaderStrategy unauthorizedCacheControlHeaderStrategy) Specifies the strategy on how to handle the unauthorized requests for cache invalidation.withUnauthorizedCacheControlHeaderStrategy
(String unauthorizedCacheControlHeaderStrategy) Specifies the strategy on how to handle the unauthorized requests for cache invalidation.
-
Constructor Details
-
MethodSetting
public MethodSetting()
-
-
Method Details
-
setMetricsEnabled
Specifies whether Amazon CloudWatch metrics are enabled for this method. The PATCH path for this setting is
/{method_setting_key}/metrics/enabled
, and the value is a Boolean.- Parameters:
metricsEnabled
- Specifies whether Amazon CloudWatch metrics are enabled for this method. The PATCH path for this setting is/{method_setting_key}/metrics/enabled
, and the value is a Boolean.
-
getMetricsEnabled
Specifies whether Amazon CloudWatch metrics are enabled for this method. The PATCH path for this setting is
/{method_setting_key}/metrics/enabled
, and the value is a Boolean.- Returns:
- Specifies whether Amazon CloudWatch metrics are enabled for this
method. The PATCH path for this setting is
/{method_setting_key}/metrics/enabled
, and the value is a Boolean.
-
withMetricsEnabled
Specifies whether Amazon CloudWatch metrics are enabled for this method. The PATCH path for this setting is
/{method_setting_key}/metrics/enabled
, and the value is a Boolean.- Parameters:
metricsEnabled
- Specifies whether Amazon CloudWatch metrics are enabled for this method. The PATCH path for this setting is/{method_setting_key}/metrics/enabled
, and the value is a Boolean.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isMetricsEnabled
Specifies whether Amazon CloudWatch metrics are enabled for this method. The PATCH path for this setting is
/{method_setting_key}/metrics/enabled
, and the value is a Boolean.- Returns:
- Specifies whether Amazon CloudWatch metrics are enabled for this
method. The PATCH path for this setting is
/{method_setting_key}/metrics/enabled
, and the value is a Boolean.
-
setLoggingLevel
Specifies the logging level for this method, which effects the log entries pushed to Amazon CloudWatch Logs. The PATCH path for this setting is
/{method_setting_key}/logging/loglevel
, and the available levels areOFF
,ERROR
, andINFO
.- Parameters:
loggingLevel
- Specifies the logging level for this method, which effects the log entries pushed to Amazon CloudWatch Logs. The PATCH path for this setting is/{method_setting_key}/logging/loglevel
, and the available levels areOFF
,ERROR
, andINFO
.
-
getLoggingLevel
Specifies the logging level for this method, which effects the log entries pushed to Amazon CloudWatch Logs. The PATCH path for this setting is
/{method_setting_key}/logging/loglevel
, and the available levels areOFF
,ERROR
, andINFO
.- Returns:
- Specifies the logging level for this method, which effects the
log entries pushed to Amazon CloudWatch Logs. The PATCH path for
this setting is
/{method_setting_key}/logging/loglevel
, and the available levels areOFF
,ERROR
, andINFO
.
-
withLoggingLevel
Specifies the logging level for this method, which effects the log entries pushed to Amazon CloudWatch Logs. The PATCH path for this setting is
/{method_setting_key}/logging/loglevel
, and the available levels areOFF
,ERROR
, andINFO
.- Parameters:
loggingLevel
- Specifies the logging level for this method, which effects the log entries pushed to Amazon CloudWatch Logs. The PATCH path for this setting is/{method_setting_key}/logging/loglevel
, and the available levels areOFF
,ERROR
, andINFO
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDataTraceEnabled
Specifies the whether data trace logging is enabled for this method, which effects the log entries pushed to Amazon CloudWatch Logs. The PATCH path for this setting is
/{method_setting_key}/logging/dataTrace
, and the value is a Boolean.- Parameters:
dataTraceEnabled
- Specifies the whether data trace logging is enabled for this method, which effects the log entries pushed to Amazon CloudWatch Logs. The PATCH path for this setting is/{method_setting_key}/logging/dataTrace
, and the value is a Boolean.
-
getDataTraceEnabled
Specifies the whether data trace logging is enabled for this method, which effects the log entries pushed to Amazon CloudWatch Logs. The PATCH path for this setting is
/{method_setting_key}/logging/dataTrace
, and the value is a Boolean.- Returns:
- Specifies the whether data trace logging is enabled for this
method, which effects the log entries pushed to Amazon CloudWatch
Logs. The PATCH path for this setting is
/{method_setting_key}/logging/dataTrace
, and the value is a Boolean.
-
withDataTraceEnabled
Specifies the whether data trace logging is enabled for this method, which effects the log entries pushed to Amazon CloudWatch Logs. The PATCH path for this setting is
/{method_setting_key}/logging/dataTrace
, and the value is a Boolean.- Parameters:
dataTraceEnabled
- Specifies the whether data trace logging is enabled for this method, which effects the log entries pushed to Amazon CloudWatch Logs. The PATCH path for this setting is/{method_setting_key}/logging/dataTrace
, and the value is a Boolean.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isDataTraceEnabled
Specifies the whether data trace logging is enabled for this method, which effects the log entries pushed to Amazon CloudWatch Logs. The PATCH path for this setting is
/{method_setting_key}/logging/dataTrace
, and the value is a Boolean.- Returns:
- Specifies the whether data trace logging is enabled for this
method, which effects the log entries pushed to Amazon CloudWatch
Logs. The PATCH path for this setting is
/{method_setting_key}/logging/dataTrace
, and the value is a Boolean.
-
setThrottlingBurstLimit
Specifies the throttling burst limit. The PATCH path for this setting is
/{method_setting_key}/throttling/burstLimit
, and the value is an integer.- Parameters:
throttlingBurstLimit
- Specifies the throttling burst limit. The PATCH path for this setting is/{method_setting_key}/throttling/burstLimit
, and the value is an integer.
-
getThrottlingBurstLimit
Specifies the throttling burst limit. The PATCH path for this setting is
/{method_setting_key}/throttling/burstLimit
, and the value is an integer.- Returns:
- Specifies the throttling burst limit. The PATCH path for this
setting is
/{method_setting_key}/throttling/burstLimit
, and the value is an integer.
-
withThrottlingBurstLimit
Specifies the throttling burst limit. The PATCH path for this setting is
/{method_setting_key}/throttling/burstLimit
, and the value is an integer.- Parameters:
throttlingBurstLimit
- Specifies the throttling burst limit. The PATCH path for this setting is/{method_setting_key}/throttling/burstLimit
, and the value is an integer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setThrottlingRateLimit
Specifies the throttling rate limit. The PATCH path for this setting is
/{method_setting_key}/throttling/rateLimit
, and the value is a double.- Parameters:
throttlingRateLimit
- Specifies the throttling rate limit. The PATCH path for this setting is/{method_setting_key}/throttling/rateLimit
, and the value is a double.
-
getThrottlingRateLimit
Specifies the throttling rate limit. The PATCH path for this setting is
/{method_setting_key}/throttling/rateLimit
, and the value is a double.- Returns:
- Specifies the throttling rate limit. The PATCH path for this
setting is
/{method_setting_key}/throttling/rateLimit
, and the value is a double.
-
withThrottlingRateLimit
Specifies the throttling rate limit. The PATCH path for this setting is
/{method_setting_key}/throttling/rateLimit
, and the value is a double.- Parameters:
throttlingRateLimit
- Specifies the throttling rate limit. The PATCH path for this setting is/{method_setting_key}/throttling/rateLimit
, and the value is a double.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCachingEnabled
Specifies whether responses should be cached and returned for requests. A cache cluster must be enabled on the stage for responses to be cached. The PATCH path for this setting is
/{method_setting_key}/caching/enabled
, and the value is a Boolean.- 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. The PATCH path for this setting is/{method_setting_key}/caching/enabled
, and the value is a Boolean.
-
getCachingEnabled
Specifies whether responses should be cached and returned for requests. A cache cluster must be enabled on the stage for responses to be cached. The PATCH path for this setting is
/{method_setting_key}/caching/enabled
, and the value is a Boolean.- Returns:
- Specifies whether responses should be cached and returned for
requests. A cache cluster must be enabled on the stage for
responses to be cached. The PATCH path for this setting is
/{method_setting_key}/caching/enabled
, and the value is a Boolean.
-
withCachingEnabled
Specifies whether responses should be cached and returned for requests. A cache cluster must be enabled on the stage for responses to be cached. The PATCH path for this setting is
/{method_setting_key}/caching/enabled
, and the value is a Boolean.- 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. The PATCH path for this setting is/{method_setting_key}/caching/enabled
, and the value is a Boolean.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isCachingEnabled
Specifies whether responses should be cached and returned for requests. A cache cluster must be enabled on the stage for responses to be cached. The PATCH path for this setting is
/{method_setting_key}/caching/enabled
, and the value is a Boolean.- Returns:
- Specifies whether responses should be cached and returned for
requests. A cache cluster must be enabled on the stage for
responses to be cached. The PATCH path for this setting is
/{method_setting_key}/caching/enabled
, and the value is a Boolean.
-
setCacheTtlInSeconds
Specifies the time to live (TTL) in seconds, for cached responses. The higher a the TTL, the longer the response will be cached. The PATCH path for this setting is
/{method_setting_key}/caching/ttlInSeconds
, and the value is an integer.- Parameters:
cacheTtlInSeconds
- Specifies the time to live (TTL) in seconds, for cached responses. The higher a the TTL, the longer the response will be cached. The PATCH path for this setting is/{method_setting_key}/caching/ttlInSeconds
, and the value is an integer.
-
getCacheTtlInSeconds
Specifies the time to live (TTL) in seconds, for cached responses. The higher a the TTL, the longer the response will be cached. The PATCH path for this setting is
/{method_setting_key}/caching/ttlInSeconds
, and the value is an integer.- Returns:
- Specifies the time to live (TTL) in seconds, for cached
responses. The higher a the TTL, the longer the response will be
cached. The PATCH path for this setting is
/{method_setting_key}/caching/ttlInSeconds
, and the value is an integer.
-
withCacheTtlInSeconds
Specifies the time to live (TTL) in seconds, for cached responses. The higher a the TTL, the longer the response will be cached. The PATCH path for this setting is
/{method_setting_key}/caching/ttlInSeconds
, and the value is an integer.- Parameters:
cacheTtlInSeconds
- Specifies the time to live (TTL) in seconds, for cached responses. The higher a the TTL, the longer the response will be cached. The PATCH path for this setting is/{method_setting_key}/caching/ttlInSeconds
, and the value is an integer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCacheDataEncrypted
Specifies whether the cached responses are encrypted. The PATCH path for this setting is
/{method_setting_key}/caching/dataEncrypted
, and the value is a Boolean.- Parameters:
cacheDataEncrypted
- Specifies whether the cached responses are encrypted. The PATCH path for this setting is/{method_setting_key}/caching/dataEncrypted
, and the value is a Boolean.
-
getCacheDataEncrypted
Specifies whether the cached responses are encrypted. The PATCH path for this setting is
/{method_setting_key}/caching/dataEncrypted
, and the value is a Boolean.- Returns:
- Specifies whether the cached responses are encrypted. The PATCH
path for this setting is
/{method_setting_key}/caching/dataEncrypted
, and the value is a Boolean.
-
withCacheDataEncrypted
Specifies whether the cached responses are encrypted. The PATCH path for this setting is
/{method_setting_key}/caching/dataEncrypted
, and the value is a Boolean.- Parameters:
cacheDataEncrypted
- Specifies whether the cached responses are encrypted. The PATCH path for this setting is/{method_setting_key}/caching/dataEncrypted
, and the value is a Boolean.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isCacheDataEncrypted
Specifies whether the cached responses are encrypted. The PATCH path for this setting is
/{method_setting_key}/caching/dataEncrypted
, and the value is a Boolean.- Returns:
- Specifies whether the cached responses are encrypted. The PATCH
path for this setting is
/{method_setting_key}/caching/dataEncrypted
, and the value is a Boolean.
-
setRequireAuthorizationForCacheControl
Specifies whether authorization is required for a cache invalidation request. The PATCH path for this setting is
/{method_setting_key}/caching/requireAuthorizationForCacheControl
, and the value is a Boolean.- Parameters:
requireAuthorizationForCacheControl
- Specifies whether authorization is required for a cache invalidation request. The PATCH path for this setting is/{method_setting_key}/caching/requireAuthorizationForCacheControl
, and the value is a Boolean.
-
getRequireAuthorizationForCacheControl
Specifies whether authorization is required for a cache invalidation request. The PATCH path for this setting is
/{method_setting_key}/caching/requireAuthorizationForCacheControl
, and the value is a Boolean.- Returns:
- Specifies whether authorization is required for a cache
invalidation request. The PATCH path for this setting is
/{method_setting_key}/caching/requireAuthorizationForCacheControl
, and the value is a Boolean.
-
withRequireAuthorizationForCacheControl
public MethodSetting withRequireAuthorizationForCacheControl(Boolean requireAuthorizationForCacheControl) Specifies whether authorization is required for a cache invalidation request. The PATCH path for this setting is
/{method_setting_key}/caching/requireAuthorizationForCacheControl
, and the value is a Boolean.- Parameters:
requireAuthorizationForCacheControl
- Specifies whether authorization is required for a cache invalidation request. The PATCH path for this setting is/{method_setting_key}/caching/requireAuthorizationForCacheControl
, and the value is a Boolean.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isRequireAuthorizationForCacheControl
Specifies whether authorization is required for a cache invalidation request. The PATCH path for this setting is
/{method_setting_key}/caching/requireAuthorizationForCacheControl
, and the value is a Boolean.- Returns:
- Specifies whether authorization is required for a cache
invalidation request. The PATCH path for this setting is
/{method_setting_key}/caching/requireAuthorizationForCacheControl
, and the value is a Boolean.
-
setUnauthorizedCacheControlHeaderStrategy
public void setUnauthorizedCacheControlHeaderStrategy(String unauthorizedCacheControlHeaderStrategy) Specifies the strategy on how to handle the unauthorized requests for cache invalidation. The PATCH path for this setting is
/{method_setting_key}/caching/unauthorizedCacheControlHeaderStrategy
, and the available values areFAIL_WITH_403
,SUCCEED_WITH_RESPONSE_HEADER
,SUCCEED_WITHOUT_RESPONSE_HEADER
.- Parameters:
unauthorizedCacheControlHeaderStrategy
- Specifies the strategy on how to handle the unauthorized requests for cache invalidation. The PATCH path for this setting is/{method_setting_key}/caching/unauthorizedCacheControlHeaderStrategy
, and the available values areFAIL_WITH_403
,SUCCEED_WITH_RESPONSE_HEADER
,SUCCEED_WITHOUT_RESPONSE_HEADER
.- See Also:
-
getUnauthorizedCacheControlHeaderStrategy
Specifies the strategy on how to handle the unauthorized requests for cache invalidation. The PATCH path for this setting is
/{method_setting_key}/caching/unauthorizedCacheControlHeaderStrategy
, and the available values areFAIL_WITH_403
,SUCCEED_WITH_RESPONSE_HEADER
,SUCCEED_WITHOUT_RESPONSE_HEADER
.- Returns:
- Specifies the strategy on how to handle the unauthorized requests
for cache invalidation. The PATCH path for this setting is
/{method_setting_key}/caching/unauthorizedCacheControlHeaderStrategy
, and the available values areFAIL_WITH_403
,SUCCEED_WITH_RESPONSE_HEADER
,SUCCEED_WITHOUT_RESPONSE_HEADER
. - See Also:
-
withUnauthorizedCacheControlHeaderStrategy
public MethodSetting withUnauthorizedCacheControlHeaderStrategy(String unauthorizedCacheControlHeaderStrategy) Specifies the strategy on how to handle the unauthorized requests for cache invalidation. The PATCH path for this setting is
/{method_setting_key}/caching/unauthorizedCacheControlHeaderStrategy
, and the available values areFAIL_WITH_403
,SUCCEED_WITH_RESPONSE_HEADER
,SUCCEED_WITHOUT_RESPONSE_HEADER
.- Parameters:
unauthorizedCacheControlHeaderStrategy
- Specifies the strategy on how to handle the unauthorized requests for cache invalidation. The PATCH path for this setting is/{method_setting_key}/caching/unauthorizedCacheControlHeaderStrategy
, and the available values areFAIL_WITH_403
,SUCCEED_WITH_RESPONSE_HEADER
,SUCCEED_WITHOUT_RESPONSE_HEADER
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setUnauthorizedCacheControlHeaderStrategy
public void setUnauthorizedCacheControlHeaderStrategy(UnauthorizedCacheControlHeaderStrategy unauthorizedCacheControlHeaderStrategy) Specifies the strategy on how to handle the unauthorized requests for cache invalidation. The PATCH path for this setting is
/{method_setting_key}/caching/unauthorizedCacheControlHeaderStrategy
, and the available values areFAIL_WITH_403
,SUCCEED_WITH_RESPONSE_HEADER
,SUCCEED_WITHOUT_RESPONSE_HEADER
.- Parameters:
unauthorizedCacheControlHeaderStrategy
- Specifies the strategy on how to handle the unauthorized requests for cache invalidation. The PATCH path for this setting is/{method_setting_key}/caching/unauthorizedCacheControlHeaderStrategy
, and the available values areFAIL_WITH_403
,SUCCEED_WITH_RESPONSE_HEADER
,SUCCEED_WITHOUT_RESPONSE_HEADER
.- See Also:
-
withUnauthorizedCacheControlHeaderStrategy
public MethodSetting withUnauthorizedCacheControlHeaderStrategy(UnauthorizedCacheControlHeaderStrategy unauthorizedCacheControlHeaderStrategy) Specifies the strategy on how to handle the unauthorized requests for cache invalidation. The PATCH path for this setting is
/{method_setting_key}/caching/unauthorizedCacheControlHeaderStrategy
, and the available values areFAIL_WITH_403
,SUCCEED_WITH_RESPONSE_HEADER
,SUCCEED_WITHOUT_RESPONSE_HEADER
.- Parameters:
unauthorizedCacheControlHeaderStrategy
- Specifies the strategy on how to handle the unauthorized requests for cache invalidation. The PATCH path for this setting is/{method_setting_key}/caching/unauthorizedCacheControlHeaderStrategy
, and the available values areFAIL_WITH_403
,SUCCEED_WITH_RESPONSE_HEADER
,SUCCEED_WITHOUT_RESPONSE_HEADER
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-