/** * 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 FailoverGlobalClusterRequest : public NeptuneRequest { public: AWS_NEPTUNE_API FailoverGlobalClusterRequest(); // 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 "FailoverGlobalCluster"; } AWS_NEPTUNE_API Aws::String SerializePayload() const override; protected: AWS_NEPTUNE_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

Identifier of the Neptune global database that should be failed over. The * identifier is the unique key assigned by the user when the Neptune global * database was created. In other words, it's the name of the global database that * you want to fail over.

Constraints: Must match the identifier of an * existing Neptune global database.

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

Identifier of the Neptune global database that should be failed over. The * identifier is the unique key assigned by the user when the Neptune global * database was created. In other words, it's the name of the global database that * you want to fail over.

Constraints: Must match the identifier of an * existing Neptune global database.

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

Identifier of the Neptune global database that should be failed over. The * identifier is the unique key assigned by the user when the Neptune global * database was created. In other words, it's the name of the global database that * you want to fail over.

Constraints: Must match the identifier of an * existing Neptune global database.

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

Identifier of the Neptune global database that should be failed over. The * identifier is the unique key assigned by the user when the Neptune global * database was created. In other words, it's the name of the global database that * you want to fail over.

Constraints: Must match the identifier of an * existing Neptune global database.

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

Identifier of the Neptune global database that should be failed over. The * identifier is the unique key assigned by the user when the Neptune global * database was created. In other words, it's the name of the global database that * you want to fail over.

Constraints: Must match the identifier of an * existing Neptune global database.

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

Identifier of the Neptune global database that should be failed over. The * identifier is the unique key assigned by the user when the Neptune global * database was created. In other words, it's the name of the global database that * you want to fail over.

Constraints: Must match the identifier of an * existing Neptune global database.

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

Identifier of the Neptune global database that should be failed over. The * identifier is the unique key assigned by the user when the Neptune global * database was created. In other words, it's the name of the global database that * you want to fail over.

Constraints: Must match the identifier of an * existing Neptune global database.

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

Identifier of the Neptune global database that should be failed over. The * identifier is the unique key assigned by the user when the Neptune global * database was created. In other words, it's the name of the global database that * you want to fail over.

Constraints: Must match the identifier of an * existing Neptune global database.

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

The Amazon Resource Name (ARN) of the secondary Neptune DB cluster that you * want to promote to primary for the global database.

*/ inline const Aws::String& GetTargetDbClusterIdentifier() const{ return m_targetDbClusterIdentifier; } /** *

The Amazon Resource Name (ARN) of the secondary Neptune DB cluster that you * want to promote to primary for the global database.

*/ inline bool TargetDbClusterIdentifierHasBeenSet() const { return m_targetDbClusterIdentifierHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the secondary Neptune DB cluster that you * want to promote to primary for the global database.

*/ inline void SetTargetDbClusterIdentifier(const Aws::String& value) { m_targetDbClusterIdentifierHasBeenSet = true; m_targetDbClusterIdentifier = value; } /** *

The Amazon Resource Name (ARN) of the secondary Neptune DB cluster that you * want to promote to primary for the global database.

*/ inline void SetTargetDbClusterIdentifier(Aws::String&& value) { m_targetDbClusterIdentifierHasBeenSet = true; m_targetDbClusterIdentifier = std::move(value); } /** *

The Amazon Resource Name (ARN) of the secondary Neptune DB cluster that you * want to promote to primary for the global database.

*/ inline void SetTargetDbClusterIdentifier(const char* value) { m_targetDbClusterIdentifierHasBeenSet = true; m_targetDbClusterIdentifier.assign(value); } /** *

The Amazon Resource Name (ARN) of the secondary Neptune DB cluster that you * want to promote to primary for the global database.

*/ inline FailoverGlobalClusterRequest& WithTargetDbClusterIdentifier(const Aws::String& value) { SetTargetDbClusterIdentifier(value); return *this;} /** *

The Amazon Resource Name (ARN) of the secondary Neptune DB cluster that you * want to promote to primary for the global database.

*/ inline FailoverGlobalClusterRequest& WithTargetDbClusterIdentifier(Aws::String&& value) { SetTargetDbClusterIdentifier(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the secondary Neptune DB cluster that you * want to promote to primary for the global database.

*/ inline FailoverGlobalClusterRequest& WithTargetDbClusterIdentifier(const char* value) { SetTargetDbClusterIdentifier(value); return *this;} private: Aws::String m_globalClusterIdentifier; bool m_globalClusterIdentifierHasBeenSet = false; Aws::String m_targetDbClusterIdentifier; bool m_targetDbClusterIdentifierHasBeenSet = false; }; } // namespace Model } // namespace Neptune } // namespace Aws