Class CfnDeploymentPropsMixin.MethodSettingProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.apigateway.CfnDeploymentPropsMixin.MethodSettingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeploymentPropsMixin.MethodSettingProperty>
- Enclosing interface:
CfnDeploymentPropsMixin.MethodSettingProperty
@Stability(Stable)
public static final class CfnDeploymentPropsMixin.MethodSettingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDeploymentPropsMixin.MethodSettingProperty>
A builder for
CfnDeploymentPropsMixin.MethodSettingProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.cacheDataEncrypted(Boolean cacheDataEncrypted) Sets the value ofCfnDeploymentPropsMixin.MethodSettingProperty.getCacheDataEncrypted()cacheDataEncrypted(IResolvable cacheDataEncrypted) Sets the value ofCfnDeploymentPropsMixin.MethodSettingProperty.getCacheDataEncrypted()cacheTtlInSeconds(Number cacheTtlInSeconds) Sets the value ofCfnDeploymentPropsMixin.MethodSettingProperty.getCacheTtlInSeconds()cachingEnabled(Boolean cachingEnabled) Sets the value ofCfnDeploymentPropsMixin.MethodSettingProperty.getCachingEnabled()cachingEnabled(IResolvable cachingEnabled) Sets the value ofCfnDeploymentPropsMixin.MethodSettingProperty.getCachingEnabled()dataTraceEnabled(Boolean dataTraceEnabled) Sets the value ofCfnDeploymentPropsMixin.MethodSettingProperty.getDataTraceEnabled()dataTraceEnabled(IResolvable dataTraceEnabled) Sets the value ofCfnDeploymentPropsMixin.MethodSettingProperty.getDataTraceEnabled()httpMethod(String httpMethod) Sets the value ofCfnDeploymentPropsMixin.MethodSettingProperty.getHttpMethod()loggingLevel(String loggingLevel) Sets the value ofCfnDeploymentPropsMixin.MethodSettingProperty.getLoggingLevel()metricsEnabled(Boolean metricsEnabled) Sets the value ofCfnDeploymentPropsMixin.MethodSettingProperty.getMetricsEnabled()metricsEnabled(IResolvable metricsEnabled) Sets the value ofCfnDeploymentPropsMixin.MethodSettingProperty.getMetricsEnabled()resourcePath(String resourcePath) Sets the value ofCfnDeploymentPropsMixin.MethodSettingProperty.getResourcePath()throttlingBurstLimit(Number throttlingBurstLimit) Sets the value ofCfnDeploymentPropsMixin.MethodSettingProperty.getThrottlingBurstLimit()throttlingRateLimit(Number throttlingRateLimit) Sets the value ofCfnDeploymentPropsMixin.MethodSettingProperty.getThrottlingRateLimit()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cacheDataEncrypted
@Stability(Stable) public CfnDeploymentPropsMixin.MethodSettingProperty.Builder cacheDataEncrypted(Boolean cacheDataEncrypted) Sets the value ofCfnDeploymentPropsMixin.MethodSettingProperty.getCacheDataEncrypted()- Parameters:
cacheDataEncrypted- Specifies whether the cached responses are encrypted.- Returns:
this
-
cacheDataEncrypted
@Stability(Stable) public CfnDeploymentPropsMixin.MethodSettingProperty.Builder cacheDataEncrypted(IResolvable cacheDataEncrypted) Sets the value ofCfnDeploymentPropsMixin.MethodSettingProperty.getCacheDataEncrypted()- Parameters:
cacheDataEncrypted- Specifies whether the cached responses are encrypted.- Returns:
this
-
cacheTtlInSeconds
@Stability(Stable) public CfnDeploymentPropsMixin.MethodSettingProperty.Builder cacheTtlInSeconds(Number cacheTtlInSeconds) Sets the value ofCfnDeploymentPropsMixin.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 CfnDeploymentPropsMixin.MethodSettingProperty.Builder cachingEnabled(Boolean cachingEnabled) Sets the value ofCfnDeploymentPropsMixin.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 CfnDeploymentPropsMixin.MethodSettingProperty.Builder cachingEnabled(IResolvable cachingEnabled) Sets the value ofCfnDeploymentPropsMixin.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 CfnDeploymentPropsMixin.MethodSettingProperty.Builder dataTraceEnabled(Boolean dataTraceEnabled) Sets the value ofCfnDeploymentPropsMixin.MethodSettingProperty.getDataTraceEnabled()- Parameters:
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:
this
-
dataTraceEnabled
@Stability(Stable) public CfnDeploymentPropsMixin.MethodSettingProperty.Builder dataTraceEnabled(IResolvable dataTraceEnabled) Sets the value ofCfnDeploymentPropsMixin.MethodSettingProperty.getDataTraceEnabled()- Parameters:
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:
this
-
httpMethod
@Stability(Stable) public CfnDeploymentPropsMixin.MethodSettingProperty.Builder httpMethod(String httpMethod) Sets the value ofCfnDeploymentPropsMixin.MethodSettingProperty.getHttpMethod()- Parameters:
httpMethod- The HTTP method.- Returns:
this
-
loggingLevel
@Stability(Stable) public CfnDeploymentPropsMixin.MethodSettingProperty.Builder loggingLevel(String loggingLevel) Sets the value ofCfnDeploymentPropsMixin.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 CfnDeploymentPropsMixin.MethodSettingProperty.Builder metricsEnabled(Boolean metricsEnabled) Sets the value ofCfnDeploymentPropsMixin.MethodSettingProperty.getMetricsEnabled()- Parameters:
metricsEnabled- Specifies whether Amazon CloudWatch metrics are enabled for this method.- Returns:
this
-
metricsEnabled
@Stability(Stable) public CfnDeploymentPropsMixin.MethodSettingProperty.Builder metricsEnabled(IResolvable metricsEnabled) Sets the value ofCfnDeploymentPropsMixin.MethodSettingProperty.getMetricsEnabled()- Parameters:
metricsEnabled- Specifies whether Amazon CloudWatch metrics are enabled for this method.- Returns:
this
-
resourcePath
@Stability(Stable) public CfnDeploymentPropsMixin.MethodSettingProperty.Builder resourcePath(String resourcePath) Sets the value ofCfnDeploymentPropsMixin.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 CfnDeploymentPropsMixin.MethodSettingProperty.Builder throttlingBurstLimit(Number throttlingBurstLimit) Sets the value ofCfnDeploymentPropsMixin.MethodSettingProperty.getThrottlingBurstLimit()- Parameters:
throttlingBurstLimit- Specifies the throttling burst limit.- Returns:
this
-
throttlingRateLimit
@Stability(Stable) public CfnDeploymentPropsMixin.MethodSettingProperty.Builder throttlingRateLimit(Number throttlingRateLimit) Sets the value ofCfnDeploymentPropsMixin.MethodSettingProperty.getThrottlingRateLimit()- Parameters:
throttlingRateLimit- Specifies the throttling rate limit.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDeploymentPropsMixin.MethodSettingProperty>- Returns:
- a new instance of
CfnDeploymentPropsMixin.MethodSettingProperty - Throws:
NullPointerException- if any required attribute was not provided
-