/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include See Also:
AWS
* API Reference
A unique identifier for the snapshot that you are requesting. This identifier * must be unique for all snapshots within the Amazon Web Services account.
*Constraints:
Cannot be null, empty, or blank
Must contain from 1 to 255 alphanumeric characters or hyphens
First character must be a letter
Cannot end with a hyphen * or contain two consecutive hyphens
Example:
* my-snapshot-id
A unique identifier for the snapshot that you are requesting. This identifier * must be unique for all snapshots within the Amazon Web Services account.
*Constraints:
Cannot be null, empty, or blank
Must contain from 1 to 255 alphanumeric characters or hyphens
First character must be a letter
Cannot end with a hyphen * or contain two consecutive hyphens
Example:
* my-snapshot-id
A unique identifier for the snapshot that you are requesting. This identifier * must be unique for all snapshots within the Amazon Web Services account.
*Constraints:
Cannot be null, empty, or blank
Must contain from 1 to 255 alphanumeric characters or hyphens
First character must be a letter
Cannot end with a hyphen * or contain two consecutive hyphens
Example:
* my-snapshot-id
A unique identifier for the snapshot that you are requesting. This identifier * must be unique for all snapshots within the Amazon Web Services account.
*Constraints:
Cannot be null, empty, or blank
Must contain from 1 to 255 alphanumeric characters or hyphens
First character must be a letter
Cannot end with a hyphen * or contain two consecutive hyphens
Example:
* my-snapshot-id
A unique identifier for the snapshot that you are requesting. This identifier * must be unique for all snapshots within the Amazon Web Services account.
*Constraints:
Cannot be null, empty, or blank
Must contain from 1 to 255 alphanumeric characters or hyphens
First character must be a letter
Cannot end with a hyphen * or contain two consecutive hyphens
Example:
* my-snapshot-id
A unique identifier for the snapshot that you are requesting. This identifier * must be unique for all snapshots within the Amazon Web Services account.
*Constraints:
Cannot be null, empty, or blank
Must contain from 1 to 255 alphanumeric characters or hyphens
First character must be a letter
Cannot end with a hyphen * or contain two consecutive hyphens
Example:
* my-snapshot-id
A unique identifier for the snapshot that you are requesting. This identifier * must be unique for all snapshots within the Amazon Web Services account.
*Constraints:
Cannot be null, empty, or blank
Must contain from 1 to 255 alphanumeric characters or hyphens
First character must be a letter
Cannot end with a hyphen * or contain two consecutive hyphens
Example:
* my-snapshot-id
A unique identifier for the snapshot that you are requesting. This identifier * must be unique for all snapshots within the Amazon Web Services account.
*Constraints:
Cannot be null, empty, or blank
Must contain from 1 to 255 alphanumeric characters or hyphens
First character must be a letter
Cannot end with a hyphen * or contain two consecutive hyphens
Example:
* my-snapshot-id
The cluster identifier for which you want a snapshot.
*/ inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; } /** *The cluster identifier for which you want a snapshot.
*/ inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; } /** *The cluster identifier for which you want a snapshot.
*/ inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; } /** *The cluster identifier for which you want a snapshot.
*/ inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::move(value); } /** *The cluster identifier for which you want a snapshot.
*/ inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); } /** *The cluster identifier for which you want a snapshot.
*/ inline CreateClusterSnapshotRequest& WithClusterIdentifier(const Aws::String& value) { SetClusterIdentifier(value); return *this;} /** *The cluster identifier for which you want a snapshot.
*/ inline CreateClusterSnapshotRequest& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(std::move(value)); return *this;} /** *The cluster identifier for which you want a snapshot.
*/ inline CreateClusterSnapshotRequest& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;} /** *The number of days that a manual snapshot is retained. If the value is -1, * the manual snapshot is retained indefinitely.
The value must be either * -1 or an integer between 1 and 3,653.
The default value is -1.
*/ 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.
The value must be either * -1 or an integer between 1 and 3,653.
The default value is -1.
*/ 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.
The value must be either * -1 or an integer between 1 and 3,653.
The default value is -1.
*/ 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.
The value must be either * -1 or an integer between 1 and 3,653.
The default value is -1.
*/ inline CreateClusterSnapshotRequest& WithManualSnapshotRetentionPeriod(int value) { SetManualSnapshotRetentionPeriod(value); return *this;} /** *A list of tag instances.
*/ inline const Aws::VectorA list of tag instances.
*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *A list of tag instances.
*/ inline void SetTags(const Aws::VectorA list of tag instances.
*/ inline void SetTags(Aws::VectorA list of tag instances.
*/ inline CreateClusterSnapshotRequest& WithTags(const Aws::VectorA list of tag instances.
*/ inline CreateClusterSnapshotRequest& WithTags(Aws::VectorA list of tag instances.
*/ inline CreateClusterSnapshotRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *A list of tag instances.
*/ inline CreateClusterSnapshotRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_snapshotIdentifier; bool m_snapshotIdentifierHasBeenSet = false; Aws::String m_clusterIdentifier; bool m_clusterIdentifierHasBeenSet = false; int m_manualSnapshotRetentionPeriod; bool m_manualSnapshotRetentionPeriodHasBeenSet = false; Aws::Vector