Class CfnDeployment.MethodSettingProperty.Builder
java.lang.Object
software.amazon.awscdk.services.apigateway.CfnDeployment.MethodSettingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeployment.MethodSettingProperty>
- Enclosing interface:
- CfnDeployment.MethodSettingProperty
@Stability(Stable)
public static final class CfnDeployment.MethodSettingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDeployment.MethodSettingProperty>
A builder for
CfnDeployment.MethodSettingProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.cacheDataEncrypted(Boolean cacheDataEncrypted) Sets the value ofCfnDeployment.MethodSettingProperty.getCacheDataEncrypted()cacheDataEncrypted(IResolvable cacheDataEncrypted) Sets the value ofCfnDeployment.MethodSettingProperty.getCacheDataEncrypted()cacheTtlInSeconds(Number cacheTtlInSeconds) Sets the value ofCfnDeployment.MethodSettingProperty.getCacheTtlInSeconds()cachingEnabled(Boolean cachingEnabled) Sets the value ofCfnDeployment.MethodSettingProperty.getCachingEnabled()cachingEnabled(IResolvable cachingEnabled) Sets the value ofCfnDeployment.MethodSettingProperty.getCachingEnabled()dataTraceEnabled(Boolean dataTraceEnabled) Sets the value ofCfnDeployment.MethodSettingProperty.getDataTraceEnabled()dataTraceEnabled(IResolvable dataTraceEnabled) Sets the value ofCfnDeployment.MethodSettingProperty.getDataTraceEnabled()httpMethod(String httpMethod) Sets the value ofCfnDeployment.MethodSettingProperty.getHttpMethod()loggingLevel(String loggingLevel) Sets the value ofCfnDeployment.MethodSettingProperty.getLoggingLevel()metricsEnabled(Boolean metricsEnabled) Sets the value ofCfnDeployment.MethodSettingProperty.getMetricsEnabled()metricsEnabled(IResolvable metricsEnabled) Sets the value ofCfnDeployment.MethodSettingProperty.getMetricsEnabled()resourcePath(String resourcePath) Sets the value ofCfnDeployment.MethodSettingProperty.getResourcePath()throttlingBurstLimit(Number throttlingBurstLimit) Sets the value ofCfnDeployment.MethodSettingProperty.getThrottlingBurstLimit()throttlingRateLimit(Number throttlingRateLimit) Sets the value ofCfnDeployment.MethodSettingProperty.getThrottlingRateLimit()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cacheDataEncrypted
@Stability(Stable) public CfnDeployment.MethodSettingProperty.Builder cacheDataEncrypted(Boolean cacheDataEncrypted) Sets the value ofCfnDeployment.MethodSettingProperty.getCacheDataEncrypted()- Parameters:
cacheDataEncrypted- Specifies whether the cached responses are encrypted.- Returns:
this
-
cacheDataEncrypted
@Stability(Stable) public CfnDeployment.MethodSettingProperty.Builder cacheDataEncrypted(IResolvable cacheDataEncrypted) Sets the value ofCfnDeployment.MethodSettingProperty.getCacheDataEncrypted()- Parameters:
cacheDataEncrypted- Specifies whether the cached responses are encrypted.- Returns:
this
-
cacheTtlInSeconds
@Stability(Stable) public CfnDeployment.MethodSettingProperty.Builder cacheTtlInSeconds(Number cacheTtlInSeconds) Sets the value ofCfnDeployment.MethodSettingProperty.getCacheTtlInSeconds()- 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:
this
-
cachingEnabled
@Stability(Stable) public CfnDeployment.MethodSettingProperty.Builder cachingEnabled(Boolean cachingEnabled) Sets the value ofCfnDeployment.MethodSettingProperty.getCachingEnabled()- 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:
this
-
cachingEnabled
@Stability(Stable) public CfnDeployment.MethodSettingProperty.Builder cachingEnabled(IResolvable cachingEnabled) Sets the value ofCfnDeployment.MethodSettingProperty.getCachingEnabled()- 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:
this
-
dataTraceEnabled
@Stability(Stable) public CfnDeployment.MethodSettingProperty.Builder dataTraceEnabled(Boolean dataTraceEnabled) Sets the value ofCfnDeployment.MethodSettingProperty.getDataTraceEnabled()- Parameters:
dataTraceEnabled- Specifies whether data trace logging is enabled for this method, which affects the log entries pushed to Amazon CloudWatch Logs.- Returns:
this
-
dataTraceEnabled
@Stability(Stable) public CfnDeployment.MethodSettingProperty.Builder dataTraceEnabled(IResolvable dataTraceEnabled) Sets the value ofCfnDeployment.MethodSettingProperty.getDataTraceEnabled()- Parameters:
dataTraceEnabled- Specifies whether data trace logging is enabled for this method, which affects the log entries pushed to Amazon CloudWatch Logs.- Returns:
this
-
httpMethod
Sets the value ofCfnDeployment.MethodSettingProperty.getHttpMethod()- Parameters:
httpMethod- The HTTP method.- Returns:
this
-
loggingLevel
@Stability(Stable) public CfnDeployment.MethodSettingProperty.Builder loggingLevel(String loggingLevel) Sets the value ofCfnDeployment.MethodSettingProperty.getLoggingLevel()- Parameters:
loggingLevel- Specifies the logging level for this method, which affects the log entries pushed to Amazon CloudWatch Logs. Valid values areOFF,ERROR, andINFO. ChooseERRORto write only error-level entries to CloudWatch Logs, or chooseINFOto include allERRORevents as well as extra informational events.- Returns:
this
-
metricsEnabled
@Stability(Stable) public CfnDeployment.MethodSettingProperty.Builder metricsEnabled(Boolean metricsEnabled) Sets the value ofCfnDeployment.MethodSettingProperty.getMetricsEnabled()- Parameters:
metricsEnabled- Specifies whether Amazon CloudWatch metrics are enabled for this method.- Returns:
this
-
metricsEnabled
@Stability(Stable) public CfnDeployment.MethodSettingProperty.Builder metricsEnabled(IResolvable metricsEnabled) Sets the value ofCfnDeployment.MethodSettingProperty.getMetricsEnabled()- Parameters:
metricsEnabled- Specifies whether Amazon CloudWatch metrics are enabled for this method.- Returns:
this
-
resourcePath
@Stability(Stable) public CfnDeployment.MethodSettingProperty.Builder resourcePath(String resourcePath) Sets the value ofCfnDeployment.MethodSettingProperty.getResourcePath()- Parameters:
resourcePath- The resource path for this method. Forward slashes (/) are encoded as~1and the initial slash must include a forward slash. For example, the path value/resource/subresourcemust be encoded as/~1resource~1subresource. To specify the root path, use only a slash (/).- Returns:
this
-
throttlingBurstLimit
@Stability(Stable) public CfnDeployment.MethodSettingProperty.Builder throttlingBurstLimit(Number throttlingBurstLimit) Sets the value ofCfnDeployment.MethodSettingProperty.getThrottlingBurstLimit()- Parameters:
throttlingBurstLimit- Specifies the throttling burst limit.- Returns:
this
-
throttlingRateLimit
@Stability(Stable) public CfnDeployment.MethodSettingProperty.Builder throttlingRateLimit(Number throttlingRateLimit) Sets the value ofCfnDeployment.MethodSettingProperty.getThrottlingRateLimit()- Parameters:
throttlingRateLimit- Specifies the throttling rate limit.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDeployment.MethodSettingProperty>- Returns:
- a new instance of
CfnDeployment.MethodSettingProperty - Throws:
NullPointerException- if any required attribute was not provided
-