AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
InstanceNetworkInterfaceAttachment.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/InstanceAttachmentEnaSrdSpecification.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:
37 AWS_EC2_API InstanceNetworkInterfaceAttachment() = default;
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 template<typename AttachTimeT = Aws::Utils::DateTime>
52 void SetAttachTime(AttachTimeT&& value) { m_attachTimeHasBeenSet = true; m_attachTime = std::forward<AttachTimeT>(value); }
53 template<typename AttachTimeT = Aws::Utils::DateTime>
54 InstanceNetworkInterfaceAttachment& WithAttachTime(AttachTimeT&& value) { SetAttachTime(std::forward<AttachTimeT>(value)); return *this;}
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) { m_attachmentIdHasBeenSet = true; m_attachmentId = std::forward<AttachmentIdT>(value); }
65 template<typename AttachmentIdT = Aws::String>
66 InstanceNetworkInterfaceAttachment& WithAttachmentId(AttachmentIdT&& value) { SetAttachmentId(std::forward<AttachmentIdT>(value)); return *this;}
68
70
74 inline bool GetDeleteOnTermination() const { return m_deleteOnTermination; }
75 inline bool DeleteOnTerminationHasBeenSet() const { return m_deleteOnTerminationHasBeenSet; }
76 inline void SetDeleteOnTermination(bool value) { m_deleteOnTerminationHasBeenSet = true; m_deleteOnTermination = value; }
79
81
85 inline int GetDeviceIndex() const { return m_deviceIndex; }
86 inline bool DeviceIndexHasBeenSet() const { return m_deviceIndexHasBeenSet; }
87 inline void SetDeviceIndex(int value) { m_deviceIndexHasBeenSet = true; m_deviceIndex = value; }
88 inline InstanceNetworkInterfaceAttachment& WithDeviceIndex(int value) { SetDeviceIndex(value); return *this;}
90
92
95 inline AttachmentStatus GetStatus() const { return m_status; }
96 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
97 inline void SetStatus(AttachmentStatus value) { m_statusHasBeenSet = true; m_status = value; }
100
102
105 inline int GetNetworkCardIndex() const { return m_networkCardIndex; }
106 inline bool NetworkCardIndexHasBeenSet() const { return m_networkCardIndexHasBeenSet; }
107 inline void SetNetworkCardIndex(int value) { m_networkCardIndexHasBeenSet = true; m_networkCardIndex = value; }
110
112
116 inline const InstanceAttachmentEnaSrdSpecification& GetEnaSrdSpecification() const { return m_enaSrdSpecification; }
117 inline bool EnaSrdSpecificationHasBeenSet() const { return m_enaSrdSpecificationHasBeenSet; }
118 template<typename EnaSrdSpecificationT = InstanceAttachmentEnaSrdSpecification>
119 void SetEnaSrdSpecification(EnaSrdSpecificationT&& value) { m_enaSrdSpecificationHasBeenSet = true; m_enaSrdSpecification = std::forward<EnaSrdSpecificationT>(value); }
120 template<typename EnaSrdSpecificationT = InstanceAttachmentEnaSrdSpecification>
121 InstanceNetworkInterfaceAttachment& WithEnaSrdSpecification(EnaSrdSpecificationT&& value) { SetEnaSrdSpecification(std::forward<EnaSrdSpecificationT>(value)); return *this;}
123
125
128 inline int GetEnaQueueCount() const { return m_enaQueueCount; }
129 inline bool EnaQueueCountHasBeenSet() const { return m_enaQueueCountHasBeenSet; }
130 inline void SetEnaQueueCount(int value) { m_enaQueueCountHasBeenSet = true; m_enaQueueCount = value; }
133 private:
134
135 Aws::Utils::DateTime m_attachTime{};
136 bool m_attachTimeHasBeenSet = false;
137
138 Aws::String m_attachmentId;
139 bool m_attachmentIdHasBeenSet = false;
140
141 bool m_deleteOnTermination{false};
142 bool m_deleteOnTerminationHasBeenSet = false;
143
144 int m_deviceIndex{0};
145 bool m_deviceIndexHasBeenSet = false;
146
148 bool m_statusHasBeenSet = false;
149
150 int m_networkCardIndex{0};
151 bool m_networkCardIndexHasBeenSet = false;
152
153 InstanceAttachmentEnaSrdSpecification m_enaSrdSpecification;
154 bool m_enaSrdSpecificationHasBeenSet = false;
155
156 int m_enaQueueCount{0};
157 bool m_enaQueueCountHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace EC2
162} // 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