/** * 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 DocDB { namespace Model { /** *

Represents the input to ModifyGlobalCluster.

See Also:

* AWS * API Reference

*/ class ModifyGlobalClusterRequest : public DocDBRequest { public: AWS_DOCDB_API ModifyGlobalClusterRequest(); // 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 "ModifyGlobalCluster"; } AWS_DOCDB_API Aws::String SerializePayload() const override; protected: AWS_DOCDB_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The identifier for the global cluster being modified. This parameter isn't * case-sensitive.

Constraints:

  • Must match the identifier * of an existing global cluster.

*/ inline const Aws::String& GetGlobalClusterIdentifier() const{ return m_globalClusterIdentifier; } /** *

The identifier for the global cluster being modified. This parameter isn't * case-sensitive.

Constraints:

  • Must match the identifier * of an existing global cluster.

*/ inline bool GlobalClusterIdentifierHasBeenSet() const { return m_globalClusterIdentifierHasBeenSet; } /** *

The identifier for the global cluster being modified. This parameter isn't * case-sensitive.

Constraints:

  • Must match the identifier * of an existing global cluster.

*/ inline void SetGlobalClusterIdentifier(const Aws::String& value) { m_globalClusterIdentifierHasBeenSet = true; m_globalClusterIdentifier = value; } /** *

The identifier for the global cluster being modified. This parameter isn't * case-sensitive.

Constraints:

  • Must match the identifier * of an existing global cluster.

*/ inline void SetGlobalClusterIdentifier(Aws::String&& value) { m_globalClusterIdentifierHasBeenSet = true; m_globalClusterIdentifier = std::move(value); } /** *

The identifier for the global cluster being modified. This parameter isn't * case-sensitive.

Constraints:

  • Must match the identifier * of an existing global cluster.

*/ inline void SetGlobalClusterIdentifier(const char* value) { m_globalClusterIdentifierHasBeenSet = true; m_globalClusterIdentifier.assign(value); } /** *

The identifier for the global cluster being modified. This parameter isn't * case-sensitive.

Constraints:

  • Must match the identifier * of an existing global cluster.

*/ inline ModifyGlobalClusterRequest& WithGlobalClusterIdentifier(const Aws::String& value) { SetGlobalClusterIdentifier(value); return *this;} /** *

The identifier for the global cluster being modified. This parameter isn't * case-sensitive.

Constraints:

  • Must match the identifier * of an existing global cluster.

*/ inline ModifyGlobalClusterRequest& WithGlobalClusterIdentifier(Aws::String&& value) { SetGlobalClusterIdentifier(std::move(value)); return *this;} /** *

The identifier for the global cluster being modified. This parameter isn't * case-sensitive.

Constraints:

  • Must match the identifier * of an existing global cluster.

*/ inline ModifyGlobalClusterRequest& WithGlobalClusterIdentifier(const char* value) { SetGlobalClusterIdentifier(value); return *this;} /** *

The new identifier for a global cluster when you modify a global cluster. * This value is stored as a lowercase string.

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

    The first character must be a * letter

    Can't end with a hyphen or contain two consecutive hyphens

    *

Example: my-cluster2

*/ inline const Aws::String& GetNewGlobalClusterIdentifier() const{ return m_newGlobalClusterIdentifier; } /** *

The new identifier for a global cluster when you modify a global cluster. * This value is stored as a lowercase string.

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

    The first character must be a * letter

    Can't end with a hyphen or contain two consecutive hyphens

    *

Example: my-cluster2

*/ inline bool NewGlobalClusterIdentifierHasBeenSet() const { return m_newGlobalClusterIdentifierHasBeenSet; } /** *

The new identifier for a global cluster when you modify a global cluster. * This value is stored as a lowercase string.

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

    The first character must be a * letter

    Can't end with a hyphen or contain two consecutive hyphens

    *

Example: my-cluster2

*/ inline void SetNewGlobalClusterIdentifier(const Aws::String& value) { m_newGlobalClusterIdentifierHasBeenSet = true; m_newGlobalClusterIdentifier = value; } /** *

The new identifier for a global cluster when you modify a global cluster. * This value is stored as a lowercase string.

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

    The first character must be a * letter

    Can't end with a hyphen or contain two consecutive hyphens

    *

Example: my-cluster2

*/ inline void SetNewGlobalClusterIdentifier(Aws::String&& value) { m_newGlobalClusterIdentifierHasBeenSet = true; m_newGlobalClusterIdentifier = std::move(value); } /** *

The new identifier for a global cluster when you modify a global cluster. * This value is stored as a lowercase string.

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

    The first character must be a * letter

    Can't end with a hyphen or contain two consecutive hyphens

    *

Example: my-cluster2

*/ inline void SetNewGlobalClusterIdentifier(const char* value) { m_newGlobalClusterIdentifierHasBeenSet = true; m_newGlobalClusterIdentifier.assign(value); } /** *

The new identifier for a global cluster when you modify a global cluster. * This value is stored as a lowercase string.

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

    The first character must be a * letter

    Can't end with a hyphen or contain two consecutive hyphens

    *

Example: my-cluster2

*/ inline ModifyGlobalClusterRequest& WithNewGlobalClusterIdentifier(const Aws::String& value) { SetNewGlobalClusterIdentifier(value); return *this;} /** *

The new identifier for a global cluster when you modify a global cluster. * This value is stored as a lowercase string.

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

    The first character must be a * letter

    Can't end with a hyphen or contain two consecutive hyphens

    *

Example: my-cluster2

*/ inline ModifyGlobalClusterRequest& WithNewGlobalClusterIdentifier(Aws::String&& value) { SetNewGlobalClusterIdentifier(std::move(value)); return *this;} /** *

The new identifier for a global cluster when you modify a global cluster. * This value is stored as a lowercase string.

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

    The first character must be a * letter

    Can't end with a hyphen or contain two consecutive hyphens

    *

Example: my-cluster2

*/ inline ModifyGlobalClusterRequest& WithNewGlobalClusterIdentifier(const char* value) { SetNewGlobalClusterIdentifier(value); return *this;} /** *

Indicates if the global cluster has deletion protection enabled. The global * cluster can't be deleted when deletion protection is enabled.

*/ inline bool GetDeletionProtection() const{ return m_deletionProtection; } /** *

Indicates if the global cluster has deletion protection enabled. The global * cluster can't be deleted when deletion protection is enabled.

*/ inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; } /** *

Indicates if the global cluster has deletion protection enabled. The global * cluster can't be deleted when deletion protection is enabled.

*/ inline void SetDeletionProtection(bool value) { m_deletionProtectionHasBeenSet = true; m_deletionProtection = value; } /** *

Indicates if the global cluster has deletion protection enabled. The global * cluster can't be deleted when deletion protection is enabled.

*/ inline ModifyGlobalClusterRequest& WithDeletionProtection(bool value) { SetDeletionProtection(value); return *this;} private: Aws::String m_globalClusterIdentifier; bool m_globalClusterIdentifierHasBeenSet = false; Aws::String m_newGlobalClusterIdentifier; bool m_newGlobalClusterIdentifierHasBeenSet = false; bool m_deletionProtection; bool m_deletionProtectionHasBeenSet = false; }; } // namespace Model } // namespace DocDB } // namespace Aws