AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
NetworkInterfaceAttachment.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/AttachmentEnaSrdSpecification.h>
12#include <aws/ec2/model/AttachmentStatus.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Xml {
19class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2 {
23namespace Model {
24
31 public:
32 AWS_EC2_API NetworkInterfaceAttachment() = default;
35
36 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
43 inline const Aws::Utils::DateTime& GetAttachTime() const { return m_attachTime; }
44 inline bool AttachTimeHasBeenSet() const { return m_attachTimeHasBeenSet; }
45 template <typename AttachTimeT = Aws::Utils::DateTime>
46 void SetAttachTime(AttachTimeT&& value) {
47 m_attachTimeHasBeenSet = true;
48 m_attachTime = std::forward<AttachTimeT>(value);
49 }
50 template <typename AttachTimeT = Aws::Utils::DateTime>
52 SetAttachTime(std::forward<AttachTimeT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetAttachmentId() const { return m_attachmentId; }
62 inline bool AttachmentIdHasBeenSet() const { return m_attachmentIdHasBeenSet; }
63 template <typename AttachmentIdT = Aws::String>
64 void SetAttachmentId(AttachmentIdT&& value) {
65 m_attachmentIdHasBeenSet = true;
66 m_attachmentId = std::forward<AttachmentIdT>(value);
67 }
68 template <typename AttachmentIdT = Aws::String>
70 SetAttachmentId(std::forward<AttachmentIdT>(value));
71 return *this;
72 }
74
76
80 inline bool GetDeleteOnTermination() const { return m_deleteOnTermination; }
81 inline bool DeleteOnTerminationHasBeenSet() const { return m_deleteOnTerminationHasBeenSet; }
82 inline void SetDeleteOnTermination(bool value) {
83 m_deleteOnTerminationHasBeenSet = true;
84 m_deleteOnTermination = value;
85 }
88 return *this;
89 }
91
93
96 inline int GetDeviceIndex() const { return m_deviceIndex; }
97 inline bool DeviceIndexHasBeenSet() const { return m_deviceIndexHasBeenSet; }
98 inline void SetDeviceIndex(int value) {
99 m_deviceIndexHasBeenSet = true;
100 m_deviceIndex = value;
101 }
103 SetDeviceIndex(value);
104 return *this;
105 }
107
109
112 inline int GetNetworkCardIndex() const { return m_networkCardIndex; }
113 inline bool NetworkCardIndexHasBeenSet() const { return m_networkCardIndexHasBeenSet; }
114 inline void SetNetworkCardIndex(int value) {
115 m_networkCardIndexHasBeenSet = true;
116 m_networkCardIndex = value;
117 }
119 SetNetworkCardIndex(value);
120 return *this;
121 }
123
125
128 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
129 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
130 template <typename InstanceIdT = Aws::String>
131 void SetInstanceId(InstanceIdT&& value) {
132 m_instanceIdHasBeenSet = true;
133 m_instanceId = std::forward<InstanceIdT>(value);
134 }
135 template <typename InstanceIdT = Aws::String>
137 SetInstanceId(std::forward<InstanceIdT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::String& GetInstanceOwnerId() const { return m_instanceOwnerId; }
147 inline bool InstanceOwnerIdHasBeenSet() const { return m_instanceOwnerIdHasBeenSet; }
148 template <typename InstanceOwnerIdT = Aws::String>
149 void SetInstanceOwnerId(InstanceOwnerIdT&& value) {
150 m_instanceOwnerIdHasBeenSet = true;
151 m_instanceOwnerId = std::forward<InstanceOwnerIdT>(value);
152 }
153 template <typename InstanceOwnerIdT = Aws::String>
155 SetInstanceOwnerId(std::forward<InstanceOwnerIdT>(value));
156 return *this;
157 }
159
161
164 inline AttachmentStatus GetStatus() const { return m_status; }
165 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
166 inline void SetStatus(AttachmentStatus value) {
167 m_statusHasBeenSet = true;
168 m_status = value;
169 }
171 SetStatus(value);
172 return *this;
173 }
175
177
181 inline const AttachmentEnaSrdSpecification& GetEnaSrdSpecification() const { return m_enaSrdSpecification; }
182 inline bool EnaSrdSpecificationHasBeenSet() const { return m_enaSrdSpecificationHasBeenSet; }
183 template <typename EnaSrdSpecificationT = AttachmentEnaSrdSpecification>
184 void SetEnaSrdSpecification(EnaSrdSpecificationT&& value) {
185 m_enaSrdSpecificationHasBeenSet = true;
186 m_enaSrdSpecification = std::forward<EnaSrdSpecificationT>(value);
187 }
188 template <typename EnaSrdSpecificationT = AttachmentEnaSrdSpecification>
190 SetEnaSrdSpecification(std::forward<EnaSrdSpecificationT>(value));
191 return *this;
192 }
194
196
199 inline int GetEnaQueueCount() const { return m_enaQueueCount; }
200 inline bool EnaQueueCountHasBeenSet() const { return m_enaQueueCountHasBeenSet; }
201 inline void SetEnaQueueCount(int value) {
202 m_enaQueueCountHasBeenSet = true;
203 m_enaQueueCount = value;
204 }
206 SetEnaQueueCount(value);
207 return *this;
208 }
210 private:
211 Aws::Utils::DateTime m_attachTime{};
212
213 Aws::String m_attachmentId;
214
215 bool m_deleteOnTermination{false};
216
217 int m_deviceIndex{0};
218
219 int m_networkCardIndex{0};
220
221 Aws::String m_instanceId;
222
223 Aws::String m_instanceOwnerId;
224
226
227 AttachmentEnaSrdSpecification m_enaSrdSpecification;
228
229 int m_enaQueueCount{0};
230 bool m_attachTimeHasBeenSet = false;
231 bool m_attachmentIdHasBeenSet = false;
232 bool m_deleteOnTerminationHasBeenSet = false;
233 bool m_deviceIndexHasBeenSet = false;
234 bool m_networkCardIndexHasBeenSet = false;
235 bool m_instanceIdHasBeenSet = false;
236 bool m_instanceOwnerIdHasBeenSet = false;
237 bool m_statusHasBeenSet = false;
238 bool m_enaSrdSpecificationHasBeenSet = false;
239 bool m_enaQueueCountHasBeenSet = false;
240};
241
242} // namespace Model
243} // namespace EC2
244} // namespace Aws
AWS_EC2_API NetworkInterfaceAttachment & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
NetworkInterfaceAttachment & WithStatus(AttachmentStatus value)
NetworkInterfaceAttachment & WithAttachTime(AttachTimeT &&value)
NetworkInterfaceAttachment & WithDeviceIndex(int value)
NetworkInterfaceAttachment & WithInstanceOwnerId(InstanceOwnerIdT &&value)
const Aws::Utils::DateTime & GetAttachTime() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const AttachmentEnaSrdSpecification & GetEnaSrdSpecification() const
NetworkInterfaceAttachment & WithDeleteOnTermination(bool value)
NetworkInterfaceAttachment & WithEnaSrdSpecification(EnaSrdSpecificationT &&value)
NetworkInterfaceAttachment & WithNetworkCardIndex(int value)
void SetEnaSrdSpecification(EnaSrdSpecificationT &&value)
AWS_EC2_API NetworkInterfaceAttachment(const Aws::Utils::Xml::XmlNode &xmlNode)
NetworkInterfaceAttachment & WithEnaQueueCount(int value)
NetworkInterfaceAttachment & WithAttachmentId(AttachmentIdT &&value)
NetworkInterfaceAttachment & WithInstanceId(InstanceIdT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API NetworkInterfaceAttachment()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream