/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Redshift { namespace Model { /** *

See Also:

AWS * API Reference

*/ class CreateClusterSnapshotRequest : public RedshiftRequest { public: AWS_REDSHIFT_API CreateClusterSnapshotRequest(); // 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 "CreateClusterSnapshot"; } AWS_REDSHIFT_API Aws::String SerializePayload() const override; protected: AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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::Vector& GetTags() const{ return m_tags; } /** *

A list of tag instances.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A list of tag instances.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A list of tag instances.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A list of tag instances.

*/ inline CreateClusterSnapshotRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

A list of tag instances.

*/ inline CreateClusterSnapshotRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

A 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 m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace Redshift } // namespace Aws