/** * 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 CreateGlobalClusterRequest : public RDSRequest { public: AWS_RDS_API CreateGlobalClusterRequest(); // 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 "CreateGlobalCluster"; } AWS_RDS_API Aws::String SerializePayload() const override; protected: AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The cluster identifier for this global database cluster. This parameter is * stored as a lowercase string.

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

The cluster identifier for this global database cluster. This parameter is * stored as a lowercase string.

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

The cluster identifier for this global database cluster. This parameter is * stored as a lowercase string.

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

The cluster identifier for this global database cluster. This parameter is * stored as a lowercase string.

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

The cluster identifier for this global database cluster. This parameter is * stored as a lowercase string.

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

The cluster identifier for this global database cluster. This parameter is * stored as a lowercase string.

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

The cluster identifier for this global database cluster. This parameter is * stored as a lowercase string.

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

The cluster identifier for this global database cluster. This parameter is * stored as a lowercase string.

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

The Amazon Resource Name (ARN) to use as the primary cluster of the global * database.

If you provide a value for this parameter, don't specify values * for the following settings because Amazon Aurora uses the values from the * specified source DB cluster:

  • DatabaseName

    *
  • Engine

  • * EngineVersion

  • StorageEncrypted *

*/ inline const Aws::String& GetSourceDBClusterIdentifier() const{ return m_sourceDBClusterIdentifier; } /** *

The Amazon Resource Name (ARN) to use as the primary cluster of the global * database.

If you provide a value for this parameter, don't specify values * for the following settings because Amazon Aurora uses the values from the * specified source DB cluster:

  • DatabaseName

    *
  • Engine

  • * EngineVersion

  • StorageEncrypted *

*/ inline bool SourceDBClusterIdentifierHasBeenSet() const { return m_sourceDBClusterIdentifierHasBeenSet; } /** *

The Amazon Resource Name (ARN) to use as the primary cluster of the global * database.

If you provide a value for this parameter, don't specify values * for the following settings because Amazon Aurora uses the values from the * specified source DB cluster:

  • DatabaseName

    *
  • Engine

  • * EngineVersion

  • StorageEncrypted *

*/ inline void SetSourceDBClusterIdentifier(const Aws::String& value) { m_sourceDBClusterIdentifierHasBeenSet = true; m_sourceDBClusterIdentifier = value; } /** *

The Amazon Resource Name (ARN) to use as the primary cluster of the global * database.

If you provide a value for this parameter, don't specify values * for the following settings because Amazon Aurora uses the values from the * specified source DB cluster:

  • DatabaseName

    *
  • Engine

  • * EngineVersion

  • StorageEncrypted *

*/ inline void SetSourceDBClusterIdentifier(Aws::String&& value) { m_sourceDBClusterIdentifierHasBeenSet = true; m_sourceDBClusterIdentifier = std::move(value); } /** *

The Amazon Resource Name (ARN) to use as the primary cluster of the global * database.

If you provide a value for this parameter, don't specify values * for the following settings because Amazon Aurora uses the values from the * specified source DB cluster:

  • DatabaseName

    *
  • Engine

  • * EngineVersion

  • StorageEncrypted *

*/ inline void SetSourceDBClusterIdentifier(const char* value) { m_sourceDBClusterIdentifierHasBeenSet = true; m_sourceDBClusterIdentifier.assign(value); } /** *

The Amazon Resource Name (ARN) to use as the primary cluster of the global * database.

If you provide a value for this parameter, don't specify values * for the following settings because Amazon Aurora uses the values from the * specified source DB cluster:

  • DatabaseName

    *
  • Engine

  • * EngineVersion

  • StorageEncrypted *

*/ inline CreateGlobalClusterRequest& WithSourceDBClusterIdentifier(const Aws::String& value) { SetSourceDBClusterIdentifier(value); return *this;} /** *

The Amazon Resource Name (ARN) to use as the primary cluster of the global * database.

If you provide a value for this parameter, don't specify values * for the following settings because Amazon Aurora uses the values from the * specified source DB cluster:

  • DatabaseName

    *
  • Engine

  • * EngineVersion

  • StorageEncrypted *

*/ inline CreateGlobalClusterRequest& WithSourceDBClusterIdentifier(Aws::String&& value) { SetSourceDBClusterIdentifier(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) to use as the primary cluster of the global * database.

If you provide a value for this parameter, don't specify values * for the following settings because Amazon Aurora uses the values from the * specified source DB cluster:

  • DatabaseName

    *
  • Engine

  • * EngineVersion

  • StorageEncrypted *

*/ inline CreateGlobalClusterRequest& WithSourceDBClusterIdentifier(const char* value) { SetSourceDBClusterIdentifier(value); return *this;} /** *

The database engine to use for this global database cluster.

Valid * Values: aurora-mysql | aurora-postgresql

Constraints:

*
  • Can't be specified if SourceDBClusterIdentifier is * specified. In this case, Amazon Aurora uses the engine of the source DB * cluster.

*/ inline const Aws::String& GetEngine() const{ return m_engine; } /** *

The database engine to use for this global database cluster.

Valid * Values: aurora-mysql | aurora-postgresql

Constraints:

*
  • Can't be specified if SourceDBClusterIdentifier is * specified. In this case, Amazon Aurora uses the engine of the source DB * cluster.

*/ inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; } /** *

The database engine to use for this global database cluster.

Valid * Values: aurora-mysql | aurora-postgresql

Constraints:

*
  • Can't be specified if SourceDBClusterIdentifier is * specified. In this case, Amazon Aurora uses the engine of the source DB * cluster.

*/ inline void SetEngine(const Aws::String& value) { m_engineHasBeenSet = true; m_engine = value; } /** *

The database engine to use for this global database cluster.

Valid * Values: aurora-mysql | aurora-postgresql

Constraints:

*
  • Can't be specified if SourceDBClusterIdentifier is * specified. In this case, Amazon Aurora uses the engine of the source DB * cluster.

*/ inline void SetEngine(Aws::String&& value) { m_engineHasBeenSet = true; m_engine = std::move(value); } /** *

The database engine to use for this global database cluster.

Valid * Values: aurora-mysql | aurora-postgresql

Constraints:

*
  • Can't be specified if SourceDBClusterIdentifier is * specified. In this case, Amazon Aurora uses the engine of the source DB * cluster.

*/ inline void SetEngine(const char* value) { m_engineHasBeenSet = true; m_engine.assign(value); } /** *

The database engine to use for this global database cluster.

Valid * Values: aurora-mysql | aurora-postgresql

Constraints:

*
  • Can't be specified if SourceDBClusterIdentifier is * specified. In this case, Amazon Aurora uses the engine of the source DB * cluster.

*/ inline CreateGlobalClusterRequest& WithEngine(const Aws::String& value) { SetEngine(value); return *this;} /** *

The database engine to use for this global database cluster.

Valid * Values: aurora-mysql | aurora-postgresql

Constraints:

*
  • Can't be specified if SourceDBClusterIdentifier is * specified. In this case, Amazon Aurora uses the engine of the source DB * cluster.

*/ inline CreateGlobalClusterRequest& WithEngine(Aws::String&& value) { SetEngine(std::move(value)); return *this;} /** *

The database engine to use for this global database cluster.

Valid * Values: aurora-mysql | aurora-postgresql

Constraints:

*
  • Can't be specified if SourceDBClusterIdentifier is * specified. In this case, Amazon Aurora uses the engine of the source DB * cluster.

*/ inline CreateGlobalClusterRequest& WithEngine(const char* value) { SetEngine(value); return *this;} /** *

The engine version to use for this global database cluster.

*

Constraints:

  • Can't be specified if * SourceDBClusterIdentifier is specified. In this case, Amazon Aurora * uses the engine version of the source DB cluster.

*/ inline const Aws::String& GetEngineVersion() const{ return m_engineVersion; } /** *

The engine version to use for this global database cluster.

*

Constraints:

  • Can't be specified if * SourceDBClusterIdentifier is specified. In this case, Amazon Aurora * uses the engine version of the source DB cluster.

*/ inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; } /** *

The engine version to use for this global database cluster.

*

Constraints:

  • Can't be specified if * SourceDBClusterIdentifier is specified. In this case, Amazon Aurora * uses the engine version of the source DB cluster.

*/ inline void SetEngineVersion(const Aws::String& value) { m_engineVersionHasBeenSet = true; m_engineVersion = value; } /** *

The engine version to use for this global database cluster.

*

Constraints:

  • Can't be specified if * SourceDBClusterIdentifier is specified. In this case, Amazon Aurora * uses the engine version of the source DB cluster.

*/ inline void SetEngineVersion(Aws::String&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::move(value); } /** *

The engine version to use for this global database cluster.

*

Constraints:

  • Can't be specified if * SourceDBClusterIdentifier is specified. In this case, Amazon Aurora * uses the engine version of the source DB cluster.

*/ inline void SetEngineVersion(const char* value) { m_engineVersionHasBeenSet = true; m_engineVersion.assign(value); } /** *

The engine version to use for this global database cluster.

*

Constraints:

  • Can't be specified if * SourceDBClusterIdentifier is specified. In this case, Amazon Aurora * uses the engine version of the source DB cluster.

*/ inline CreateGlobalClusterRequest& WithEngineVersion(const Aws::String& value) { SetEngineVersion(value); return *this;} /** *

The engine version to use for this global database cluster.

*

Constraints:

  • Can't be specified if * SourceDBClusterIdentifier is specified. In this case, Amazon Aurora * uses the engine version of the source DB cluster.

*/ inline CreateGlobalClusterRequest& WithEngineVersion(Aws::String&& value) { SetEngineVersion(std::move(value)); return *this;} /** *

The engine version to use for this global database cluster.

*

Constraints:

  • Can't be specified if * SourceDBClusterIdentifier is specified. In this case, Amazon Aurora * uses the engine version of the source DB cluster.

*/ inline CreateGlobalClusterRequest& WithEngineVersion(const char* value) { SetEngineVersion(value); return *this;} /** *

Specifies whether to enable deletion protection for the new global database * cluster. The global database can't be deleted when deletion protection is * enabled.

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

Specifies whether to enable deletion protection for the new global database * cluster. The global database can't be deleted when deletion protection is * enabled.

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

Specifies whether to enable deletion protection for the new global database * cluster. The global database can't be deleted when deletion protection is * enabled.

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

Specifies whether to enable deletion protection for the new global database * cluster. The global database can't be deleted when deletion protection is * enabled.

*/ inline CreateGlobalClusterRequest& WithDeletionProtection(bool value) { SetDeletionProtection(value); return *this;} /** *

The name for your database of up to 64 alphanumeric characters. If you don't * specify a name, Amazon Aurora doesn't create a database in the global database * cluster.

Constraints:

  • Can't be specified if * SourceDBClusterIdentifier is specified. In this case, Amazon Aurora * uses the database name from the source DB cluster.

*/ inline const Aws::String& GetDatabaseName() const{ return m_databaseName; } /** *

The name for your database of up to 64 alphanumeric characters. If you don't * specify a name, Amazon Aurora doesn't create a database in the global database * cluster.

Constraints:

  • Can't be specified if * SourceDBClusterIdentifier is specified. In this case, Amazon Aurora * uses the database name from the source DB cluster.

*/ inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; } /** *

The name for your database of up to 64 alphanumeric characters. If you don't * specify a name, Amazon Aurora doesn't create a database in the global database * cluster.

Constraints:

  • Can't be specified if * SourceDBClusterIdentifier is specified. In this case, Amazon Aurora * uses the database name from the source DB cluster.

*/ inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; } /** *

The name for your database of up to 64 alphanumeric characters. If you don't * specify a name, Amazon Aurora doesn't create a database in the global database * cluster.

Constraints:

  • Can't be specified if * SourceDBClusterIdentifier is specified. In this case, Amazon Aurora * uses the database name from the source DB cluster.

*/ inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); } /** *

The name for your database of up to 64 alphanumeric characters. If you don't * specify a name, Amazon Aurora doesn't create a database in the global database * cluster.

Constraints:

  • Can't be specified if * SourceDBClusterIdentifier is specified. In this case, Amazon Aurora * uses the database name from the source DB cluster.

*/ inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); } /** *

The name for your database of up to 64 alphanumeric characters. If you don't * specify a name, Amazon Aurora doesn't create a database in the global database * cluster.

Constraints:

  • Can't be specified if * SourceDBClusterIdentifier is specified. In this case, Amazon Aurora * uses the database name from the source DB cluster.

*/ inline CreateGlobalClusterRequest& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;} /** *

The name for your database of up to 64 alphanumeric characters. If you don't * specify a name, Amazon Aurora doesn't create a database in the global database * cluster.

Constraints:

  • Can't be specified if * SourceDBClusterIdentifier is specified. In this case, Amazon Aurora * uses the database name from the source DB cluster.

*/ inline CreateGlobalClusterRequest& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;} /** *

The name for your database of up to 64 alphanumeric characters. If you don't * specify a name, Amazon Aurora doesn't create a database in the global database * cluster.

Constraints:

  • Can't be specified if * SourceDBClusterIdentifier is specified. In this case, Amazon Aurora * uses the database name from the source DB cluster.

*/ inline CreateGlobalClusterRequest& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;} /** *

Specifies whether to enable storage encryption for the new global database * cluster.

Constraints:

  • Can't be specified if * SourceDBClusterIdentifier is specified. In this case, Amazon Aurora * uses the setting from the source DB cluster.

*/ inline bool GetStorageEncrypted() const{ return m_storageEncrypted; } /** *

Specifies whether to enable storage encryption for the new global database * cluster.

Constraints:

  • Can't be specified if * SourceDBClusterIdentifier is specified. In this case, Amazon Aurora * uses the setting from the source DB cluster.

*/ inline bool StorageEncryptedHasBeenSet() const { return m_storageEncryptedHasBeenSet; } /** *

Specifies whether to enable storage encryption for the new global database * cluster.

Constraints:

  • Can't be specified if * SourceDBClusterIdentifier is specified. In this case, Amazon Aurora * uses the setting from the source DB cluster.

*/ inline void SetStorageEncrypted(bool value) { m_storageEncryptedHasBeenSet = true; m_storageEncrypted = value; } /** *

Specifies whether to enable storage encryption for the new global database * cluster.

Constraints:

  • Can't be specified if * SourceDBClusterIdentifier is specified. In this case, Amazon Aurora * uses the setting from the source DB cluster.

*/ inline CreateGlobalClusterRequest& WithStorageEncrypted(bool value) { SetStorageEncrypted(value); return *this;} private: Aws::String m_globalClusterIdentifier; bool m_globalClusterIdentifierHasBeenSet = false; Aws::String m_sourceDBClusterIdentifier; bool m_sourceDBClusterIdentifierHasBeenSet = false; Aws::String m_engine; bool m_engineHasBeenSet = false; Aws::String m_engineVersion; bool m_engineVersionHasBeenSet = false; bool m_deletionProtection; bool m_deletionProtectionHasBeenSet = false; Aws::String m_databaseName; bool m_databaseNameHasBeenSet = false; bool m_storageEncrypted; bool m_storageEncryptedHasBeenSet = false; }; } // namespace Model } // namespace RDS } // namespace Aws