/** * 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 RDS { namespace Model { /** */ class AWS_RDS_API ModifyGlobalClusterRequest : public RDSRequest { public: 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::String SerializePayload() const override; protected: void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

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

Constraints:

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

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

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

Constraints:

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

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

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

Constraints:

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

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

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

Constraints:

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

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

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

Constraints:

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

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

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

Constraints:

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

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

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

Constraints:

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

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

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

Constraints:

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

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

The new cluster identifier for the global database cluster when modifying a * global database cluster. This value is stored as a lowercase string.

*

Constraints:

  • 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 cluster identifier for the global database cluster when modifying a * global database cluster. This value is stored as a lowercase string.

*

Constraints:

  • 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 cluster identifier for the global database cluster when modifying a * global database cluster. This value is stored as a lowercase string.

*

Constraints:

  • 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 cluster identifier for the global database cluster when modifying a * global database cluster. This value is stored as a lowercase string.

*

Constraints:

  • 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 cluster identifier for the global database cluster when modifying a * global database cluster. This value is stored as a lowercase string.

*

Constraints:

  • 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 cluster identifier for the global database cluster when modifying a * global database cluster. This value is stored as a lowercase string.

*

Constraints:

  • 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 cluster identifier for the global database cluster when modifying a * global database cluster. This value is stored as a lowercase string.

*

Constraints:

  • 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 cluster identifier for the global database cluster when modifying a * global database cluster. This value is stored as a lowercase string.

*

Constraints:

  • 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 database cluster has deletion protection enabled. * The global database cluster can't be deleted when deletion protection is * enabled.

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

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

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

Indicates if the global database cluster has deletion protection enabled. * The global database 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 database cluster has deletion protection enabled. * The global database 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; Aws::String m_newGlobalClusterIdentifier; bool m_newGlobalClusterIdentifierHasBeenSet; bool m_deletionProtection; bool m_deletionProtectionHasBeenSet; }; } // namespace Model } // namespace RDS } // namespace Aws