/** * 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 ElastiCache { namespace Model { /** */ class CompleteMigrationRequest : public ElastiCacheRequest { public: AWS_ELASTICACHE_API CompleteMigrationRequest(); // 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 "CompleteMigration"; } AWS_ELASTICACHE_API Aws::String SerializePayload() const override; protected: AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The ID of the replication group to which data is being migrated.

*/ inline const Aws::String& GetReplicationGroupId() const{ return m_replicationGroupId; } /** *

The ID of the replication group to which data is being migrated.

*/ inline bool ReplicationGroupIdHasBeenSet() const { return m_replicationGroupIdHasBeenSet; } /** *

The ID of the replication group to which data is being migrated.

*/ inline void SetReplicationGroupId(const Aws::String& value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId = value; } /** *

The ID of the replication group to which data is being migrated.

*/ inline void SetReplicationGroupId(Aws::String&& value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId = std::move(value); } /** *

The ID of the replication group to which data is being migrated.

*/ inline void SetReplicationGroupId(const char* value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId.assign(value); } /** *

The ID of the replication group to which data is being migrated.

*/ inline CompleteMigrationRequest& WithReplicationGroupId(const Aws::String& value) { SetReplicationGroupId(value); return *this;} /** *

The ID of the replication group to which data is being migrated.

*/ inline CompleteMigrationRequest& WithReplicationGroupId(Aws::String&& value) { SetReplicationGroupId(std::move(value)); return *this;} /** *

The ID of the replication group to which data is being migrated.

*/ inline CompleteMigrationRequest& WithReplicationGroupId(const char* value) { SetReplicationGroupId(value); return *this;} /** *

Forces the migration to stop without ensuring that data is in sync. It is * recommended to use this option only to abort the migration and not recommended * when application wants to continue migration to ElastiCache.

*/ inline bool GetForce() const{ return m_force; } /** *

Forces the migration to stop without ensuring that data is in sync. It is * recommended to use this option only to abort the migration and not recommended * when application wants to continue migration to ElastiCache.

*/ inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; } /** *

Forces the migration to stop without ensuring that data is in sync. It is * recommended to use this option only to abort the migration and not recommended * when application wants to continue migration to ElastiCache.

*/ inline void SetForce(bool value) { m_forceHasBeenSet = true; m_force = value; } /** *

Forces the migration to stop without ensuring that data is in sync. It is * recommended to use this option only to abort the migration and not recommended * when application wants to continue migration to ElastiCache.

*/ inline CompleteMigrationRequest& WithForce(bool value) { SetForce(value); return *this;} private: Aws::String m_replicationGroupId; bool m_replicationGroupIdHasBeenSet = false; bool m_force; bool m_forceHasBeenSet = false; }; } // namespace Model } // namespace ElastiCache } // namespace Aws