@Generated(value="software.amazon.awssdk:codegen") public final class MethodSetting extends Object implements SdkPojo, Serializable, ToCopyableBuilder<MethodSetting.Builder,MethodSetting>
Specifies the method setting properties.
| Modifier and Type | Class and Description |
|---|---|
static interface |
MethodSetting.Builder |
| Modifier and Type | Method and Description |
|---|---|
static MethodSetting.Builder |
builder() |
Boolean |
cacheDataEncrypted()
Specifies whether the cached responses are encrypted.
|
Integer |
cacheTtlInSeconds()
Specifies the time to live (TTL), in seconds, for cached responses.
|
Boolean |
cachingEnabled()
Specifies whether responses should be cached and returned for requests.
|
Boolean |
dataTraceEnabled()
Specifies whether data trace logging is enabled for this method, which affects the log entries pushed to Amazon
CloudWatch Logs.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
loggingLevel()
Specifies the logging level for this method, which affects the log entries pushed to Amazon CloudWatch Logs.
|
Boolean |
metricsEnabled()
Specifies whether Amazon CloudWatch metrics are enabled for this method.
|
Boolean |
requireAuthorizationForCacheControl()
Specifies whether authorization is required for a cache invalidation request.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends MethodSetting.Builder> |
serializableBuilderClass() |
Integer |
throttlingBurstLimit()
Specifies the throttling burst limit.
|
Double |
throttlingRateLimit()
Specifies the throttling rate limit.
|
MethodSetting.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
UnauthorizedCacheControlHeaderStrategy |
unauthorizedCacheControlHeaderStrategy()
Specifies how to handle unauthorized requests for cache invalidation.
|
String |
unauthorizedCacheControlHeaderStrategyAsString()
Specifies how to handle unauthorized requests for cache invalidation.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Boolean metricsEnabled()
Specifies whether Amazon CloudWatch metrics are enabled for this method.
public final 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.
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 final Boolean dataTraceEnabled()
Specifies whether data trace logging is enabled for this method, which affects the log entries pushed to Amazon CloudWatch Logs.
public final Integer throttlingBurstLimit()
Specifies the throttling burst limit.
public final Double throttlingRateLimit()
Specifies the throttling rate limit.
public final 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.
public final Integer cacheTtlInSeconds()
Specifies the time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response will be cached.
public final Boolean cacheDataEncrypted()
Specifies whether the cached responses are encrypted.
public final Boolean requireAuthorizationForCacheControl()
Specifies whether authorization is required for a cache invalidation request.
public final UnauthorizedCacheControlHeaderStrategy unauthorizedCacheControlHeaderStrategy()
Specifies how to handle unauthorized requests for cache invalidation.
If the service returns an enum value that is not available in the current SDK version,
unauthorizedCacheControlHeaderStrategy will return
UnauthorizedCacheControlHeaderStrategy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from unauthorizedCacheControlHeaderStrategyAsString().
UnauthorizedCacheControlHeaderStrategypublic final String unauthorizedCacheControlHeaderStrategyAsString()
Specifies how to handle unauthorized requests for cache invalidation.
If the service returns an enum value that is not available in the current SDK version,
unauthorizedCacheControlHeaderStrategy will return
UnauthorizedCacheControlHeaderStrategy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from unauthorizedCacheControlHeaderStrategyAsString().
UnauthorizedCacheControlHeaderStrategypublic MethodSetting.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<MethodSetting.Builder,MethodSetting>public static MethodSetting.Builder builder()
public static Class<? extends MethodSetting.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.