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