Class MethodSetting
- java.lang.Object
-
- software.amazon.awssdk.services.apigateway.model.MethodSetting
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<MethodSetting.Builder,MethodSetting>
@Generated("software.amazon.awssdk:codegen") public final class MethodSetting extends Object implements SdkPojo, Serializable, ToCopyableBuilder<MethodSetting.Builder,MethodSetting>
Specifies the method setting properties.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceMethodSetting.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MethodSetting.Builderbuilder()BooleancacheDataEncrypted()Specifies whether the cached responses are encrypted.IntegercacheTtlInSeconds()Specifies the time to live (TTL), in seconds, for cached responses.BooleancachingEnabled()Specifies whether responses should be cached and returned for requests.BooleandataTraceEnabled()Specifies whether data trace logging is enabled for this method, which affects the log entries pushed to Amazon CloudWatch Logs.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringloggingLevel()Specifies the logging level for this method, which affects the log entries pushed to Amazon CloudWatch Logs.BooleanmetricsEnabled()Specifies whether Amazon CloudWatch metrics are enabled for this method.BooleanrequireAuthorizationForCacheControl()Specifies whether authorization is required for a cache invalidation request.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends MethodSetting.Builder>serializableBuilderClass()IntegerthrottlingBurstLimit()Specifies the throttling burst limit.DoublethrottlingRateLimit()Specifies the throttling rate limit.MethodSetting.BuildertoBuilder()StringtoString()Returns a string representation of this object.UnauthorizedCacheControlHeaderStrategyunauthorizedCacheControlHeaderStrategy()Specifies how to handle unauthorized requests for cache invalidation.StringunauthorizedCacheControlHeaderStrategyAsString()Specifies how to handle unauthorized requests for cache invalidation.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
metricsEnabled
public final Boolean metricsEnabled()
Specifies whether Amazon CloudWatch metrics are enabled for this method.
- Returns:
- Specifies whether Amazon CloudWatch metrics are enabled for this method.
-
loggingLevel
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, andINFO. ChooseERRORto write only error-level entries to CloudWatch Logs, or chooseINFOto include allERRORevents as well as extra informational events.- Returns:
- Specifies the logging level for this method, which affects the log entries pushed to Amazon CloudWatch
Logs. Valid values are
OFF,ERROR, andINFO. ChooseERRORto write only error-level entries to CloudWatch Logs, or chooseINFOto include allERRORevents as well as extra informational events.
-
dataTraceEnabled
public final 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.
- Returns:
- 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.
-
throttlingBurstLimit
public final Integer throttlingBurstLimit()
Specifies the throttling burst limit.
- Returns:
- Specifies the throttling burst limit.
-
throttlingRateLimit
public final Double throttlingRateLimit()
Specifies the throttling rate limit.
- Returns:
- Specifies the throttling rate limit.
-
cachingEnabled
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.
- 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.
-
cacheTtlInSeconds
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.
- Returns:
- Specifies the time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response will be cached.
-
cacheDataEncrypted
public final Boolean cacheDataEncrypted()
Specifies whether the cached responses are encrypted.
- Returns:
- Specifies whether the cached responses are encrypted.
-
requireAuthorizationForCacheControl
public final Boolean requireAuthorizationForCacheControl()
Specifies whether authorization is required for a cache invalidation request.
- Returns:
- Specifies whether authorization is required for a cache invalidation request.
-
unauthorizedCacheControlHeaderStrategy
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,
unauthorizedCacheControlHeaderStrategywill returnUnauthorizedCacheControlHeaderStrategy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromunauthorizedCacheControlHeaderStrategyAsString().- Returns:
- Specifies how to handle unauthorized requests for cache invalidation.
- See Also:
UnauthorizedCacheControlHeaderStrategy
-
unauthorizedCacheControlHeaderStrategyAsString
public 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,
unauthorizedCacheControlHeaderStrategywill returnUnauthorizedCacheControlHeaderStrategy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromunauthorizedCacheControlHeaderStrategyAsString().- Returns:
- Specifies how to handle unauthorized requests for cache invalidation.
- See Also:
UnauthorizedCacheControlHeaderStrategy
-
toBuilder
public MethodSetting.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<MethodSetting.Builder,MethodSetting>
-
builder
public static MethodSetting.Builder builder()
-
serializableBuilderClass
public static Class<? extends MethodSetting.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-