Class CfnConnectorPropsMixin.ProvisionedCapacityProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.kafkaconnect.CfnConnectorPropsMixin.ProvisionedCapacityProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnConnectorPropsMixin.ProvisionedCapacityProperty>
- Enclosing interface:
CfnConnectorPropsMixin.ProvisionedCapacityProperty
@Stability(Stable)
public static final class CfnConnectorPropsMixin.ProvisionedCapacityProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnConnectorPropsMixin.ProvisionedCapacityProperty>
A builder for
CfnConnectorPropsMixin.ProvisionedCapacityProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnConnectorPropsMixin.ProvisionedCapacityProperty.getMcuCount()workerCount(Number workerCount) Sets the value ofCfnConnectorPropsMixin.ProvisionedCapacityProperty.getWorkerCount()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
mcuCount
@Stability(Stable) public CfnConnectorPropsMixin.ProvisionedCapacityProperty.Builder mcuCount(Number mcuCount) Sets the value ofCfnConnectorPropsMixin.ProvisionedCapacityProperty.getMcuCount()- Parameters:
mcuCount- The number of microcontroller units (MCUs) allocated to each connector worker. The valid values are 1,2,4,8.- Returns:
this
-
workerCount
@Stability(Stable) public CfnConnectorPropsMixin.ProvisionedCapacityProperty.Builder workerCount(Number workerCount) Sets the value ofCfnConnectorPropsMixin.ProvisionedCapacityProperty.getWorkerCount()- Parameters:
workerCount- The number of workers that are allocated to the connector.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnConnectorPropsMixin.ProvisionedCapacityProperty>- Returns:
- a new instance of
CfnConnectorPropsMixin.ProvisionedCapacityProperty - Throws:
NullPointerException- if any required attribute was not provided
-