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

The cluster identifier of the new global database cluster.

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

The cluster identifier of the new global database cluster.

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

The cluster identifier of the new global database cluster.

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

The cluster identifier of the new global database cluster.

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

The cluster identifier of the new global database cluster.

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

The cluster identifier of the new global database cluster.

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

The cluster identifier of the new global database cluster.

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

The cluster identifier of the new global database cluster.

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

(Optional) The Amazon Resource Name (ARN) of an existing Neptune DB * cluster to use as the primary cluster of the new global database.

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

(Optional) The Amazon Resource Name (ARN) of an existing Neptune DB * cluster to use as the primary cluster of the new global database.

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

(Optional) The Amazon Resource Name (ARN) of an existing Neptune DB * cluster to use as the primary cluster of the new global database.

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

(Optional) The Amazon Resource Name (ARN) of an existing Neptune DB * cluster to use as the primary cluster of the new global database.

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

(Optional) The Amazon Resource Name (ARN) of an existing Neptune DB * cluster to use as the primary cluster of the new global database.

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

(Optional) The Amazon Resource Name (ARN) of an existing Neptune DB * cluster to use as the primary cluster of the new global database.

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

(Optional) The Amazon Resource Name (ARN) of an existing Neptune DB * cluster to use as the primary cluster of the new global database.

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

(Optional) The Amazon Resource Name (ARN) of an existing Neptune DB * cluster to use as the primary cluster of the new global database.

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

The name of the database engine to be used in the global database.

*

Valid values: neptune

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

The name of the database engine to be used in the global database.

*

Valid values: neptune

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

The name of the database engine to be used in the global database.

*

Valid values: neptune

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

The name of the database engine to be used in the global database.

*

Valid values: neptune

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

The name of the database engine to be used in the global database.

*

Valid values: neptune

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

The name of the database engine to be used in the global database.

*

Valid values: neptune

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

The name of the database engine to be used in the global database.

*

Valid values: neptune

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

The name of the database engine to be used in the global database.

*

Valid values: neptune

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

The Neptune engine version to be used by the global database.

Valid * values: 1.2.0.0 or above.

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

The Neptune engine version to be used by the global database.

Valid * values: 1.2.0.0 or above.

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

The Neptune engine version to be used by the global database.

Valid * values: 1.2.0.0 or above.

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

The Neptune engine version to be used by the global database.

Valid * values: 1.2.0.0 or above.

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

The Neptune engine version to be used by the global database.

Valid * values: 1.2.0.0 or above.

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

The Neptune engine version to be used by the global database.

Valid * values: 1.2.0.0 or above.

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

The Neptune engine version to be used by the global database.

Valid * values: 1.2.0.0 or above.

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

The Neptune engine version to be used by the global database.

Valid * values: 1.2.0.0 or above.

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

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

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

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

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

The deletion protection setting for the new global database. The global * database 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 database. The global * database can't be deleted when deletion protection is enabled.

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

The storage encryption setting for the new global database cluster.

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

The storage encryption setting for the new global database cluster.

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

The storage encryption setting for the new global database cluster.

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

The storage encryption setting for the new global database 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; bool m_storageEncrypted; bool m_storageEncryptedHasBeenSet = false; }; } // namespace Model } // namespace Neptune } // namespace Aws