/** * 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 Neptune { namespace Model { /** */ class CreateDBClusterSnapshotRequest : public NeptuneRequest { public: AWS_NEPTUNE_API CreateDBClusterSnapshotRequest(); // 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 "CreateDBClusterSnapshot"; } AWS_NEPTUNE_API Aws::String SerializePayload() const override; protected: AWS_NEPTUNE_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The identifier of the DB cluster snapshot. This parameter is stored as a * lowercase string.

Constraints:

  • Must contain from 1 to 63 * letters, numbers, or hyphens.

  • First character must be a * letter.

  • Cannot end with a hyphen or contain two consecutive * hyphens.

Example: my-cluster1-snapshot1

*/ inline const Aws::String& GetDBClusterSnapshotIdentifier() const{ return m_dBClusterSnapshotIdentifier; } /** *

The identifier of the DB cluster snapshot. This parameter is stored as a * lowercase string.

Constraints:

  • Must contain from 1 to 63 * letters, numbers, or hyphens.

  • First character must be a * letter.

  • Cannot end with a hyphen or contain two consecutive * hyphens.

Example: my-cluster1-snapshot1

*/ inline bool DBClusterSnapshotIdentifierHasBeenSet() const { return m_dBClusterSnapshotIdentifierHasBeenSet; } /** *

The identifier of the DB cluster snapshot. This parameter is stored as a * lowercase string.

Constraints:

  • Must contain from 1 to 63 * letters, numbers, or hyphens.

  • First character must be a * letter.

  • Cannot end with a hyphen or contain two consecutive * hyphens.

Example: my-cluster1-snapshot1

*/ inline void SetDBClusterSnapshotIdentifier(const Aws::String& value) { m_dBClusterSnapshotIdentifierHasBeenSet = true; m_dBClusterSnapshotIdentifier = value; } /** *

The identifier of the DB cluster snapshot. This parameter is stored as a * lowercase string.

Constraints:

  • Must contain from 1 to 63 * letters, numbers, or hyphens.

  • First character must be a * letter.

  • Cannot end with a hyphen or contain two consecutive * hyphens.

Example: my-cluster1-snapshot1

*/ inline void SetDBClusterSnapshotIdentifier(Aws::String&& value) { m_dBClusterSnapshotIdentifierHasBeenSet = true; m_dBClusterSnapshotIdentifier = std::move(value); } /** *

The identifier of the DB cluster snapshot. This parameter is stored as a * lowercase string.

Constraints:

  • Must contain from 1 to 63 * letters, numbers, or hyphens.

  • First character must be a * letter.

  • Cannot end with a hyphen or contain two consecutive * hyphens.

Example: my-cluster1-snapshot1

*/ inline void SetDBClusterSnapshotIdentifier(const char* value) { m_dBClusterSnapshotIdentifierHasBeenSet = true; m_dBClusterSnapshotIdentifier.assign(value); } /** *

The identifier of the DB cluster snapshot. This parameter is stored as a * lowercase string.

Constraints:

  • Must contain from 1 to 63 * letters, numbers, or hyphens.

  • First character must be a * letter.

  • Cannot end with a hyphen or contain two consecutive * hyphens.

Example: my-cluster1-snapshot1

*/ inline CreateDBClusterSnapshotRequest& WithDBClusterSnapshotIdentifier(const Aws::String& value) { SetDBClusterSnapshotIdentifier(value); return *this;} /** *

The identifier of the DB cluster snapshot. This parameter is stored as a * lowercase string.

Constraints:

  • Must contain from 1 to 63 * letters, numbers, or hyphens.

  • First character must be a * letter.

  • Cannot end with a hyphen or contain two consecutive * hyphens.

Example: my-cluster1-snapshot1

*/ inline CreateDBClusterSnapshotRequest& WithDBClusterSnapshotIdentifier(Aws::String&& value) { SetDBClusterSnapshotIdentifier(std::move(value)); return *this;} /** *

The identifier of the DB cluster snapshot. This parameter is stored as a * lowercase string.

Constraints:

  • Must contain from 1 to 63 * letters, numbers, or hyphens.

  • First character must be a * letter.

  • Cannot end with a hyphen or contain two consecutive * hyphens.

Example: my-cluster1-snapshot1

*/ inline CreateDBClusterSnapshotRequest& WithDBClusterSnapshotIdentifier(const char* value) { SetDBClusterSnapshotIdentifier(value); return *this;} /** *

The identifier of the DB cluster to create a snapshot for. This parameter is * not case-sensitive.

Constraints:

  • Must match the * identifier of an existing DBCluster.

Example: * my-cluster1

*/ inline const Aws::String& GetDBClusterIdentifier() const{ return m_dBClusterIdentifier; } /** *

The identifier of the DB cluster to create a snapshot for. This parameter is * not case-sensitive.

Constraints:

  • Must match the * identifier of an existing DBCluster.

Example: * my-cluster1

*/ inline bool DBClusterIdentifierHasBeenSet() const { return m_dBClusterIdentifierHasBeenSet; } /** *

The identifier of the DB cluster to create a snapshot for. This parameter is * not case-sensitive.

Constraints:

  • Must match the * identifier of an existing DBCluster.

Example: * my-cluster1

*/ inline void SetDBClusterIdentifier(const Aws::String& value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier = value; } /** *

The identifier of the DB cluster to create a snapshot for. This parameter is * not case-sensitive.

Constraints:

  • Must match the * identifier of an existing DBCluster.

Example: * my-cluster1

*/ inline void SetDBClusterIdentifier(Aws::String&& value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier = std::move(value); } /** *

The identifier of the DB cluster to create a snapshot for. This parameter is * not case-sensitive.

Constraints:

  • Must match the * identifier of an existing DBCluster.

Example: * my-cluster1

*/ inline void SetDBClusterIdentifier(const char* value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier.assign(value); } /** *

The identifier of the DB cluster to create a snapshot for. This parameter is * not case-sensitive.

Constraints:

  • Must match the * identifier of an existing DBCluster.

Example: * my-cluster1

*/ inline CreateDBClusterSnapshotRequest& WithDBClusterIdentifier(const Aws::String& value) { SetDBClusterIdentifier(value); return *this;} /** *

The identifier of the DB cluster to create a snapshot for. This parameter is * not case-sensitive.

Constraints:

  • Must match the * identifier of an existing DBCluster.

Example: * my-cluster1

*/ inline CreateDBClusterSnapshotRequest& WithDBClusterIdentifier(Aws::String&& value) { SetDBClusterIdentifier(std::move(value)); return *this;} /** *

The identifier of the DB cluster to create a snapshot for. This parameter is * not case-sensitive.

Constraints:

  • Must match the * identifier of an existing DBCluster.

Example: * my-cluster1

*/ inline CreateDBClusterSnapshotRequest& WithDBClusterIdentifier(const char* value) { SetDBClusterIdentifier(value); return *this;} /** *

The tags to be assigned to the DB cluster snapshot.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

The tags to be assigned to the DB cluster snapshot.

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

The tags to be assigned to the DB cluster snapshot.

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

The tags to be assigned to the DB cluster snapshot.

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

The tags to be assigned to the DB cluster snapshot.

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

The tags to be assigned to the DB cluster snapshot.

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

The tags to be assigned to the DB cluster snapshot.

*/ inline CreateDBClusterSnapshotRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

The tags to be assigned to the DB cluster snapshot.

*/ inline CreateDBClusterSnapshotRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_dBClusterSnapshotIdentifier; bool m_dBClusterSnapshotIdentifierHasBeenSet = false; Aws::String m_dBClusterIdentifier; bool m_dBClusterIdentifierHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace Neptune } // namespace Aws