/** * 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 CreateGlobalCluster.

See Also:

* AWS * API Reference

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

The cluster identifier of the new global cluster.

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

The cluster identifier of the new global cluster.

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

The cluster identifier of the new global cluster.

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

The cluster identifier of the new global cluster.

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

The cluster identifier of the new global cluster.

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

The cluster identifier of the new global cluster.

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

The cluster identifier of the new global cluster.

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

The cluster identifier of the new global cluster.

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

The Amazon Resource Name (ARN) to use as the primary cluster of the global * cluster. This parameter is optional.

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

The Amazon Resource Name (ARN) to use as the primary cluster of the global * cluster. This parameter is optional.

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

The Amazon Resource Name (ARN) to use as the primary cluster of the global * cluster. This parameter is optional.

*/ 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 * cluster. This parameter is optional.

*/ 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 * cluster. This parameter is optional.

*/ 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 * cluster. This parameter is optional.

*/ 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 * cluster. This parameter is optional.

*/ 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 * cluster. This parameter is optional.

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

The name of the database engine to be used for this cluster.

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

The name of the database engine to be used for this cluster.

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

The name of the database engine to be used for this cluster.

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

The name of the database engine to be used for this cluster.

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

The name of the database engine to be used for this cluster.

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

The name of the database engine to be used for this cluster.

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

The name of the database engine to be used for this cluster.

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

The name of the database engine to be used for this cluster.

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

The engine version of the global cluster.

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

The engine version of the global cluster.

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

The engine version of the global cluster.

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

The engine version of the global cluster.

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

The engine version of the global cluster.

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

The engine version of the global cluster.

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

The engine version of the global cluster.

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

The engine version of the global cluster.

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

The deletion protection setting for the new global cluster. The global * cluster can't be deleted when deletion protection is enabled.

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

The deletion protection setting for the new global cluster. The global * cluster can't be deleted when deletion protection is enabled.

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

The deletion protection setting for the new global cluster. The global * cluster can't be deleted when deletion protection is enabled.

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

The deletion protection setting for the new global cluster. The global * cluster 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 alpha-numeric characters. If you do * not provide a name, Amazon DocumentDB will not create a database in the global * cluster you are creating.

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

The name for your database of up to 64 alpha-numeric characters. If you do * not provide a name, Amazon DocumentDB will not create a database in the global * cluster you are creating.

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

The name for your database of up to 64 alpha-numeric characters. If you do * not provide a name, Amazon DocumentDB will not create a database in the global * cluster you are creating.

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

The name for your database of up to 64 alpha-numeric characters. If you do * not provide a name, Amazon DocumentDB will not create a database in the global * cluster you are creating.

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

The name for your database of up to 64 alpha-numeric characters. If you do * not provide a name, Amazon DocumentDB will not create a database in the global * cluster you are creating.

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

The name for your database of up to 64 alpha-numeric characters. If you do * not provide a name, Amazon DocumentDB will not create a database in the global * cluster you are creating.

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

The name for your database of up to 64 alpha-numeric characters. If you do * not provide a name, Amazon DocumentDB will not create a database in the global * cluster you are creating.

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

The name for your database of up to 64 alpha-numeric characters. If you do * not provide a name, Amazon DocumentDB will not create a database in the global * cluster you are creating.

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

The storage encryption setting for the new global cluster.

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

The storage encryption setting for the new global cluster.

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

The storage encryption setting for the new global cluster.

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

The storage encryption setting for the new global 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 DocDB } // namespace Aws