Class CfnApplicationV2.ParallelismConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.kinesisanalytics.CfnApplicationV2.ParallelismConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApplicationV2.ParallelismConfigurationProperty>
- Enclosing interface:
- CfnApplicationV2.ParallelismConfigurationProperty
@Stability(Stable)
public static final class CfnApplicationV2.ParallelismConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApplicationV2.ParallelismConfigurationProperty>
A builder for
CfnApplicationV2.ParallelismConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionautoScalingEnabled(Boolean autoScalingEnabled) autoScalingEnabled(IResolvable autoScalingEnabled) build()Builds the configured instance.configurationType(String configurationType) Sets the value ofCfnApplicationV2.ParallelismConfigurationProperty.getConfigurationType()parallelism(Number parallelism) Sets the value ofCfnApplicationV2.ParallelismConfigurationProperty.getParallelism()parallelismPerKpu(Number parallelismPerKpu) Sets the value ofCfnApplicationV2.ParallelismConfigurationProperty.getParallelismPerKpu()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
configurationType
@Stability(Stable) public CfnApplicationV2.ParallelismConfigurationProperty.Builder configurationType(String configurationType) Sets the value ofCfnApplicationV2.ParallelismConfigurationProperty.getConfigurationType()- Parameters:
configurationType- Describes whether the application uses the default parallelism for the Kinesis Data Analytics service. This parameter is required. You must set this property toCUSTOMin order to change your application'sAutoScalingEnabled,Parallelism, orParallelismPerKPUproperties.- Returns:
this
-
autoScalingEnabled
@Stability(Stable) public CfnApplicationV2.ParallelismConfigurationProperty.Builder autoScalingEnabled(Boolean autoScalingEnabled) - Parameters:
autoScalingEnabled- Describes whether the Kinesis Data Analytics service can increase the parallelism of the application in response to increased throughput.- Returns:
this
-
autoScalingEnabled
@Stability(Stable) public CfnApplicationV2.ParallelismConfigurationProperty.Builder autoScalingEnabled(IResolvable autoScalingEnabled) - Parameters:
autoScalingEnabled- Describes whether the Kinesis Data Analytics service can increase the parallelism of the application in response to increased throughput.- Returns:
this
-
parallelism
@Stability(Stable) public CfnApplicationV2.ParallelismConfigurationProperty.Builder parallelism(Number parallelism) Sets the value ofCfnApplicationV2.ParallelismConfigurationProperty.getParallelism()- Parameters:
parallelism- Describes the initial number of parallel tasks that a Java-based Kinesis Data Analytics application can perform. The Kinesis Data Analytics service can increase this number automatically if ParallelismConfiguration:AutoScalingEnabled is set totrue.- Returns:
this
-
parallelismPerKpu
@Stability(Stable) public CfnApplicationV2.ParallelismConfigurationProperty.Builder parallelismPerKpu(Number parallelismPerKpu) Sets the value ofCfnApplicationV2.ParallelismConfigurationProperty.getParallelismPerKpu()- Parameters:
parallelismPerKpu- Describes the number of parallel tasks that a Java-based Kinesis Data Analytics application can perform per Kinesis Processing Unit (KPU) used by the application. For more information about KPUs, see Amazon Kinesis Data Analytics Pricing .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnApplicationV2.ParallelismConfigurationProperty>- Returns:
- a new instance of
CfnApplicationV2.ParallelismConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-