Class ApplicationProps.Builder
java.lang.Object
software.amazon.awscdk.services.kinesis.analytics.flink.ApplicationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ApplicationProps>
- Enclosing interface:
ApplicationProps
@Stability(Experimental)
public static final class ApplicationProps.Builder
extends Object
implements software.amazon.jsii.Builder<ApplicationProps>
A builder for
ApplicationProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapplicationName
(String applicationName) Sets the value ofApplicationProps.getApplicationName()
autoScalingEnabled
(Boolean autoScalingEnabled) Sets the value ofApplicationProps.getAutoScalingEnabled()
build()
Builds the configured instance.checkpointingEnabled
(Boolean checkpointingEnabled) Sets the value ofApplicationProps.getCheckpointingEnabled()
checkpointInterval
(Duration checkpointInterval) Sets the value ofApplicationProps.getCheckpointInterval()
code
(ApplicationCode code) Sets the value ofApplicationProps.getCode()
Sets the value ofApplicationProps.getLogGroup()
Sets the value ofApplicationProps.getLogLevel()
metricsLevel
(MetricsLevel metricsLevel) Sets the value ofApplicationProps.getMetricsLevel()
minPauseBetweenCheckpoints
(Duration minPauseBetweenCheckpoints) Sets the value ofApplicationProps.getMinPauseBetweenCheckpoints()
parallelism
(Number parallelism) Sets the value ofApplicationProps.getParallelism()
parallelismPerKpu
(Number parallelismPerKpu) Sets the value ofApplicationProps.getParallelismPerKpu()
propertyGroups
(PropertyGroups propertyGroups) Sets the value ofApplicationProps.getPropertyGroups()
removalPolicy
(RemovalPolicy removalPolicy) Sets the value ofApplicationProps.getRemovalPolicy()
Sets the value ofApplicationProps.getRole()
Sets the value ofApplicationProps.getRuntime()
snapshotsEnabled
(Boolean snapshotsEnabled) Sets the value ofApplicationProps.getSnapshotsEnabled()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
code
Sets the value ofApplicationProps.getCode()
- Parameters:
code
- The Flink code asset to run. This parameter is required.- Returns:
this
-
runtime
Sets the value ofApplicationProps.getRuntime()
- Parameters:
runtime
- The Flink version to use for this application. This parameter is required.- Returns:
this
-
applicationName
Sets the value ofApplicationProps.getApplicationName()
- Parameters:
applicationName
- A name for your Application that is unique to an AWS account.- Returns:
this
-
autoScalingEnabled
@Stability(Experimental) public ApplicationProps.Builder autoScalingEnabled(Boolean autoScalingEnabled) Sets the value ofApplicationProps.getAutoScalingEnabled()
- Parameters:
autoScalingEnabled
- Whether the Kinesis Data Analytics service can increase the parallelism of the application in response to resource usage.- Returns:
this
-
checkpointingEnabled
@Stability(Experimental) public ApplicationProps.Builder checkpointingEnabled(Boolean checkpointingEnabled) Sets the value ofApplicationProps.getCheckpointingEnabled()
- Parameters:
checkpointingEnabled
- Whether checkpointing is enabled while your application runs.- Returns:
this
-
checkpointInterval
@Stability(Experimental) public ApplicationProps.Builder checkpointInterval(Duration checkpointInterval) Sets the value ofApplicationProps.getCheckpointInterval()
- Parameters:
checkpointInterval
- The interval between checkpoints.- Returns:
this
-
logGroup
Sets the value ofApplicationProps.getLogGroup()
- Parameters:
logGroup
- The log group to send log entries to.- Returns:
this
-
logLevel
Sets the value ofApplicationProps.getLogLevel()
- Parameters:
logLevel
- The level of log verbosity from the Flink application.- Returns:
this
-
metricsLevel
Sets the value ofApplicationProps.getMetricsLevel()
- Parameters:
metricsLevel
- Describes the granularity of the CloudWatch metrics for an application. Use caution with Parallelism level metrics. Parallelism granularity logs metrics for each parallel thread and can quickly become expensive when parallelism is high (e.g. > 64).- Returns:
this
-
minPauseBetweenCheckpoints
@Stability(Experimental) public ApplicationProps.Builder minPauseBetweenCheckpoints(Duration minPauseBetweenCheckpoints) Sets the value ofApplicationProps.getMinPauseBetweenCheckpoints()
- Parameters:
minPauseBetweenCheckpoints
- The minimum amount of time in to wait after a checkpoint finishes to start a new checkpoint.- Returns:
this
-
parallelism
Sets the value ofApplicationProps.getParallelism()
- Parameters:
parallelism
- The initial parallelism for the application. Kinesis Data Analytics can stop the app, increase the parallelism, and start the app again if autoScalingEnabled is true (the default value).- Returns:
this
-
parallelismPerKpu
@Stability(Experimental) public ApplicationProps.Builder parallelismPerKpu(Number parallelismPerKpu) Sets the value ofApplicationProps.getParallelismPerKpu()
- Parameters:
parallelismPerKpu
- The Flink parallelism allowed per Kinesis Processing Unit (KPU).- Returns:
this
-
propertyGroups
@Stability(Experimental) public ApplicationProps.Builder propertyGroups(PropertyGroups propertyGroups) Sets the value ofApplicationProps.getPropertyGroups()
- Parameters:
propertyGroups
- Configuration PropertyGroups. You can use these property groups to pass arbitrary runtime configuration values to your Flink app.- Returns:
this
-
removalPolicy
Sets the value ofApplicationProps.getRemovalPolicy()
- Parameters:
removalPolicy
- Provide a RemovalPolicy to override the default.- Returns:
this
-
role
Sets the value ofApplicationProps.getRole()
- Parameters:
role
- A role to use to grant permissions to your application. Prefer omitting this property and using the default role.- Returns:
this
-
snapshotsEnabled
Sets the value ofApplicationProps.getSnapshotsEnabled()
- Parameters:
snapshotsEnabled
- Determines if Flink snapshots are enabled.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ApplicationProps>
- Returns:
- a new instance of
ApplicationProps
- Throws:
NullPointerException
- if any required attribute was not provided
-