/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace KinesisAnalyticsV2 { namespace Model { /** *

Describes the starting parameters for a Flink-based Kinesis Data Analytics * application.

See Also:

AWS * API Reference

*/ class FlinkRunConfiguration { public: AWS_KINESISANALYTICSV2_API FlinkRunConfiguration(); AWS_KINESISANALYTICSV2_API FlinkRunConfiguration(Aws::Utils::Json::JsonView jsonValue); AWS_KINESISANALYTICSV2_API FlinkRunConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_KINESISANALYTICSV2_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

When restoring from a snapshot, specifies whether the runtime is allowed to * skip a state that cannot be mapped to the new program. This will happen if the * program is updated between snapshots to remove stateful parameters, and state * data in the snapshot no longer corresponds to valid application data. For more * information, see * Allowing Non-Restored State in the Apache Flink * documentation.

This value defaults to false. If * you update your application without specifying this parameter, * AllowNonRestoredState will be set to false, even if it * was previously set to true.

*/ inline bool GetAllowNonRestoredState() const{ return m_allowNonRestoredState; } /** *

When restoring from a snapshot, specifies whether the runtime is allowed to * skip a state that cannot be mapped to the new program. This will happen if the * program is updated between snapshots to remove stateful parameters, and state * data in the snapshot no longer corresponds to valid application data. For more * information, see * Allowing Non-Restored State in the Apache Flink * documentation.

This value defaults to false. If * you update your application without specifying this parameter, * AllowNonRestoredState will be set to false, even if it * was previously set to true.

*/ inline bool AllowNonRestoredStateHasBeenSet() const { return m_allowNonRestoredStateHasBeenSet; } /** *

When restoring from a snapshot, specifies whether the runtime is allowed to * skip a state that cannot be mapped to the new program. This will happen if the * program is updated between snapshots to remove stateful parameters, and state * data in the snapshot no longer corresponds to valid application data. For more * information, see * Allowing Non-Restored State in the Apache Flink * documentation.

This value defaults to false. If * you update your application without specifying this parameter, * AllowNonRestoredState will be set to false, even if it * was previously set to true.

*/ inline void SetAllowNonRestoredState(bool value) { m_allowNonRestoredStateHasBeenSet = true; m_allowNonRestoredState = value; } /** *

When restoring from a snapshot, specifies whether the runtime is allowed to * skip a state that cannot be mapped to the new program. This will happen if the * program is updated between snapshots to remove stateful parameters, and state * data in the snapshot no longer corresponds to valid application data. For more * information, see * Allowing Non-Restored State in the Apache Flink * documentation.

This value defaults to false. If * you update your application without specifying this parameter, * AllowNonRestoredState will be set to false, even if it * was previously set to true.

*/ inline FlinkRunConfiguration& WithAllowNonRestoredState(bool value) { SetAllowNonRestoredState(value); return *this;} private: bool m_allowNonRestoredState; bool m_allowNonRestoredStateHasBeenSet = false; }; } // namespace Model } // namespace KinesisAnalyticsV2 } // namespace Aws