Class CfnConnector.CapacityProperty.Builder
java.lang.Object
software.amazon.awscdk.services.kafkaconnect.CfnConnector.CapacityProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnConnector.CapacityProperty>
- Enclosing interface:
CfnConnector.CapacityProperty
@Stability(Stable)
public static final class CfnConnector.CapacityProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnConnector.CapacityProperty>
A builder for
CfnConnector.CapacityProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionautoScaling(IResolvable autoScaling) Sets the value ofCfnConnector.CapacityProperty.getAutoScaling()autoScaling(CfnConnector.AutoScalingProperty autoScaling) Sets the value ofCfnConnector.CapacityProperty.getAutoScaling()build()Builds the configured instance.provisionedCapacity(IResolvable provisionedCapacity) Sets the value ofCfnConnector.CapacityProperty.getProvisionedCapacity()provisionedCapacity(CfnConnector.ProvisionedCapacityProperty provisionedCapacity) Sets the value ofCfnConnector.CapacityProperty.getProvisionedCapacity()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
autoScaling
@Stability(Stable) public CfnConnector.CapacityProperty.Builder autoScaling(IResolvable autoScaling) Sets the value ofCfnConnector.CapacityProperty.getAutoScaling()- Parameters:
autoScaling- Information about the auto scaling parameters for the connector.- Returns:
this
-
autoScaling
@Stability(Stable) public CfnConnector.CapacityProperty.Builder autoScaling(CfnConnector.AutoScalingProperty autoScaling) Sets the value ofCfnConnector.CapacityProperty.getAutoScaling()- Parameters:
autoScaling- Information about the auto scaling parameters for the connector.- Returns:
this
-
provisionedCapacity
@Stability(Stable) public CfnConnector.CapacityProperty.Builder provisionedCapacity(IResolvable provisionedCapacity) Sets the value ofCfnConnector.CapacityProperty.getProvisionedCapacity()- Parameters:
provisionedCapacity- Details about a fixed capacity allocated to a connector.- Returns:
this
-
provisionedCapacity
@Stability(Stable) public CfnConnector.CapacityProperty.Builder provisionedCapacity(CfnConnector.ProvisionedCapacityProperty provisionedCapacity) Sets the value ofCfnConnector.CapacityProperty.getProvisionedCapacity()- Parameters:
provisionedCapacity- Details about a fixed capacity allocated to a connector.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnConnector.CapacityProperty>- Returns:
- a new instance of
CfnConnector.CapacityProperty - Throws:
NullPointerException- if any required attribute was not provided
-