Class CfnApplication.ParallelismConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplication.ParallelismConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApplication.ParallelismConfigurationProperty>
- Enclosing interface:
- CfnApplication.ParallelismConfigurationProperty
@Stability(Stable)
public static final class CfnApplication.ParallelismConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApplication.ParallelismConfigurationProperty>
A builder for
CfnApplication.ParallelismConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionautoScalingEnabled
(Boolean autoScalingEnabled) Sets the value ofCfnApplication.ParallelismConfigurationProperty.getAutoScalingEnabled()
autoScalingEnabled
(IResolvable autoScalingEnabled) Sets the value ofCfnApplication.ParallelismConfigurationProperty.getAutoScalingEnabled()
build()
Builds the configured instance.configurationType
(String configurationType) Sets the value ofCfnApplication.ParallelismConfigurationProperty.getConfigurationType()
parallelism
(Number parallelism) Sets the value ofCfnApplication.ParallelismConfigurationProperty.getParallelism()
parallelismPerKpu
(Number parallelismPerKpu) Sets the value ofCfnApplication.ParallelismConfigurationProperty.getParallelismPerKpu()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
configurationType
@Stability(Stable) public CfnApplication.ParallelismConfigurationProperty.Builder configurationType(String configurationType) Sets the value ofCfnApplication.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 toCUSTOM
in order to change your application'sAutoScalingEnabled
,Parallelism
, orParallelismPerKPU
properties.- Returns:
this
-
autoScalingEnabled
@Stability(Stable) public CfnApplication.ParallelismConfigurationProperty.Builder autoScalingEnabled(Boolean autoScalingEnabled) Sets the value ofCfnApplication.ParallelismConfigurationProperty.getAutoScalingEnabled()
- 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 CfnApplication.ParallelismConfigurationProperty.Builder autoScalingEnabled(IResolvable autoScalingEnabled) Sets the value ofCfnApplication.ParallelismConfigurationProperty.getAutoScalingEnabled()
- 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 CfnApplication.ParallelismConfigurationProperty.Builder parallelism(Number parallelism) Sets the value ofCfnApplication.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 CfnApplication.ParallelismConfigurationProperty.Builder parallelismPerKpu(Number parallelismPerKpu) Sets the value ofCfnApplication.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:
build
in interfacesoftware.amazon.jsii.Builder<CfnApplication.ParallelismConfigurationProperty>
- Returns:
- a new instance of
CfnApplication.ParallelismConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-