/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace ElastiCache { namespace Model { /** */ class StartMigrationRequest : public ElastiCacheRequest { public: AWS_ELASTICACHE_API StartMigrationRequest(); // 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 "StartMigration"; } 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 should be migrated.

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

The ID of the replication group to which data should be migrated.

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

The ID of the replication group to which data should be migrated.

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

The ID of the replication group to which data should be migrated.

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

The ID of the replication group to which data should be migrated.

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

The ID of the replication group to which data should be migrated.

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

The ID of the replication group to which data should be migrated.

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

The ID of the replication group to which data should be migrated.

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

List of endpoints from which data should be migrated. For Redis (cluster mode * disabled), list should have only one element.

*/ inline const Aws::Vector& GetCustomerNodeEndpointList() const{ return m_customerNodeEndpointList; } /** *

List of endpoints from which data should be migrated. For Redis (cluster mode * disabled), list should have only one element.

*/ inline bool CustomerNodeEndpointListHasBeenSet() const { return m_customerNodeEndpointListHasBeenSet; } /** *

List of endpoints from which data should be migrated. For Redis (cluster mode * disabled), list should have only one element.

*/ inline void SetCustomerNodeEndpointList(const Aws::Vector& value) { m_customerNodeEndpointListHasBeenSet = true; m_customerNodeEndpointList = value; } /** *

List of endpoints from which data should be migrated. For Redis (cluster mode * disabled), list should have only one element.

*/ inline void SetCustomerNodeEndpointList(Aws::Vector&& value) { m_customerNodeEndpointListHasBeenSet = true; m_customerNodeEndpointList = std::move(value); } /** *

List of endpoints from which data should be migrated. For Redis (cluster mode * disabled), list should have only one element.

*/ inline StartMigrationRequest& WithCustomerNodeEndpointList(const Aws::Vector& value) { SetCustomerNodeEndpointList(value); return *this;} /** *

List of endpoints from which data should be migrated. For Redis (cluster mode * disabled), list should have only one element.

*/ inline StartMigrationRequest& WithCustomerNodeEndpointList(Aws::Vector&& value) { SetCustomerNodeEndpointList(std::move(value)); return *this;} /** *

List of endpoints from which data should be migrated. For Redis (cluster mode * disabled), list should have only one element.

*/ inline StartMigrationRequest& AddCustomerNodeEndpointList(const CustomerNodeEndpoint& value) { m_customerNodeEndpointListHasBeenSet = true; m_customerNodeEndpointList.push_back(value); return *this; } /** *

List of endpoints from which data should be migrated. For Redis (cluster mode * disabled), list should have only one element.

*/ inline StartMigrationRequest& AddCustomerNodeEndpointList(CustomerNodeEndpoint&& value) { m_customerNodeEndpointListHasBeenSet = true; m_customerNodeEndpointList.push_back(std::move(value)); return *this; } private: Aws::String m_replicationGroupId; bool m_replicationGroupIdHasBeenSet = false; Aws::Vector m_customerNodeEndpointList; bool m_customerNodeEndpointListHasBeenSet = false; }; } // namespace Model } // namespace ElastiCache } // namespace Aws