AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
AttachNetworkInterfaceRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/EnaSrdSpecification.h>
11
12#include <utility>
13
14namespace Aws {
15namespace EC2 {
16namespace Model {
17
25 public:
26 AWS_EC2_API AttachNetworkInterfaceRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "AttachNetworkInterface"; }
33
34 AWS_EC2_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
38
39 public:
41
46 inline int GetNetworkCardIndex() const { return m_networkCardIndex; }
47 inline bool NetworkCardIndexHasBeenSet() const { return m_networkCardIndexHasBeenSet; }
48 inline void SetNetworkCardIndex(int value) {
49 m_networkCardIndexHasBeenSet = true;
50 m_networkCardIndex = value;
51 }
54 return *this;
55 }
57
59
63 inline const EnaSrdSpecification& GetEnaSrdSpecification() const { return m_enaSrdSpecification; }
64 inline bool EnaSrdSpecificationHasBeenSet() const { return m_enaSrdSpecificationHasBeenSet; }
65 template <typename EnaSrdSpecificationT = EnaSrdSpecification>
66 void SetEnaSrdSpecification(EnaSrdSpecificationT&& value) {
67 m_enaSrdSpecificationHasBeenSet = true;
68 m_enaSrdSpecification = std::forward<EnaSrdSpecificationT>(value);
69 }
70 template <typename EnaSrdSpecificationT = EnaSrdSpecification>
72 SetEnaSrdSpecification(std::forward<EnaSrdSpecificationT>(value));
73 return *this;
74 }
76
78
81 inline int GetEnaQueueCount() const { return m_enaQueueCount; }
82 inline bool EnaQueueCountHasBeenSet() const { return m_enaQueueCountHasBeenSet; }
83 inline void SetEnaQueueCount(int value) {
84 m_enaQueueCountHasBeenSet = true;
85 m_enaQueueCount = value;
86 }
88 SetEnaQueueCount(value);
89 return *this;
90 }
92
94
100 inline bool GetDryRun() const { return m_dryRun; }
101 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
102 inline void SetDryRun(bool value) {
103 m_dryRunHasBeenSet = true;
104 m_dryRun = value;
105 }
107 SetDryRun(value);
108 return *this;
109 }
111
113
116 inline const Aws::String& GetNetworkInterfaceId() const { return m_networkInterfaceId; }
117 inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
118 template <typename NetworkInterfaceIdT = Aws::String>
119 void SetNetworkInterfaceId(NetworkInterfaceIdT&& value) {
120 m_networkInterfaceIdHasBeenSet = true;
121 m_networkInterfaceId = std::forward<NetworkInterfaceIdT>(value);
122 }
123 template <typename NetworkInterfaceIdT = Aws::String>
125 SetNetworkInterfaceId(std::forward<NetworkInterfaceIdT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
135 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
136 template <typename InstanceIdT = Aws::String>
137 void SetInstanceId(InstanceIdT&& value) {
138 m_instanceIdHasBeenSet = true;
139 m_instanceId = std::forward<InstanceIdT>(value);
140 }
141 template <typename InstanceIdT = Aws::String>
143 SetInstanceId(std::forward<InstanceIdT>(value));
144 return *this;
145 }
147
149
152 inline int GetDeviceIndex() const { return m_deviceIndex; }
153 inline bool DeviceIndexHasBeenSet() const { return m_deviceIndexHasBeenSet; }
154 inline void SetDeviceIndex(int value) {
155 m_deviceIndexHasBeenSet = true;
156 m_deviceIndex = value;
157 }
159 SetDeviceIndex(value);
160 return *this;
161 }
163 private:
164 int m_networkCardIndex{0};
165
166 EnaSrdSpecification m_enaSrdSpecification;
167
168 int m_enaQueueCount{0};
169
170 bool m_dryRun{false};
171
172 Aws::String m_networkInterfaceId;
173
174 Aws::String m_instanceId;
175
176 int m_deviceIndex{0};
177 bool m_networkCardIndexHasBeenSet = false;
178 bool m_enaSrdSpecificationHasBeenSet = false;
179 bool m_enaQueueCountHasBeenSet = false;
180 bool m_dryRunHasBeenSet = false;
181 bool m_networkInterfaceIdHasBeenSet = false;
182 bool m_instanceIdHasBeenSet = false;
183 bool m_deviceIndexHasBeenSet = false;
184};
185
186} // namespace Model
187} // namespace EC2
188} // namespace Aws
AttachNetworkInterfaceRequest & WithDryRun(bool value)
AWS_EC2_API Aws::String SerializePayload() const override
AttachNetworkInterfaceRequest & WithNetworkInterfaceId(NetworkInterfaceIdT &&value)
AttachNetworkInterfaceRequest & WithDeviceIndex(int value)
virtual const char * GetServiceRequestName() const override
AttachNetworkInterfaceRequest & WithEnaQueueCount(int value)
AttachNetworkInterfaceRequest & WithInstanceId(InstanceIdT &&value)
AttachNetworkInterfaceRequest & WithNetworkCardIndex(int value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AttachNetworkInterfaceRequest & WithEnaSrdSpecification(EnaSrdSpecificationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String