/** * 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 Outposts { namespace Model { /** */ class StartConnectionRequest : public OutpostsRequest { public: AWS_OUTPOSTS_API StartConnectionRequest(); // 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 "StartConnection"; } AWS_OUTPOSTS_API Aws::String SerializePayload() const override; /** *

The serial number of the dongle.

*/ inline const Aws::String& GetDeviceSerialNumber() const{ return m_deviceSerialNumber; } /** *

The serial number of the dongle.

*/ inline bool DeviceSerialNumberHasBeenSet() const { return m_deviceSerialNumberHasBeenSet; } /** *

The serial number of the dongle.

*/ inline void SetDeviceSerialNumber(const Aws::String& value) { m_deviceSerialNumberHasBeenSet = true; m_deviceSerialNumber = value; } /** *

The serial number of the dongle.

*/ inline void SetDeviceSerialNumber(Aws::String&& value) { m_deviceSerialNumberHasBeenSet = true; m_deviceSerialNumber = std::move(value); } /** *

The serial number of the dongle.

*/ inline void SetDeviceSerialNumber(const char* value) { m_deviceSerialNumberHasBeenSet = true; m_deviceSerialNumber.assign(value); } /** *

The serial number of the dongle.

*/ inline StartConnectionRequest& WithDeviceSerialNumber(const Aws::String& value) { SetDeviceSerialNumber(value); return *this;} /** *

The serial number of the dongle.

*/ inline StartConnectionRequest& WithDeviceSerialNumber(Aws::String&& value) { SetDeviceSerialNumber(std::move(value)); return *this;} /** *

The serial number of the dongle.

*/ inline StartConnectionRequest& WithDeviceSerialNumber(const char* value) { SetDeviceSerialNumber(value); return *this;} /** *

The ID of the Outpost server.

*/ inline const Aws::String& GetAssetId() const{ return m_assetId; } /** *

The ID of the Outpost server.

*/ inline bool AssetIdHasBeenSet() const { return m_assetIdHasBeenSet; } /** *

The ID of the Outpost server.

*/ inline void SetAssetId(const Aws::String& value) { m_assetIdHasBeenSet = true; m_assetId = value; } /** *

The ID of the Outpost server.

*/ inline void SetAssetId(Aws::String&& value) { m_assetIdHasBeenSet = true; m_assetId = std::move(value); } /** *

The ID of the Outpost server.

*/ inline void SetAssetId(const char* value) { m_assetIdHasBeenSet = true; m_assetId.assign(value); } /** *

The ID of the Outpost server.

*/ inline StartConnectionRequest& WithAssetId(const Aws::String& value) { SetAssetId(value); return *this;} /** *

The ID of the Outpost server.

*/ inline StartConnectionRequest& WithAssetId(Aws::String&& value) { SetAssetId(std::move(value)); return *this;} /** *

The ID of the Outpost server.

*/ inline StartConnectionRequest& WithAssetId(const char* value) { SetAssetId(value); return *this;} /** *

The public key of the client.

*/ inline const Aws::String& GetClientPublicKey() const{ return m_clientPublicKey; } /** *

The public key of the client.

*/ inline bool ClientPublicKeyHasBeenSet() const { return m_clientPublicKeyHasBeenSet; } /** *

The public key of the client.

*/ inline void SetClientPublicKey(const Aws::String& value) { m_clientPublicKeyHasBeenSet = true; m_clientPublicKey = value; } /** *

The public key of the client.

*/ inline void SetClientPublicKey(Aws::String&& value) { m_clientPublicKeyHasBeenSet = true; m_clientPublicKey = std::move(value); } /** *

The public key of the client.

*/ inline void SetClientPublicKey(const char* value) { m_clientPublicKeyHasBeenSet = true; m_clientPublicKey.assign(value); } /** *

The public key of the client.

*/ inline StartConnectionRequest& WithClientPublicKey(const Aws::String& value) { SetClientPublicKey(value); return *this;} /** *

The public key of the client.

*/ inline StartConnectionRequest& WithClientPublicKey(Aws::String&& value) { SetClientPublicKey(std::move(value)); return *this;} /** *

The public key of the client.

*/ inline StartConnectionRequest& WithClientPublicKey(const char* value) { SetClientPublicKey(value); return *this;} /** *

The device index of the network interface on the Outpost server.

*/ inline int GetNetworkInterfaceDeviceIndex() const{ return m_networkInterfaceDeviceIndex; } /** *

The device index of the network interface on the Outpost server.

*/ inline bool NetworkInterfaceDeviceIndexHasBeenSet() const { return m_networkInterfaceDeviceIndexHasBeenSet; } /** *

The device index of the network interface on the Outpost server.

*/ inline void SetNetworkInterfaceDeviceIndex(int value) { m_networkInterfaceDeviceIndexHasBeenSet = true; m_networkInterfaceDeviceIndex = value; } /** *

The device index of the network interface on the Outpost server.

*/ inline StartConnectionRequest& WithNetworkInterfaceDeviceIndex(int value) { SetNetworkInterfaceDeviceIndex(value); return *this;} private: Aws::String m_deviceSerialNumber; bool m_deviceSerialNumberHasBeenSet = false; Aws::String m_assetId; bool m_assetIdHasBeenSet = false; Aws::String m_clientPublicKey; bool m_clientPublicKeyHasBeenSet = false; int m_networkInterfaceDeviceIndex; bool m_networkInterfaceDeviceIndexHasBeenSet = false; }; } // namespace Model } // namespace Outposts } // namespace Aws