AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
InstanceSecondaryInterfaceAttachment.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
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2 {
22namespace Model {
23
31 public:
32 AWS_EC2_API InstanceSecondaryInterfaceAttachment() = 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
81 inline bool GetDeleteOnTermination() const { return m_deleteOnTermination; }
82 inline bool DeleteOnTerminationHasBeenSet() const { return m_deleteOnTerminationHasBeenSet; }
83 inline void SetDeleteOnTermination(bool value) {
84 m_deleteOnTerminationHasBeenSet = true;
85 m_deleteOnTermination = value;
86 }
89 return *this;
90 }
92
94
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 private:
141 Aws::Utils::DateTime m_attachTime{};
142
143 Aws::String m_attachmentId;
144
145 bool m_deleteOnTermination{false};
146
147 int m_deviceIndex{0};
148
150
151 int m_networkCardIndex{0};
152 bool m_attachTimeHasBeenSet = false;
153 bool m_attachmentIdHasBeenSet = false;
154 bool m_deleteOnTerminationHasBeenSet = false;
155 bool m_deviceIndexHasBeenSet = false;
156 bool m_statusHasBeenSet = false;
157 bool m_networkCardIndexHasBeenSet = false;
158};
159
160} // namespace Model
161} // namespace EC2
162} // namespace Aws
InstanceSecondaryInterfaceAttachment & WithStatus(AttachmentStatus value)
AWS_EC2_API InstanceSecondaryInterfaceAttachment & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
InstanceSecondaryInterfaceAttachment & WithDeviceIndex(int value)
AWS_EC2_API InstanceSecondaryInterfaceAttachment(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceSecondaryInterfaceAttachment & WithAttachmentId(AttachmentIdT &&value)
InstanceSecondaryInterfaceAttachment & WithAttachTime(AttachTimeT &&value)
InstanceSecondaryInterfaceAttachment & WithDeleteOnTermination(bool value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
InstanceSecondaryInterfaceAttachment & WithNetworkCardIndex(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream