Class CfnExpressGatewayService.ExpressGatewayScalingTargetProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CfnExpressGatewayService.ExpressGatewayScalingTargetProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnExpressGatewayService.ExpressGatewayScalingTargetProperty>
- Enclosing interface:
CfnExpressGatewayService.ExpressGatewayScalingTargetProperty
@Stability(Stable)
public static final class CfnExpressGatewayService.ExpressGatewayScalingTargetProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnExpressGatewayService.ExpressGatewayScalingTargetProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionautoScalingMetric(String autoScalingMetric) autoScalingTargetValue(Number autoScalingTargetValue) build()Builds the configured instance.maxTaskCount(Number maxTaskCount) minTaskCount(Number minTaskCount)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
autoScalingMetric
@Stability(Stable) public CfnExpressGatewayService.ExpressGatewayScalingTargetProperty.Builder autoScalingMetric(String autoScalingMetric) Sets the value ofCfnExpressGatewayService.ExpressGatewayScalingTargetProperty.getAutoScalingMetric()- Parameters:
autoScalingMetric- The metric used for auto-scaling decisions. The default metric used for an Express service isCPUUtilization.- Returns:
this
-
autoScalingTargetValue
@Stability(Stable) public CfnExpressGatewayService.ExpressGatewayScalingTargetProperty.Builder autoScalingTargetValue(Number autoScalingTargetValue) Sets the value ofCfnExpressGatewayService.ExpressGatewayScalingTargetProperty.getAutoScalingTargetValue()- Parameters:
autoScalingTargetValue- The target value for the auto-scaling metric. The default value for an Express service is 60.- Returns:
this
-
maxTaskCount
@Stability(Stable) public CfnExpressGatewayService.ExpressGatewayScalingTargetProperty.Builder maxTaskCount(Number maxTaskCount) - Parameters:
maxTaskCount- The maximum number of tasks to run in the Express service.- Returns:
this
-
minTaskCount
@Stability(Stable) public CfnExpressGatewayService.ExpressGatewayScalingTargetProperty.Builder minTaskCount(Number minTaskCount) - Parameters:
minTaskCount- The minimum number of tasks to run in the Express service.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnExpressGatewayService.ExpressGatewayScalingTargetProperty>- Returns:
- a new instance of
CfnExpressGatewayService.ExpressGatewayScalingTargetProperty - Throws:
NullPointerException- if any required attribute was not provided
-