Class CfnApplication.CheckpointConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApplication.CheckpointConfigurationProperty>
- Enclosing interface:
- CfnApplication.CheckpointConfigurationProperty
CfnApplication.CheckpointConfigurationProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.checkpointingEnabled
(Boolean checkpointingEnabled) Sets the value ofCfnApplication.CheckpointConfigurationProperty.getCheckpointingEnabled()
checkpointingEnabled
(IResolvable checkpointingEnabled) Sets the value ofCfnApplication.CheckpointConfigurationProperty.getCheckpointingEnabled()
checkpointInterval
(Number checkpointInterval) Sets the value ofCfnApplication.CheckpointConfigurationProperty.getCheckpointInterval()
configurationType
(String configurationType) Sets the value ofCfnApplication.CheckpointConfigurationProperty.getConfigurationType()
minPauseBetweenCheckpoints
(Number minPauseBetweenCheckpoints)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
configurationType
@Stability(Stable) public CfnApplication.CheckpointConfigurationProperty.Builder configurationType(String configurationType) Sets the value ofCfnApplication.CheckpointConfigurationProperty.getConfigurationType()
- Parameters:
configurationType
- Describes whether the application uses Kinesis Data Analytics' default checkpointing behavior. This parameter is required. You must set this property toCUSTOM
in order to set theCheckpointingEnabled
,CheckpointInterval
, orMinPauseBetweenCheckpoints
parameters.If this value is set to
DEFAULT
, the application will use the following values, even if they are set to other values using APIs or application code:- CheckpointingEnabled: true
- CheckpointInterval: 60000
- MinPauseBetweenCheckpoints: 5000
- Returns:
this
-
checkpointingEnabled
@Stability(Stable) public CfnApplication.CheckpointConfigurationProperty.Builder checkpointingEnabled(Boolean checkpointingEnabled) Sets the value ofCfnApplication.CheckpointConfigurationProperty.getCheckpointingEnabled()
- Parameters:
checkpointingEnabled
- Describes whether checkpointing is enabled for a Flink-based Kinesis Data Analytics application.If
CheckpointConfiguration.ConfigurationType
isDEFAULT
, the application will use aCheckpointingEnabled
value oftrue
, even if this value is set to another value using this API or in application code.- Returns:
this
-
checkpointingEnabled
@Stability(Stable) public CfnApplication.CheckpointConfigurationProperty.Builder checkpointingEnabled(IResolvable checkpointingEnabled) Sets the value ofCfnApplication.CheckpointConfigurationProperty.getCheckpointingEnabled()
- Parameters:
checkpointingEnabled
- Describes whether checkpointing is enabled for a Flink-based Kinesis Data Analytics application.If
CheckpointConfiguration.ConfigurationType
isDEFAULT
, the application will use aCheckpointingEnabled
value oftrue
, even if this value is set to another value using this API or in application code.- Returns:
this
-
checkpointInterval
@Stability(Stable) public CfnApplication.CheckpointConfigurationProperty.Builder checkpointInterval(Number checkpointInterval) Sets the value ofCfnApplication.CheckpointConfigurationProperty.getCheckpointInterval()
- Parameters:
checkpointInterval
- Describes the interval in milliseconds between checkpoint operations.If
CheckpointConfiguration.ConfigurationType
isDEFAULT
, the application will use aCheckpointInterval
value of 60000, even if this value is set to another value using this API or in application code.- Returns:
this
-
minPauseBetweenCheckpoints
@Stability(Stable) public CfnApplication.CheckpointConfigurationProperty.Builder minPauseBetweenCheckpoints(Number minPauseBetweenCheckpoints) - Parameters:
minPauseBetweenCheckpoints
- Describes the minimum time in milliseconds after a checkpoint operation completes that a new checkpoint operation can start. If a checkpoint operation takes longer than theCheckpointInterval
, the application otherwise performs continual checkpoint operations. For more information, see Tuning Checkpointing in the Apache Flink Documentation .If
CheckpointConfiguration.ConfigurationType
isDEFAULT
, the application will use aMinPauseBetweenCheckpoints
value of 5000, even if this value is set using this API or in application code.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnApplication.CheckpointConfigurationProperty>
- Returns:
- a new instance of
CfnApplication.CheckpointConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-