AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
NetworkInterfaceAttachmentChanges.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace EC2 {
20namespace Model {
21
28 public:
29 AWS_EC2_API NetworkInterfaceAttachmentChanges() = default;
32
33 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
34 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
35
37
40 inline bool GetDefaultEnaQueueCount() const { return m_defaultEnaQueueCount; }
41 inline bool DefaultEnaQueueCountHasBeenSet() const { return m_defaultEnaQueueCountHasBeenSet; }
42 inline void SetDefaultEnaQueueCount(bool value) {
43 m_defaultEnaQueueCountHasBeenSet = true;
44 m_defaultEnaQueueCount = value;
45 }
48 return *this;
49 }
51
53
56 inline int GetEnaQueueCount() const { return m_enaQueueCount; }
57 inline bool EnaQueueCountHasBeenSet() const { return m_enaQueueCountHasBeenSet; }
58 inline void SetEnaQueueCount(int value) {
59 m_enaQueueCountHasBeenSet = true;
60 m_enaQueueCount = value;
61 }
63 SetEnaQueueCount(value);
64 return *this;
65 }
67
69
72 inline const Aws::String& GetAttachmentId() const { return m_attachmentId; }
73 inline bool AttachmentIdHasBeenSet() const { return m_attachmentIdHasBeenSet; }
74 template <typename AttachmentIdT = Aws::String>
75 void SetAttachmentId(AttachmentIdT&& value) {
76 m_attachmentIdHasBeenSet = true;
77 m_attachmentId = std::forward<AttachmentIdT>(value);
78 }
79 template <typename AttachmentIdT = Aws::String>
81 SetAttachmentId(std::forward<AttachmentIdT>(value));
82 return *this;
83 }
85
87
91 inline bool GetDeleteOnTermination() const { return m_deleteOnTermination; }
92 inline bool DeleteOnTerminationHasBeenSet() const { return m_deleteOnTerminationHasBeenSet; }
93 inline void SetDeleteOnTermination(bool value) {
94 m_deleteOnTerminationHasBeenSet = true;
95 m_deleteOnTermination = value;
96 }
99 return *this;
100 }
102 private:
103 bool m_defaultEnaQueueCount{false};
104
105 int m_enaQueueCount{0};
106
107 Aws::String m_attachmentId;
108
109 bool m_deleteOnTermination{false};
110 bool m_defaultEnaQueueCountHasBeenSet = false;
111 bool m_enaQueueCountHasBeenSet = false;
112 bool m_attachmentIdHasBeenSet = false;
113 bool m_deleteOnTerminationHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace EC2
118} // namespace Aws
NetworkInterfaceAttachmentChanges & WithDefaultEnaQueueCount(bool value)
NetworkInterfaceAttachmentChanges & WithDeleteOnTermination(bool value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
NetworkInterfaceAttachmentChanges & WithEnaQueueCount(int value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
NetworkInterfaceAttachmentChanges & WithAttachmentId(AttachmentIdT &&value)
AWS_EC2_API NetworkInterfaceAttachmentChanges & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API NetworkInterfaceAttachmentChanges(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream