@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MethodSetting extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the method setting properties.
Constructor and Description |
---|
MethodSetting() |
Modifier and Type | Method and Description |
---|---|
MethodSetting |
clone() |
boolean |
equals(Object obj) |
Boolean |
getCacheDataEncrypted()
Specifies whether the cached responses are encrypted.
|
Integer |
getCacheTtlInSeconds()
Specifies the time to live (TTL), in seconds, for cached responses.
|
Boolean |
getCachingEnabled()
Specifies whether responses should be cached and returned for requests.
|
Boolean |
getDataTraceEnabled()
Specifies whether data trace logging is enabled for this method, which affects the log entries pushed to Amazon
CloudWatch Logs.
|
String |
getLoggingLevel()
Specifies the logging level for this method, which affects the log entries pushed to Amazon CloudWatch Logs.
|
Boolean |
getMetricsEnabled()
Specifies whether Amazon CloudWatch metrics are enabled for this method.
|
Boolean |
getRequireAuthorizationForCacheControl()
Specifies whether authorization is required for a cache invalidation request.
|
Integer |
getThrottlingBurstLimit()
Specifies the throttling burst limit.
|
Double |
getThrottlingRateLimit()
Specifies the throttling rate limit.
|
String |
getUnauthorizedCacheControlHeaderStrategy()
Specifies how to handle unauthorized requests for cache invalidation.
|
int |
hashCode() |
Boolean |
isCacheDataEncrypted()
Specifies whether the cached responses are encrypted.
|
Boolean |
isCachingEnabled()
Specifies whether responses should be cached and returned for requests.
|
Boolean |
isDataTraceEnabled()
Specifies whether data trace logging is enabled for this method, which affects the log entries pushed to Amazon
CloudWatch Logs.
|
Boolean |
isMetricsEnabled()
Specifies whether Amazon CloudWatch metrics are enabled for this method.
|
Boolean |
isRequireAuthorizationForCacheControl()
Specifies whether authorization is required for a cache invalidation request.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
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 whether data trace logging is enabled for this method, which affects the log entries pushed to Amazon
CloudWatch Logs.
|
void |
setLoggingLevel(String loggingLevel)
Specifies the logging level for this method, which affects 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(String unauthorizedCacheControlHeaderStrategy)
Specifies how to handle unauthorized requests for cache invalidation.
|
void |
setUnauthorizedCacheControlHeaderStrategy(UnauthorizedCacheControlHeaderStrategy unauthorizedCacheControlHeaderStrategy)
Specifies how to handle unauthorized requests for cache invalidation.
|
String |
toString()
Returns a string representation of this object.
|
MethodSetting |
withCacheDataEncrypted(Boolean cacheDataEncrypted)
Specifies whether the cached responses are encrypted.
|
MethodSetting |
withCacheTtlInSeconds(Integer cacheTtlInSeconds)
Specifies the time to live (TTL), in seconds, for cached responses.
|
MethodSetting |
withCachingEnabled(Boolean cachingEnabled)
Specifies whether responses should be cached and returned for requests.
|
MethodSetting |
withDataTraceEnabled(Boolean dataTraceEnabled)
Specifies whether data trace logging is enabled for this method, which affects the log entries pushed to Amazon
CloudWatch Logs.
|
MethodSetting |
withLoggingLevel(String loggingLevel)
Specifies the logging level for this method, which affects the log entries pushed to Amazon CloudWatch Logs.
|
MethodSetting |
withMetricsEnabled(Boolean metricsEnabled)
Specifies whether Amazon CloudWatch metrics are enabled for this method.
|
MethodSetting |
withRequireAuthorizationForCacheControl(Boolean requireAuthorizationForCacheControl)
Specifies whether authorization is required for a cache invalidation request.
|
MethodSetting |
withThrottlingBurstLimit(Integer throttlingBurstLimit)
Specifies the throttling burst limit.
|
MethodSetting |
withThrottlingRateLimit(Double throttlingRateLimit)
Specifies the throttling rate limit.
|
MethodSetting |
withUnauthorizedCacheControlHeaderStrategy(String unauthorizedCacheControlHeaderStrategy)
Specifies how to handle unauthorized requests for cache invalidation.
|
MethodSetting |
withUnauthorizedCacheControlHeaderStrategy(UnauthorizedCacheControlHeaderStrategy unauthorizedCacheControlHeaderStrategy)
Specifies how to handle unauthorized requests for cache invalidation.
|
public void setMetricsEnabled(Boolean metricsEnabled)
Specifies whether Amazon CloudWatch metrics are enabled for this method.
metricsEnabled
- Specifies whether Amazon CloudWatch metrics are enabled for this method.public Boolean getMetricsEnabled()
Specifies whether Amazon CloudWatch metrics are enabled for this method.
public MethodSetting withMetricsEnabled(Boolean metricsEnabled)
Specifies whether Amazon CloudWatch metrics are enabled for this method.
metricsEnabled
- Specifies whether Amazon CloudWatch metrics are enabled for this method.public Boolean isMetricsEnabled()
Specifies whether Amazon CloudWatch metrics are enabled for this method.
public void setLoggingLevel(String loggingLevel)
Specifies the logging level for this method, which affects the log entries pushed to Amazon CloudWatch Logs.
Valid values are OFF
, ERROR
, and INFO
. Choose ERROR
to write
only error-level entries to CloudWatch Logs, or choose INFO
to include all ERROR
events
as well as extra informational events.
loggingLevel
- Specifies the logging level for this method, which affects the log entries pushed to Amazon CloudWatch
Logs. Valid values are OFF
, ERROR
, and INFO
. Choose
ERROR
to write only error-level entries to CloudWatch Logs, or choose INFO
to
include all ERROR
events as well as extra informational events.public String getLoggingLevel()
Specifies the logging level for this method, which affects the log entries pushed to Amazon CloudWatch Logs.
Valid values are OFF
, ERROR
, and INFO
. Choose ERROR
to write
only error-level entries to CloudWatch Logs, or choose INFO
to include all ERROR
events
as well as extra informational events.
OFF
, ERROR
, and INFO
. Choose
ERROR
to write only error-level entries to CloudWatch Logs, or choose INFO
to
include all ERROR
events as well as extra informational events.public MethodSetting withLoggingLevel(String loggingLevel)
Specifies the logging level for this method, which affects the log entries pushed to Amazon CloudWatch Logs.
Valid values are OFF
, ERROR
, and INFO
. Choose ERROR
to write
only error-level entries to CloudWatch Logs, or choose INFO
to include all ERROR
events
as well as extra informational events.
loggingLevel
- Specifies the logging level for this method, which affects the log entries pushed to Amazon CloudWatch
Logs. Valid values are OFF
, ERROR
, and INFO
. Choose
ERROR
to write only error-level entries to CloudWatch Logs, or choose INFO
to
include all ERROR
events as well as extra informational events.public void setDataTraceEnabled(Boolean dataTraceEnabled)
Specifies whether data trace logging is enabled for this method, which affects the log entries pushed to Amazon CloudWatch Logs. This can be useful to troubleshoot APIs, but can result in logging sensitive data. We recommend that you don't enable this option for production APIs.
dataTraceEnabled
- Specifies whether data trace logging is enabled for this method, which affects the log entries pushed to
Amazon CloudWatch Logs. This can be useful to troubleshoot APIs, but can result in logging sensitive data.
We recommend that you don't enable this option for production APIs.public Boolean getDataTraceEnabled()
Specifies whether data trace logging is enabled for this method, which affects the log entries pushed to Amazon CloudWatch Logs. This can be useful to troubleshoot APIs, but can result in logging sensitive data. We recommend that you don't enable this option for production APIs.
public MethodSetting withDataTraceEnabled(Boolean dataTraceEnabled)
Specifies whether data trace logging is enabled for this method, which affects the log entries pushed to Amazon CloudWatch Logs. This can be useful to troubleshoot APIs, but can result in logging sensitive data. We recommend that you don't enable this option for production APIs.
dataTraceEnabled
- Specifies whether data trace logging is enabled for this method, which affects the log entries pushed to
Amazon CloudWatch Logs. This can be useful to troubleshoot APIs, but can result in logging sensitive data.
We recommend that you don't enable this option for production APIs.public Boolean isDataTraceEnabled()
Specifies whether data trace logging is enabled for this method, which affects the log entries pushed to Amazon CloudWatch Logs. This can be useful to troubleshoot APIs, but can result in logging sensitive data. We recommend that you don't enable this option for production APIs.
public void setThrottlingBurstLimit(Integer throttlingBurstLimit)
Specifies the throttling burst limit.
throttlingBurstLimit
- Specifies the throttling burst limit.public Integer getThrottlingBurstLimit()
Specifies the throttling burst limit.
public MethodSetting withThrottlingBurstLimit(Integer throttlingBurstLimit)
Specifies the throttling burst limit.
throttlingBurstLimit
- Specifies the throttling burst limit.public void setThrottlingRateLimit(Double throttlingRateLimit)
Specifies the throttling rate limit.
throttlingRateLimit
- Specifies the throttling rate limit.public Double getThrottlingRateLimit()
Specifies the throttling rate limit.
public MethodSetting withThrottlingRateLimit(Double throttlingRateLimit)
Specifies the throttling rate limit.
throttlingRateLimit
- Specifies the throttling rate limit.public void setCachingEnabled(Boolean 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.
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.public 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.
public MethodSetting withCachingEnabled(Boolean 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.
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.public Boolean 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.
public void setCacheTtlInSeconds(Integer cacheTtlInSeconds)
Specifies the time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response will be cached.
cacheTtlInSeconds
- Specifies the time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the
response will be cached.public Integer getCacheTtlInSeconds()
Specifies the time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response will be cached.
public MethodSetting withCacheTtlInSeconds(Integer cacheTtlInSeconds)
Specifies the time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response will be cached.
cacheTtlInSeconds
- Specifies the time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the
response will be cached.public void setCacheDataEncrypted(Boolean cacheDataEncrypted)
Specifies whether the cached responses are encrypted.
cacheDataEncrypted
- Specifies whether the cached responses are encrypted.public Boolean getCacheDataEncrypted()
Specifies whether the cached responses are encrypted.
public MethodSetting withCacheDataEncrypted(Boolean cacheDataEncrypted)
Specifies whether the cached responses are encrypted.
cacheDataEncrypted
- Specifies whether the cached responses are encrypted.public Boolean isCacheDataEncrypted()
Specifies whether the cached responses are encrypted.
public void setRequireAuthorizationForCacheControl(Boolean requireAuthorizationForCacheControl)
Specifies whether authorization is required for a cache invalidation request.
requireAuthorizationForCacheControl
- Specifies whether authorization is required for a cache invalidation request.public Boolean getRequireAuthorizationForCacheControl()
Specifies whether authorization is required for a cache invalidation request.
public MethodSetting withRequireAuthorizationForCacheControl(Boolean requireAuthorizationForCacheControl)
Specifies whether authorization is required for a cache invalidation request.
requireAuthorizationForCacheControl
- Specifies whether authorization is required for a cache invalidation request.public Boolean isRequireAuthorizationForCacheControl()
Specifies whether authorization is required for a cache invalidation request.
public void setUnauthorizedCacheControlHeaderStrategy(String unauthorizedCacheControlHeaderStrategy)
Specifies how to handle unauthorized requests for cache invalidation.
unauthorizedCacheControlHeaderStrategy
- Specifies how to handle unauthorized requests for cache invalidation.UnauthorizedCacheControlHeaderStrategy
public String getUnauthorizedCacheControlHeaderStrategy()
Specifies how to handle unauthorized requests for cache invalidation.
UnauthorizedCacheControlHeaderStrategy
public MethodSetting withUnauthorizedCacheControlHeaderStrategy(String unauthorizedCacheControlHeaderStrategy)
Specifies how to handle unauthorized requests for cache invalidation.
unauthorizedCacheControlHeaderStrategy
- Specifies how to handle unauthorized requests for cache invalidation.UnauthorizedCacheControlHeaderStrategy
public void setUnauthorizedCacheControlHeaderStrategy(UnauthorizedCacheControlHeaderStrategy unauthorizedCacheControlHeaderStrategy)
Specifies how to handle unauthorized requests for cache invalidation.
unauthorizedCacheControlHeaderStrategy
- Specifies how to handle unauthorized requests for cache invalidation.UnauthorizedCacheControlHeaderStrategy
public MethodSetting withUnauthorizedCacheControlHeaderStrategy(UnauthorizedCacheControlHeaderStrategy unauthorizedCacheControlHeaderStrategy)
Specifies how to handle unauthorized requests for cache invalidation.
unauthorizedCacheControlHeaderStrategy
- Specifies how to handle unauthorized requests for cache invalidation.UnauthorizedCacheControlHeaderStrategy
public String toString()
toString
in class Object
Object.toString()
public MethodSetting clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.