AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
InstanceNetworkInterfaceAttachment.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/AttachmentStatus.h>
12#include <aws/ec2/model/InstanceAttachmentEnaSrdSpecification.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 InstanceNetworkInterfaceAttachment() = 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
97 inline int GetDeviceIndex() const { return m_deviceIndex; }
98 inline bool DeviceIndexHasBeenSet() const { return m_deviceIndexHasBeenSet; }
99 inline void SetDeviceIndex(int value) {
100 m_deviceIndexHasBeenSet = true;
101 m_deviceIndex = value;
102 }
104 SetDeviceIndex(value);
105 return *this;
106 }
108
110
113 inline AttachmentStatus GetStatus() const { return m_status; }
114 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
115 inline void SetStatus(AttachmentStatus value) {
116 m_statusHasBeenSet = true;
117 m_status = value;
118 }
120 SetStatus(value);
121 return *this;
122 }
124
126
129 inline int GetNetworkCardIndex() const { return m_networkCardIndex; }
130 inline bool NetworkCardIndexHasBeenSet() const { return m_networkCardIndexHasBeenSet; }
131 inline void SetNetworkCardIndex(int value) {
132 m_networkCardIndexHasBeenSet = true;
133 m_networkCardIndex = value;
134 }
136 SetNetworkCardIndex(value);
137 return *this;
138 }
140
142
146 inline const InstanceAttachmentEnaSrdSpecification& GetEnaSrdSpecification() const { return m_enaSrdSpecification; }
147 inline bool EnaSrdSpecificationHasBeenSet() const { return m_enaSrdSpecificationHasBeenSet; }
148 template <typename EnaSrdSpecificationT = InstanceAttachmentEnaSrdSpecification>
149 void SetEnaSrdSpecification(EnaSrdSpecificationT&& value) {
150 m_enaSrdSpecificationHasBeenSet = true;
151 m_enaSrdSpecification = std::forward<EnaSrdSpecificationT>(value);
152 }
153 template <typename EnaSrdSpecificationT = InstanceAttachmentEnaSrdSpecification>
155 SetEnaSrdSpecification(std::forward<EnaSrdSpecificationT>(value));
156 return *this;
157 }
159
161
164 inline int GetEnaQueueCount() const { return m_enaQueueCount; }
165 inline bool EnaQueueCountHasBeenSet() const { return m_enaQueueCountHasBeenSet; }
166 inline void SetEnaQueueCount(int value) {
167 m_enaQueueCountHasBeenSet = true;
168 m_enaQueueCount = value;
169 }
171 SetEnaQueueCount(value);
172 return *this;
173 }
175 private:
176 Aws::Utils::DateTime m_attachTime{};
177
178 Aws::String m_attachmentId;
179
180 bool m_deleteOnTermination{false};
181
182 int m_deviceIndex{0};
183
185
186 int m_networkCardIndex{0};
187
188 InstanceAttachmentEnaSrdSpecification m_enaSrdSpecification;
189
190 int m_enaQueueCount{0};
191 bool m_attachTimeHasBeenSet = false;
192 bool m_attachmentIdHasBeenSet = false;
193 bool m_deleteOnTerminationHasBeenSet = false;
194 bool m_deviceIndexHasBeenSet = false;
195 bool m_statusHasBeenSet = false;
196 bool m_networkCardIndexHasBeenSet = false;
197 bool m_enaSrdSpecificationHasBeenSet = false;
198 bool m_enaQueueCountHasBeenSet = false;
199};
200
201} // namespace Model
202} // namespace EC2
203} // namespace Aws
const InstanceAttachmentEnaSrdSpecification & GetEnaSrdSpecification() const
InstanceNetworkInterfaceAttachment & WithAttachTime(AttachTimeT &&value)
AWS_EC2_API InstanceNetworkInterfaceAttachment(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API InstanceNetworkInterfaceAttachment & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceNetworkInterfaceAttachment & WithAttachmentId(AttachmentIdT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
InstanceNetworkInterfaceAttachment & WithEnaSrdSpecification(EnaSrdSpecificationT &&value)
InstanceNetworkInterfaceAttachment & WithDeviceIndex(int value)
InstanceNetworkInterfaceAttachment & WithNetworkCardIndex(int value)
InstanceNetworkInterfaceAttachment & WithEnaQueueCount(int value)
InstanceNetworkInterfaceAttachment & WithDeleteOnTermination(bool value)
InstanceNetworkInterfaceAttachment & WithStatus(AttachmentStatus value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream