AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
NetworkInterfaceAttachment.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ec2/model/AttachmentStatus.h>
12#include <aws/ec2/model/AttachmentEnaSrdSpecification.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2
25{
26namespace Model
27{
28
35 {
36 public:
40
41 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::Utils::DateTime& GetAttachTime() const{ return m_attachTime; }
50 inline bool AttachTimeHasBeenSet() const { return m_attachTimeHasBeenSet; }
51 inline void SetAttachTime(const Aws::Utils::DateTime& value) { m_attachTimeHasBeenSet = true; m_attachTime = value; }
52 inline void SetAttachTime(Aws::Utils::DateTime&& value) { m_attachTimeHasBeenSet = true; m_attachTime = std::move(value); }
53 inline NetworkInterfaceAttachment& WithAttachTime(const Aws::Utils::DateTime& value) { SetAttachTime(value); return *this;}
54 inline NetworkInterfaceAttachment& WithAttachTime(Aws::Utils::DateTime&& value) { SetAttachTime(std::move(value)); return *this;}
56
58
61 inline const Aws::String& GetAttachmentId() const{ return m_attachmentId; }
62 inline bool AttachmentIdHasBeenSet() const { return m_attachmentIdHasBeenSet; }
63 inline void SetAttachmentId(const Aws::String& value) { m_attachmentIdHasBeenSet = true; m_attachmentId = value; }
64 inline void SetAttachmentId(Aws::String&& value) { m_attachmentIdHasBeenSet = true; m_attachmentId = std::move(value); }
65 inline void SetAttachmentId(const char* value) { m_attachmentIdHasBeenSet = true; m_attachmentId.assign(value); }
66 inline NetworkInterfaceAttachment& WithAttachmentId(const Aws::String& value) { SetAttachmentId(value); return *this;}
67 inline NetworkInterfaceAttachment& WithAttachmentId(Aws::String&& value) { SetAttachmentId(std::move(value)); return *this;}
68 inline NetworkInterfaceAttachment& WithAttachmentId(const char* value) { SetAttachmentId(value); return *this;}
70
72
76 inline bool GetDeleteOnTermination() const{ return m_deleteOnTermination; }
77 inline bool DeleteOnTerminationHasBeenSet() const { return m_deleteOnTerminationHasBeenSet; }
78 inline void SetDeleteOnTermination(bool value) { m_deleteOnTerminationHasBeenSet = true; m_deleteOnTermination = value; }
81
83
86 inline int GetDeviceIndex() const{ return m_deviceIndex; }
87 inline bool DeviceIndexHasBeenSet() const { return m_deviceIndexHasBeenSet; }
88 inline void SetDeviceIndex(int value) { m_deviceIndexHasBeenSet = true; m_deviceIndex = value; }
89 inline NetworkInterfaceAttachment& WithDeviceIndex(int value) { SetDeviceIndex(value); return *this;}
91
93
96 inline int GetNetworkCardIndex() const{ return m_networkCardIndex; }
97 inline bool NetworkCardIndexHasBeenSet() const { return m_networkCardIndexHasBeenSet; }
98 inline void SetNetworkCardIndex(int value) { m_networkCardIndexHasBeenSet = true; m_networkCardIndex = value; }
99 inline NetworkInterfaceAttachment& WithNetworkCardIndex(int value) { SetNetworkCardIndex(value); return *this;}
101
103
106 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
107 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
108 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
109 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
110 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
111 inline NetworkInterfaceAttachment& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
112 inline NetworkInterfaceAttachment& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
113 inline NetworkInterfaceAttachment& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
115
117
120 inline const Aws::String& GetInstanceOwnerId() const{ return m_instanceOwnerId; }
121 inline bool InstanceOwnerIdHasBeenSet() const { return m_instanceOwnerIdHasBeenSet; }
122 inline void SetInstanceOwnerId(const Aws::String& value) { m_instanceOwnerIdHasBeenSet = true; m_instanceOwnerId = value; }
123 inline void SetInstanceOwnerId(Aws::String&& value) { m_instanceOwnerIdHasBeenSet = true; m_instanceOwnerId = std::move(value); }
124 inline void SetInstanceOwnerId(const char* value) { m_instanceOwnerIdHasBeenSet = true; m_instanceOwnerId.assign(value); }
126 inline NetworkInterfaceAttachment& WithInstanceOwnerId(Aws::String&& value) { SetInstanceOwnerId(std::move(value)); return *this;}
127 inline NetworkInterfaceAttachment& WithInstanceOwnerId(const char* value) { SetInstanceOwnerId(value); return *this;}
129
131
134 inline const AttachmentStatus& GetStatus() const{ return m_status; }
135 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
136 inline void SetStatus(const AttachmentStatus& value) { m_statusHasBeenSet = true; m_status = value; }
137 inline void SetStatus(AttachmentStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
138 inline NetworkInterfaceAttachment& WithStatus(const AttachmentStatus& value) { SetStatus(value); return *this;}
139 inline NetworkInterfaceAttachment& WithStatus(AttachmentStatus&& value) { SetStatus(std::move(value)); return *this;}
141
143
147 inline const AttachmentEnaSrdSpecification& GetEnaSrdSpecification() const{ return m_enaSrdSpecification; }
148 inline bool EnaSrdSpecificationHasBeenSet() const { return m_enaSrdSpecificationHasBeenSet; }
149 inline void SetEnaSrdSpecification(const AttachmentEnaSrdSpecification& value) { m_enaSrdSpecificationHasBeenSet = true; m_enaSrdSpecification = value; }
150 inline void SetEnaSrdSpecification(AttachmentEnaSrdSpecification&& value) { m_enaSrdSpecificationHasBeenSet = true; m_enaSrdSpecification = std::move(value); }
154 private:
155
156 Aws::Utils::DateTime m_attachTime;
157 bool m_attachTimeHasBeenSet = false;
158
159 Aws::String m_attachmentId;
160 bool m_attachmentIdHasBeenSet = false;
161
162 bool m_deleteOnTermination;
163 bool m_deleteOnTerminationHasBeenSet = false;
164
165 int m_deviceIndex;
166 bool m_deviceIndexHasBeenSet = false;
167
168 int m_networkCardIndex;
169 bool m_networkCardIndexHasBeenSet = false;
170
171 Aws::String m_instanceId;
172 bool m_instanceIdHasBeenSet = false;
173
174 Aws::String m_instanceOwnerId;
175 bool m_instanceOwnerIdHasBeenSet = false;
176
177 AttachmentStatus m_status;
178 bool m_statusHasBeenSet = false;
179
180 AttachmentEnaSrdSpecification m_enaSrdSpecification;
181 bool m_enaSrdSpecificationHasBeenSet = false;
182 };
183
184} // namespace Model
185} // namespace EC2
186} // namespace Aws
AWS_EC2_API NetworkInterfaceAttachment & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
NetworkInterfaceAttachment & WithInstanceId(const char *value)
NetworkInterfaceAttachment & WithStatus(const AttachmentStatus &value)
NetworkInterfaceAttachment & WithStatus(AttachmentStatus &&value)
NetworkInterfaceAttachment & WithInstanceOwnerId(const Aws::String &value)
NetworkInterfaceAttachment & WithDeviceIndex(int value)
NetworkInterfaceAttachment & WithInstanceOwnerId(Aws::String &&value)
const Aws::Utils::DateTime & GetAttachTime() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetEnaSrdSpecification(AttachmentEnaSrdSpecification &&value)
void SetEnaSrdSpecification(const AttachmentEnaSrdSpecification &value)
NetworkInterfaceAttachment & WithAttachTime(const Aws::Utils::DateTime &value)
NetworkInterfaceAttachment & WithInstanceId(Aws::String &&value)
const AttachmentEnaSrdSpecification & GetEnaSrdSpecification() const
NetworkInterfaceAttachment & WithDeleteOnTermination(bool value)
NetworkInterfaceAttachment & WithInstanceId(const Aws::String &value)
NetworkInterfaceAttachment & WithEnaSrdSpecification(AttachmentEnaSrdSpecification &&value)
NetworkInterfaceAttachment & WithNetworkCardIndex(int value)
AWS_EC2_API NetworkInterfaceAttachment(const Aws::Utils::Xml::XmlNode &xmlNode)
NetworkInterfaceAttachment & WithAttachmentId(const Aws::String &value)
NetworkInterfaceAttachment & WithAttachmentId(Aws::String &&value)
void SetAttachTime(const Aws::Utils::DateTime &value)
NetworkInterfaceAttachment & WithAttachTime(Aws::Utils::DateTime &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
NetworkInterfaceAttachment & WithInstanceOwnerId(const char *value)
NetworkInterfaceAttachment & WithAttachmentId(const char *value)
NetworkInterfaceAttachment & WithEnaSrdSpecification(const AttachmentEnaSrdSpecification &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream