AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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); }
54 inline InstanceNetworkInterfaceAttachment& 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); }
67 inline InstanceNetworkInterfaceAttachment& WithAttachmentId(Aws::String&& value) { SetAttachmentId(std::move(value)); return *this;}
68 inline InstanceNetworkInterfaceAttachment& 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
87 inline int GetDeviceIndex() const{ return m_deviceIndex; }
88 inline bool DeviceIndexHasBeenSet() const { return m_deviceIndexHasBeenSet; }
89 inline void SetDeviceIndex(int value) { m_deviceIndexHasBeenSet = true; m_deviceIndex = value; }
90 inline InstanceNetworkInterfaceAttachment& WithDeviceIndex(int value) { SetDeviceIndex(value); return *this;}
92
94
97 inline const AttachmentStatus& GetStatus() const{ return m_status; }
98 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
99 inline void SetStatus(const AttachmentStatus& value) { m_statusHasBeenSet = true; m_status = value; }
100 inline void SetStatus(AttachmentStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
101 inline InstanceNetworkInterfaceAttachment& WithStatus(const AttachmentStatus& value) { SetStatus(value); return *this;}
102 inline InstanceNetworkInterfaceAttachment& WithStatus(AttachmentStatus&& value) { SetStatus(std::move(value)); return *this;}
104
106
109 inline int GetNetworkCardIndex() const{ return m_networkCardIndex; }
110 inline bool NetworkCardIndexHasBeenSet() const { return m_networkCardIndexHasBeenSet; }
111 inline void SetNetworkCardIndex(int value) { m_networkCardIndexHasBeenSet = true; m_networkCardIndex = value; }
114
116
120 inline const InstanceAttachmentEnaSrdSpecification& GetEnaSrdSpecification() const{ return m_enaSrdSpecification; }
121 inline bool EnaSrdSpecificationHasBeenSet() const { return m_enaSrdSpecificationHasBeenSet; }
122 inline void SetEnaSrdSpecification(const InstanceAttachmentEnaSrdSpecification& value) { m_enaSrdSpecificationHasBeenSet = true; m_enaSrdSpecification = value; }
123 inline void SetEnaSrdSpecification(InstanceAttachmentEnaSrdSpecification&& value) { m_enaSrdSpecificationHasBeenSet = true; m_enaSrdSpecification = std::move(value); }
127 private:
128
129 Aws::Utils::DateTime m_attachTime;
130 bool m_attachTimeHasBeenSet = false;
131
132 Aws::String m_attachmentId;
133 bool m_attachmentIdHasBeenSet = false;
134
135 bool m_deleteOnTermination;
136 bool m_deleteOnTerminationHasBeenSet = false;
137
138 int m_deviceIndex;
139 bool m_deviceIndexHasBeenSet = false;
140
141 AttachmentStatus m_status;
142 bool m_statusHasBeenSet = false;
143
144 int m_networkCardIndex;
145 bool m_networkCardIndexHasBeenSet = false;
146
147 InstanceAttachmentEnaSrdSpecification m_enaSrdSpecification;
148 bool m_enaSrdSpecificationHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace EC2
153} // namespace Aws
InstanceNetworkInterfaceAttachment & WithStatus(const AttachmentStatus &value)
InstanceNetworkInterfaceAttachment & WithStatus(AttachmentStatus &&value)
const InstanceAttachmentEnaSrdSpecification & GetEnaSrdSpecification() const
InstanceNetworkInterfaceAttachment & WithAttachTime(Aws::Utils::DateTime &&value)
void SetEnaSrdSpecification(InstanceAttachmentEnaSrdSpecification &&value)
AWS_EC2_API InstanceNetworkInterfaceAttachment(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API InstanceNetworkInterfaceAttachment & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceNetworkInterfaceAttachment & WithAttachmentId(const Aws::String &value)
InstanceNetworkInterfaceAttachment & WithAttachTime(const Aws::Utils::DateTime &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
InstanceNetworkInterfaceAttachment & WithAttachmentId(const char *value)
InstanceNetworkInterfaceAttachment & WithDeviceIndex(int value)
void SetEnaSrdSpecification(const InstanceAttachmentEnaSrdSpecification &value)
InstanceNetworkInterfaceAttachment & WithNetworkCardIndex(int value)
InstanceNetworkInterfaceAttachment & WithEnaSrdSpecification(InstanceAttachmentEnaSrdSpecification &&value)
InstanceNetworkInterfaceAttachment & WithAttachmentId(Aws::String &&value)
InstanceNetworkInterfaceAttachment & WithDeleteOnTermination(bool value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
InstanceNetworkInterfaceAttachment & WithEnaSrdSpecification(const InstanceAttachmentEnaSrdSpecification &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream