Class CfnConnector.ProvisionedCapacityProperty.Builder
java.lang.Object
software.amazon.awscdk.services.kafkaconnect.CfnConnector.ProvisionedCapacityProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnConnector.ProvisionedCapacityProperty>
- Enclosing interface:
CfnConnector.ProvisionedCapacityProperty
@Stability(Stable)
public static final class CfnConnector.ProvisionedCapacityProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnConnector.ProvisionedCapacityProperty>
A builder for
CfnConnector.ProvisionedCapacityProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnConnector.ProvisionedCapacityProperty.getMcuCount()
workerCount
(Number workerCount) Sets the value ofCfnConnector.ProvisionedCapacityProperty.getWorkerCount()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
workerCount
@Stability(Stable) public CfnConnector.ProvisionedCapacityProperty.Builder workerCount(Number workerCount) Sets the value ofCfnConnector.ProvisionedCapacityProperty.getWorkerCount()
- Parameters:
workerCount
- The number of workers that are allocated to the connector. This parameter is required.- Returns:
this
-
mcuCount
@Stability(Stable) public CfnConnector.ProvisionedCapacityProperty.Builder mcuCount(Number mcuCount) Sets the value ofCfnConnector.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
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnConnector.ProvisionedCapacityProperty>
- Returns:
- a new instance of
CfnConnector.ProvisionedCapacityProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-