Class CfnConnector.AutoScalingProperty.Builder
java.lang.Object
software.amazon.awscdk.services.kafkaconnect.CfnConnector.AutoScalingProperty.Builder
- All Implemented Interfaces:
 software.amazon.jsii.Builder<CfnConnector.AutoScalingProperty>
- Enclosing interface:
 - CfnConnector.AutoScalingProperty
 
@Stability(Stable)
public static final class CfnConnector.AutoScalingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnConnector.AutoScalingProperty>
A builder for 
CfnConnector.AutoScalingProperty- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.maxWorkerCount(Number maxWorkerCount) Sets the value ofCfnConnector.AutoScalingProperty.getMaxWorkerCount()Sets the value ofCfnConnector.AutoScalingProperty.getMcuCount()minWorkerCount(Number minWorkerCount) Sets the value ofCfnConnector.AutoScalingProperty.getMinWorkerCount()scaleInPolicy(IResolvable scaleInPolicy) Sets the value ofCfnConnector.AutoScalingProperty.getScaleInPolicy()scaleInPolicy(CfnConnector.ScaleInPolicyProperty scaleInPolicy) Sets the value ofCfnConnector.AutoScalingProperty.getScaleInPolicy()scaleOutPolicy(IResolvable scaleOutPolicy) Sets the value ofCfnConnector.AutoScalingProperty.getScaleOutPolicy()scaleOutPolicy(CfnConnector.ScaleOutPolicyProperty scaleOutPolicy) Sets the value ofCfnConnector.AutoScalingProperty.getScaleOutPolicy() 
- 
Constructor Details
- 
Builder
public Builder() 
 - 
 - 
Method Details
- 
maxWorkerCount
@Stability(Stable) public CfnConnector.AutoScalingProperty.Builder maxWorkerCount(Number maxWorkerCount) Sets the value ofCfnConnector.AutoScalingProperty.getMaxWorkerCount()- Parameters:
 maxWorkerCount- The maximum number of workers allocated to the connector. This parameter is required.- Returns:
 this
 - 
mcuCount
Sets the value ofCfnConnector.AutoScalingProperty.getMcuCount()- Parameters:
 mcuCount- The number of microcontroller units (MCUs) allocated to each connector worker. This parameter is required. The valid values are 1,2,4,8.- Returns:
 this
 - 
minWorkerCount
@Stability(Stable) public CfnConnector.AutoScalingProperty.Builder minWorkerCount(Number minWorkerCount) Sets the value ofCfnConnector.AutoScalingProperty.getMinWorkerCount()- Parameters:
 minWorkerCount- The minimum number of workers allocated to the connector. This parameter is required.- Returns:
 this
 - 
scaleInPolicy
@Stability(Stable) public CfnConnector.AutoScalingProperty.Builder scaleInPolicy(IResolvable scaleInPolicy) Sets the value ofCfnConnector.AutoScalingProperty.getScaleInPolicy()- Parameters:
 scaleInPolicy- The sacle-in policy for the connector. This parameter is required.- Returns:
 this
 - 
scaleInPolicy
@Stability(Stable) public CfnConnector.AutoScalingProperty.Builder scaleInPolicy(CfnConnector.ScaleInPolicyProperty scaleInPolicy) Sets the value ofCfnConnector.AutoScalingProperty.getScaleInPolicy()- Parameters:
 scaleInPolicy- The sacle-in policy for the connector. This parameter is required.- Returns:
 this
 - 
scaleOutPolicy
@Stability(Stable) public CfnConnector.AutoScalingProperty.Builder scaleOutPolicy(IResolvable scaleOutPolicy) Sets the value ofCfnConnector.AutoScalingProperty.getScaleOutPolicy()- Parameters:
 scaleOutPolicy- The sacle-out policy for the connector. This parameter is required.- Returns:
 this
 - 
scaleOutPolicy
@Stability(Stable) public CfnConnector.AutoScalingProperty.Builder scaleOutPolicy(CfnConnector.ScaleOutPolicyProperty scaleOutPolicy) Sets the value ofCfnConnector.AutoScalingProperty.getScaleOutPolicy()- Parameters:
 scaleOutPolicy- The sacle-out policy for the connector. This parameter is required.- Returns:
 this
 - 
build
Builds the configured instance.- Specified by:
 buildin interfacesoftware.amazon.jsii.Builder<CfnConnector.AutoScalingProperty>- Returns:
 - a new instance of 
CfnConnector.AutoScalingProperty - Throws:
 NullPointerException- if any required attribute was not provided
 
 -