/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Redshift { namespace Model { /** */ class BatchModifyClusterSnapshotsRequest : public RedshiftRequest { public: AWS_REDSHIFT_API BatchModifyClusterSnapshotsRequest(); // 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 "BatchModifyClusterSnapshots"; } AWS_REDSHIFT_API Aws::String SerializePayload() const override; protected: AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

A list of snapshot identifiers you want to modify.

*/ inline const Aws::Vector& GetSnapshotIdentifierList() const{ return m_snapshotIdentifierList; } /** *

A list of snapshot identifiers you want to modify.

*/ inline bool SnapshotIdentifierListHasBeenSet() const { return m_snapshotIdentifierListHasBeenSet; } /** *

A list of snapshot identifiers you want to modify.

*/ inline void SetSnapshotIdentifierList(const Aws::Vector& value) { m_snapshotIdentifierListHasBeenSet = true; m_snapshotIdentifierList = value; } /** *

A list of snapshot identifiers you want to modify.

*/ inline void SetSnapshotIdentifierList(Aws::Vector&& value) { m_snapshotIdentifierListHasBeenSet = true; m_snapshotIdentifierList = std::move(value); } /** *

A list of snapshot identifiers you want to modify.

*/ inline BatchModifyClusterSnapshotsRequest& WithSnapshotIdentifierList(const Aws::Vector& value) { SetSnapshotIdentifierList(value); return *this;} /** *

A list of snapshot identifiers you want to modify.

*/ inline BatchModifyClusterSnapshotsRequest& WithSnapshotIdentifierList(Aws::Vector&& value) { SetSnapshotIdentifierList(std::move(value)); return *this;} /** *

A list of snapshot identifiers you want to modify.

*/ inline BatchModifyClusterSnapshotsRequest& AddSnapshotIdentifierList(const Aws::String& value) { m_snapshotIdentifierListHasBeenSet = true; m_snapshotIdentifierList.push_back(value); return *this; } /** *

A list of snapshot identifiers you want to modify.

*/ inline BatchModifyClusterSnapshotsRequest& AddSnapshotIdentifierList(Aws::String&& value) { m_snapshotIdentifierListHasBeenSet = true; m_snapshotIdentifierList.push_back(std::move(value)); return *this; } /** *

A list of snapshot identifiers you want to modify.

*/ inline BatchModifyClusterSnapshotsRequest& AddSnapshotIdentifierList(const char* value) { m_snapshotIdentifierListHasBeenSet = true; m_snapshotIdentifierList.push_back(value); return *this; } /** *

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

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

If you decrease the * manual snapshot retention period from its current value, existing manual * snapshots that fall outside of the new retention period will return an error. If * you want to suppress the errors and delete the snapshots, use the force option. *

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

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

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

If you decrease the * manual snapshot retention period from its current value, existing manual * snapshots that fall outside of the new retention period will return an error. If * you want to suppress the errors and delete the snapshots, use the force option. *

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

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

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

If you decrease the * manual snapshot retention period from its current value, existing manual * snapshots that fall outside of the new retention period will return an error. If * you want to suppress the errors and delete the snapshots, use the force option. *

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

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

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

If you decrease the * manual snapshot retention period from its current value, existing manual * snapshots that fall outside of the new retention period will return an error. If * you want to suppress the errors and delete the snapshots, use the force option. *

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

A boolean value indicating whether to override an exception if the retention * period has passed.

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

A boolean value indicating whether to override an exception if the retention * period has passed.

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

A boolean value indicating whether to override an exception if the retention * period has passed.

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

A boolean value indicating whether to override an exception if the retention * period has passed.

*/ inline BatchModifyClusterSnapshotsRequest& WithForce(bool value) { SetForce(value); return *this;} private: Aws::Vector m_snapshotIdentifierList; bool m_snapshotIdentifierListHasBeenSet = false; int m_manualSnapshotRetentionPeriod; bool m_manualSnapshotRetentionPeriodHasBeenSet = false; bool m_force; bool m_forceHasBeenSet = false; }; } // namespace Model } // namespace Redshift } // namespace Aws