Class CfnConnectorPropsMixin.AutoScalingProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.kafkaconnect.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.maxAutoscalingTaskCount(Number maxAutoscalingTaskCount) Sets the value ofCfnConnectorPropsMixin.AutoScalingProperty.getMaxAutoscalingTaskCount()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(CfnConnectorPropsMixin.ScaleInPolicyProperty scaleInPolicy) Sets the value ofCfnConnectorPropsMixin.AutoScalingProperty.getScaleInPolicy()scaleInPolicy(IResolvable scaleInPolicy) Sets the value ofCfnConnectorPropsMixin.AutoScalingProperty.getScaleInPolicy()scaleOutPolicy(CfnConnectorPropsMixin.ScaleOutPolicyProperty scaleOutPolicy) Sets the value ofCfnConnectorPropsMixin.AutoScalingProperty.getScaleOutPolicy()scaleOutPolicy(IResolvable scaleOutPolicy) Sets the value ofCfnConnectorPropsMixin.AutoScalingProperty.getScaleOutPolicy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maxAutoscalingTaskCount
@Stability(Stable) public CfnConnectorPropsMixin.AutoScalingProperty.Builder maxAutoscalingTaskCount(Number maxAutoscalingTaskCount) Sets the value ofCfnConnectorPropsMixin.AutoScalingProperty.getMaxAutoscalingTaskCount()- Parameters:
maxAutoscalingTaskCount- The maximum number of tasks allocated to the connector during autoscaling operations.- Returns:
this
-
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
-