Class CfnApplicationV2.CheckpointConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApplicationV2.CheckpointConfigurationProperty>
- Enclosing interface:
CfnApplicationV2.CheckpointConfigurationProperty
CfnApplicationV2.CheckpointConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.checkpointingEnabled
(Boolean checkpointingEnabled) checkpointingEnabled
(IResolvable checkpointingEnabled) checkpointInterval
(Number checkpointInterval) Sets the value ofCfnApplicationV2.CheckpointConfigurationProperty.getCheckpointInterval()
configurationType
(String configurationType) Sets the value ofCfnApplicationV2.CheckpointConfigurationProperty.getConfigurationType()
minPauseBetweenCheckpoints
(Number minPauseBetweenCheckpoints)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
configurationType
@Stability(Stable) public CfnApplicationV2.CheckpointConfigurationProperty.Builder configurationType(String configurationType) Sets the value ofCfnApplicationV2.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 CfnApplicationV2.CheckpointConfigurationProperty.Builder checkpointingEnabled(Boolean checkpointingEnabled) - 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 CfnApplicationV2.CheckpointConfigurationProperty.Builder checkpointingEnabled(IResolvable checkpointingEnabled) - 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 CfnApplicationV2.CheckpointConfigurationProperty.Builder checkpointInterval(Number checkpointInterval) Sets the value ofCfnApplicationV2.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 CfnApplicationV2.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<CfnApplicationV2.CheckpointConfigurationProperty>
- Returns:
- a new instance of
CfnApplicationV2.CheckpointConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-