AWS SDK for C++

AWS SDK for C++ Version 1.11.710

Loading...
Searching...
No Matches
StartConnectionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/outposts/OutpostsRequest.h>
9#include <aws/outposts/Outposts_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Outposts {
15namespace Model {
16
20 public:
21 AWS_OUTPOSTS_API StartConnectionRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "StartConnection"; }
28
29 AWS_OUTPOSTS_API Aws::String SerializePayload() const override;
30
32
35 inline const Aws::String& GetDeviceSerialNumber() const { return m_deviceSerialNumber; }
36 inline bool DeviceSerialNumberHasBeenSet() const { return m_deviceSerialNumberHasBeenSet; }
37 template <typename DeviceSerialNumberT = Aws::String>
38 void SetDeviceSerialNumber(DeviceSerialNumberT&& value) {
39 m_deviceSerialNumberHasBeenSet = true;
40 m_deviceSerialNumber = std::forward<DeviceSerialNumberT>(value);
41 }
42 template <typename DeviceSerialNumberT = Aws::String>
43 StartConnectionRequest& WithDeviceSerialNumber(DeviceSerialNumberT&& value) {
44 SetDeviceSerialNumber(std::forward<DeviceSerialNumberT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetAssetId() const { return m_assetId; }
54 inline bool AssetIdHasBeenSet() const { return m_assetIdHasBeenSet; }
55 template <typename AssetIdT = Aws::String>
56 void SetAssetId(AssetIdT&& value) {
57 m_assetIdHasBeenSet = true;
58 m_assetId = std::forward<AssetIdT>(value);
59 }
60 template <typename AssetIdT = Aws::String>
62 SetAssetId(std::forward<AssetIdT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetClientPublicKey() const { return m_clientPublicKey; }
72 inline bool ClientPublicKeyHasBeenSet() const { return m_clientPublicKeyHasBeenSet; }
73 template <typename ClientPublicKeyT = Aws::String>
74 void SetClientPublicKey(ClientPublicKeyT&& value) {
75 m_clientPublicKeyHasBeenSet = true;
76 m_clientPublicKey = std::forward<ClientPublicKeyT>(value);
77 }
78 template <typename ClientPublicKeyT = Aws::String>
79 StartConnectionRequest& WithClientPublicKey(ClientPublicKeyT&& value) {
80 SetClientPublicKey(std::forward<ClientPublicKeyT>(value));
81 return *this;
82 }
84
86
89 inline int GetNetworkInterfaceDeviceIndex() const { return m_networkInterfaceDeviceIndex; }
90 inline bool NetworkInterfaceDeviceIndexHasBeenSet() const { return m_networkInterfaceDeviceIndexHasBeenSet; }
91 inline void SetNetworkInterfaceDeviceIndex(int value) {
92 m_networkInterfaceDeviceIndexHasBeenSet = true;
93 m_networkInterfaceDeviceIndex = value;
94 }
97 return *this;
98 }
100 private:
101 Aws::String m_deviceSerialNumber;
102
103 Aws::String m_assetId;
104
105 Aws::String m_clientPublicKey;
106
107 int m_networkInterfaceDeviceIndex{0};
108 bool m_deviceSerialNumberHasBeenSet = false;
109 bool m_assetIdHasBeenSet = false;
110 bool m_clientPublicKeyHasBeenSet = false;
111 bool m_networkInterfaceDeviceIndexHasBeenSet = false;
112};
113
114} // namespace Model
115} // namespace Outposts
116} // namespace Aws
StartConnectionRequest & WithClientPublicKey(ClientPublicKeyT &&value)
StartConnectionRequest & WithAssetId(AssetIdT &&value)
StartConnectionRequest & WithDeviceSerialNumber(DeviceSerialNumberT &&value)
virtual const char * GetServiceRequestName() const override
AWS_OUTPOSTS_API Aws::String SerializePayload() const override
StartConnectionRequest & WithNetworkInterfaceDeviceIndex(int value)
void SetDeviceSerialNumber(DeviceSerialNumberT &&value)
AWS_OUTPOSTS_API StartConnectionRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String