AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ConnectionNotification.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/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/ConnectionNotificationState.h>
12#include <aws/ec2/model/ConnectionNotificationType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Xml {
19class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2 {
23namespace Model {
24
32 public:
33 AWS_EC2_API ConnectionNotification() = default;
36
37 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
44 inline const Aws::String& GetConnectionNotificationId() const { return m_connectionNotificationId; }
45 inline bool ConnectionNotificationIdHasBeenSet() const { return m_connectionNotificationIdHasBeenSet; }
46 template <typename ConnectionNotificationIdT = Aws::String>
47 void SetConnectionNotificationId(ConnectionNotificationIdT&& value) {
48 m_connectionNotificationIdHasBeenSet = true;
49 m_connectionNotificationId = std::forward<ConnectionNotificationIdT>(value);
50 }
51 template <typename ConnectionNotificationIdT = Aws::String>
52 ConnectionNotification& WithConnectionNotificationId(ConnectionNotificationIdT&& value) {
53 SetConnectionNotificationId(std::forward<ConnectionNotificationIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetServiceId() const { return m_serviceId; }
63 inline bool ServiceIdHasBeenSet() const { return m_serviceIdHasBeenSet; }
64 template <typename ServiceIdT = Aws::String>
65 void SetServiceId(ServiceIdT&& value) {
66 m_serviceIdHasBeenSet = true;
67 m_serviceId = std::forward<ServiceIdT>(value);
68 }
69 template <typename ServiceIdT = Aws::String>
71 SetServiceId(std::forward<ServiceIdT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetVpcEndpointId() const { return m_vpcEndpointId; }
81 inline bool VpcEndpointIdHasBeenSet() const { return m_vpcEndpointIdHasBeenSet; }
82 template <typename VpcEndpointIdT = Aws::String>
83 void SetVpcEndpointId(VpcEndpointIdT&& value) {
84 m_vpcEndpointIdHasBeenSet = true;
85 m_vpcEndpointId = std::forward<VpcEndpointIdT>(value);
86 }
87 template <typename VpcEndpointIdT = Aws::String>
88 ConnectionNotification& WithVpcEndpointId(VpcEndpointIdT&& value) {
89 SetVpcEndpointId(std::forward<VpcEndpointIdT>(value));
90 return *this;
91 }
93
95
98 inline ConnectionNotificationType GetConnectionNotificationType() const { return m_connectionNotificationType; }
99 inline bool ConnectionNotificationTypeHasBeenSet() const { return m_connectionNotificationTypeHasBeenSet; }
101 m_connectionNotificationTypeHasBeenSet = true;
102 m_connectionNotificationType = value;
103 }
106 return *this;
107 }
109
111
114 inline const Aws::String& GetConnectionNotificationArn() const { return m_connectionNotificationArn; }
115 inline bool ConnectionNotificationArnHasBeenSet() const { return m_connectionNotificationArnHasBeenSet; }
116 template <typename ConnectionNotificationArnT = Aws::String>
117 void SetConnectionNotificationArn(ConnectionNotificationArnT&& value) {
118 m_connectionNotificationArnHasBeenSet = true;
119 m_connectionNotificationArn = std::forward<ConnectionNotificationArnT>(value);
120 }
121 template <typename ConnectionNotificationArnT = Aws::String>
122 ConnectionNotification& WithConnectionNotificationArn(ConnectionNotificationArnT&& value) {
123 SetConnectionNotificationArn(std::forward<ConnectionNotificationArnT>(value));
124 return *this;
125 }
127
129
133 inline const Aws::Vector<Aws::String>& GetConnectionEvents() const { return m_connectionEvents; }
134 inline bool ConnectionEventsHasBeenSet() const { return m_connectionEventsHasBeenSet; }
135 template <typename ConnectionEventsT = Aws::Vector<Aws::String>>
136 void SetConnectionEvents(ConnectionEventsT&& value) {
137 m_connectionEventsHasBeenSet = true;
138 m_connectionEvents = std::forward<ConnectionEventsT>(value);
139 }
140 template <typename ConnectionEventsT = Aws::Vector<Aws::String>>
141 ConnectionNotification& WithConnectionEvents(ConnectionEventsT&& value) {
142 SetConnectionEvents(std::forward<ConnectionEventsT>(value));
143 return *this;
144 }
145 template <typename ConnectionEventsT = Aws::String>
146 ConnectionNotification& AddConnectionEvents(ConnectionEventsT&& value) {
147 m_connectionEventsHasBeenSet = true;
148 m_connectionEvents.emplace_back(std::forward<ConnectionEventsT>(value));
149 return *this;
150 }
152
154
157 inline ConnectionNotificationState GetConnectionNotificationState() const { return m_connectionNotificationState; }
158 inline bool ConnectionNotificationStateHasBeenSet() const { return m_connectionNotificationStateHasBeenSet; }
160 m_connectionNotificationStateHasBeenSet = true;
161 m_connectionNotificationState = value;
162 }
165 return *this;
166 }
168
170
173 inline const Aws::String& GetServiceRegion() const { return m_serviceRegion; }
174 inline bool ServiceRegionHasBeenSet() const { return m_serviceRegionHasBeenSet; }
175 template <typename ServiceRegionT = Aws::String>
176 void SetServiceRegion(ServiceRegionT&& value) {
177 m_serviceRegionHasBeenSet = true;
178 m_serviceRegion = std::forward<ServiceRegionT>(value);
179 }
180 template <typename ServiceRegionT = Aws::String>
181 ConnectionNotification& WithServiceRegion(ServiceRegionT&& value) {
182 SetServiceRegion(std::forward<ServiceRegionT>(value));
183 return *this;
184 }
186 private:
187 Aws::String m_connectionNotificationId;
188
189 Aws::String m_serviceId;
190
191 Aws::String m_vpcEndpointId;
192
194
195 Aws::String m_connectionNotificationArn;
196
197 Aws::Vector<Aws::String> m_connectionEvents;
198
200
201 Aws::String m_serviceRegion;
202 bool m_connectionNotificationIdHasBeenSet = false;
203 bool m_serviceIdHasBeenSet = false;
204 bool m_vpcEndpointIdHasBeenSet = false;
205 bool m_connectionNotificationTypeHasBeenSet = false;
206 bool m_connectionNotificationArnHasBeenSet = false;
207 bool m_connectionEventsHasBeenSet = false;
208 bool m_connectionNotificationStateHasBeenSet = false;
209 bool m_serviceRegionHasBeenSet = false;
210};
211
212} // namespace Model
213} // namespace EC2
214} // namespace Aws
ConnectionNotification & WithVpcEndpointId(VpcEndpointIdT &&value)
void SetConnectionNotificationId(ConnectionNotificationIdT &&value)
ConnectionNotification & WithServiceId(ServiceIdT &&value)
ConnectionNotification & WithConnectionNotificationId(ConnectionNotificationIdT &&value)
AWS_EC2_API ConnectionNotification()=default
AWS_EC2_API ConnectionNotification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetVpcEndpointId(VpcEndpointIdT &&value)
ConnectionNotification & WithConnectionNotificationType(ConnectionNotificationType value)
AWS_EC2_API ConnectionNotification(const Aws::Utils::Xml::XmlNode &xmlNode)
ConnectionNotificationState GetConnectionNotificationState() const
void SetConnectionNotificationArn(ConnectionNotificationArnT &&value)
void SetConnectionNotificationState(ConnectionNotificationState value)
void SetConnectionNotificationType(ConnectionNotificationType value)
ConnectionNotificationType GetConnectionNotificationType() const
void SetConnectionEvents(ConnectionEventsT &&value)
ConnectionNotification & WithConnectionNotificationArn(ConnectionNotificationArnT &&value)
const Aws::String & GetConnectionNotificationArn() const
ConnectionNotification & AddConnectionEvents(ConnectionEventsT &&value)
ConnectionNotification & WithServiceRegion(ServiceRegionT &&value)
ConnectionNotification & WithConnectionEvents(ConnectionEventsT &&value)
const Aws::Vector< Aws::String > & GetConnectionEvents() const
ConnectionNotification & WithConnectionNotificationState(ConnectionNotificationState value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetConnectionNotificationId() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream