/** * 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 drs { namespace Model { /** */ class StartReplicationRequest : public DrsRequest { public: AWS_DRS_API StartReplicationRequest(); // 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 "StartReplication"; } AWS_DRS_API Aws::String SerializePayload() const override; /** *

The ID of the Source Server to start replication for.

*/ inline const Aws::String& GetSourceServerID() const{ return m_sourceServerID; } /** *

The ID of the Source Server to start replication for.

*/ inline bool SourceServerIDHasBeenSet() const { return m_sourceServerIDHasBeenSet; } /** *

The ID of the Source Server to start replication for.

*/ inline void SetSourceServerID(const Aws::String& value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID = value; } /** *

The ID of the Source Server to start replication for.

*/ inline void SetSourceServerID(Aws::String&& value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID = std::move(value); } /** *

The ID of the Source Server to start replication for.

*/ inline void SetSourceServerID(const char* value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID.assign(value); } /** *

The ID of the Source Server to start replication for.

*/ inline StartReplicationRequest& WithSourceServerID(const Aws::String& value) { SetSourceServerID(value); return *this;} /** *

The ID of the Source Server to start replication for.

*/ inline StartReplicationRequest& WithSourceServerID(Aws::String&& value) { SetSourceServerID(std::move(value)); return *this;} /** *

The ID of the Source Server to start replication for.

*/ inline StartReplicationRequest& WithSourceServerID(const char* value) { SetSourceServerID(value); return *this;} private: Aws::String m_sourceServerID; bool m_sourceServerIDHasBeenSet = false; }; } // namespace Model } // namespace drs } // namespace Aws