/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Redshift { namespace Model { /** */ class ModifyClusterSnapshotRequest : public RedshiftRequest { public: AWS_REDSHIFT_API ModifyClusterSnapshotRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "ModifyClusterSnapshot"; } AWS_REDSHIFT_API Aws::String SerializePayload() const override; protected: AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The identifier of the snapshot whose setting you want to modify.

*/ inline const Aws::String& GetSnapshotIdentifier() const{ return m_snapshotIdentifier; } /** *

The identifier of the snapshot whose setting you want to modify.

*/ inline bool SnapshotIdentifierHasBeenSet() const { return m_snapshotIdentifierHasBeenSet; } /** *

The identifier of the snapshot whose setting you want to modify.

*/ inline void SetSnapshotIdentifier(const Aws::String& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = value; } /** *

The identifier of the snapshot whose setting you want to modify.

*/ inline void SetSnapshotIdentifier(Aws::String&& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = std::move(value); } /** *

The identifier of the snapshot whose setting you want to modify.

*/ inline void SetSnapshotIdentifier(const char* value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier.assign(value); } /** *

The identifier of the snapshot whose setting you want to modify.

*/ inline ModifyClusterSnapshotRequest& WithSnapshotIdentifier(const Aws::String& value) { SetSnapshotIdentifier(value); return *this;} /** *

The identifier of the snapshot whose setting you want to modify.

*/ inline ModifyClusterSnapshotRequest& WithSnapshotIdentifier(Aws::String&& value) { SetSnapshotIdentifier(std::move(value)); return *this;} /** *

The identifier of the snapshot whose setting you want to modify.

*/ inline ModifyClusterSnapshotRequest& WithSnapshotIdentifier(const char* value) { SetSnapshotIdentifier(value); return *this;} /** *

The number of days that a manual snapshot is retained. If the value is -1, * the manual snapshot is retained indefinitely.

If the manual snapshot * falls outside of the new retention period, you can specify the force option to * immediately delete the snapshot.

The value must be either -1 or an * integer between 1 and 3,653.

*/ inline int GetManualSnapshotRetentionPeriod() const{ return m_manualSnapshotRetentionPeriod; } /** *

The number of days that a manual snapshot is retained. If the value is -1, * the manual snapshot is retained indefinitely.

If the manual snapshot * falls outside of the new retention period, you can specify the force option to * immediately delete the snapshot.

The value must be either -1 or an * integer between 1 and 3,653.

*/ inline bool ManualSnapshotRetentionPeriodHasBeenSet() const { return m_manualSnapshotRetentionPeriodHasBeenSet; } /** *

The number of days that a manual snapshot is retained. If the value is -1, * the manual snapshot is retained indefinitely.

If the manual snapshot * falls outside of the new retention period, you can specify the force option to * immediately delete the snapshot.

The value must be either -1 or an * integer between 1 and 3,653.

*/ inline void SetManualSnapshotRetentionPeriod(int value) { m_manualSnapshotRetentionPeriodHasBeenSet = true; m_manualSnapshotRetentionPeriod = value; } /** *

The number of days that a manual snapshot is retained. If the value is -1, * the manual snapshot is retained indefinitely.

If the manual snapshot * falls outside of the new retention period, you can specify the force option to * immediately delete the snapshot.

The value must be either -1 or an * integer between 1 and 3,653.

*/ inline ModifyClusterSnapshotRequest& WithManualSnapshotRetentionPeriod(int value) { SetManualSnapshotRetentionPeriod(value); return *this;} /** *

A Boolean option to override an exception if the retention period has already * passed.

*/ inline bool GetForce() const{ return m_force; } /** *

A Boolean option to override an exception if the retention period has already * passed.

*/ inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; } /** *

A Boolean option to override an exception if the retention period has already * passed.

*/ inline void SetForce(bool value) { m_forceHasBeenSet = true; m_force = value; } /** *

A Boolean option to override an exception if the retention period has already * passed.

*/ inline ModifyClusterSnapshotRequest& WithForce(bool value) { SetForce(value); return *this;} private: Aws::String m_snapshotIdentifier; bool m_snapshotIdentifierHasBeenSet = false; int m_manualSnapshotRetentionPeriod; bool m_manualSnapshotRetentionPeriodHasBeenSet = false; bool m_force; bool m_forceHasBeenSet = false; }; } // namespace Model } // namespace Redshift } // namespace Aws