AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ConnectionNotification.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/memory/stl/AWSString.h>
10#include <aws/ec2/model/ConnectionNotificationType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ec2/model/ConnectionNotificationState.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
36 {
37 public:
38 AWS_EC2_API ConnectionNotification() = default;
41
42 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline const Aws::String& GetConnectionNotificationId() const { return m_connectionNotificationId; }
51 inline bool ConnectionNotificationIdHasBeenSet() const { return m_connectionNotificationIdHasBeenSet; }
52 template<typename ConnectionNotificationIdT = Aws::String>
53 void SetConnectionNotificationId(ConnectionNotificationIdT&& value) { m_connectionNotificationIdHasBeenSet = true; m_connectionNotificationId = std::forward<ConnectionNotificationIdT>(value); }
54 template<typename ConnectionNotificationIdT = Aws::String>
55 ConnectionNotification& WithConnectionNotificationId(ConnectionNotificationIdT&& value) { SetConnectionNotificationId(std::forward<ConnectionNotificationIdT>(value)); return *this;}
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) { m_serviceIdHasBeenSet = true; m_serviceId = std::forward<ServiceIdT>(value); }
66 template<typename ServiceIdT = Aws::String>
67 ConnectionNotification& WithServiceId(ServiceIdT&& value) { SetServiceId(std::forward<ServiceIdT>(value)); return *this;}
69
71
74 inline const Aws::String& GetVpcEndpointId() const { return m_vpcEndpointId; }
75 inline bool VpcEndpointIdHasBeenSet() const { return m_vpcEndpointIdHasBeenSet; }
76 template<typename VpcEndpointIdT = Aws::String>
77 void SetVpcEndpointId(VpcEndpointIdT&& value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId = std::forward<VpcEndpointIdT>(value); }
78 template<typename VpcEndpointIdT = Aws::String>
79 ConnectionNotification& WithVpcEndpointId(VpcEndpointIdT&& value) { SetVpcEndpointId(std::forward<VpcEndpointIdT>(value)); return *this;}
81
83
86 inline ConnectionNotificationType GetConnectionNotificationType() const { return m_connectionNotificationType; }
87 inline bool ConnectionNotificationTypeHasBeenSet() const { return m_connectionNotificationTypeHasBeenSet; }
88 inline void SetConnectionNotificationType(ConnectionNotificationType value) { m_connectionNotificationTypeHasBeenSet = true; m_connectionNotificationType = value; }
91
93
96 inline const Aws::String& GetConnectionNotificationArn() const { return m_connectionNotificationArn; }
97 inline bool ConnectionNotificationArnHasBeenSet() const { return m_connectionNotificationArnHasBeenSet; }
98 template<typename ConnectionNotificationArnT = Aws::String>
99 void SetConnectionNotificationArn(ConnectionNotificationArnT&& value) { m_connectionNotificationArnHasBeenSet = true; m_connectionNotificationArn = std::forward<ConnectionNotificationArnT>(value); }
100 template<typename ConnectionNotificationArnT = Aws::String>
101 ConnectionNotification& WithConnectionNotificationArn(ConnectionNotificationArnT&& value) { SetConnectionNotificationArn(std::forward<ConnectionNotificationArnT>(value)); return *this;}
103
105
109 inline const Aws::Vector<Aws::String>& GetConnectionEvents() const { return m_connectionEvents; }
110 inline bool ConnectionEventsHasBeenSet() const { return m_connectionEventsHasBeenSet; }
111 template<typename ConnectionEventsT = Aws::Vector<Aws::String>>
112 void SetConnectionEvents(ConnectionEventsT&& value) { m_connectionEventsHasBeenSet = true; m_connectionEvents = std::forward<ConnectionEventsT>(value); }
113 template<typename ConnectionEventsT = Aws::Vector<Aws::String>>
114 ConnectionNotification& WithConnectionEvents(ConnectionEventsT&& value) { SetConnectionEvents(std::forward<ConnectionEventsT>(value)); return *this;}
115 template<typename ConnectionEventsT = Aws::String>
116 ConnectionNotification& AddConnectionEvents(ConnectionEventsT&& value) { m_connectionEventsHasBeenSet = true; m_connectionEvents.emplace_back(std::forward<ConnectionEventsT>(value)); return *this; }
118
120
123 inline ConnectionNotificationState GetConnectionNotificationState() const { return m_connectionNotificationState; }
124 inline bool ConnectionNotificationStateHasBeenSet() const { return m_connectionNotificationStateHasBeenSet; }
125 inline void SetConnectionNotificationState(ConnectionNotificationState value) { m_connectionNotificationStateHasBeenSet = true; m_connectionNotificationState = value; }
128
130
133 inline const Aws::String& GetServiceRegion() const { return m_serviceRegion; }
134 inline bool ServiceRegionHasBeenSet() const { return m_serviceRegionHasBeenSet; }
135 template<typename ServiceRegionT = Aws::String>
136 void SetServiceRegion(ServiceRegionT&& value) { m_serviceRegionHasBeenSet = true; m_serviceRegion = std::forward<ServiceRegionT>(value); }
137 template<typename ServiceRegionT = Aws::String>
138 ConnectionNotification& WithServiceRegion(ServiceRegionT&& value) { SetServiceRegion(std::forward<ServiceRegionT>(value)); return *this;}
140 private:
141
142 Aws::String m_connectionNotificationId;
143 bool m_connectionNotificationIdHasBeenSet = false;
144
145 Aws::String m_serviceId;
146 bool m_serviceIdHasBeenSet = false;
147
148 Aws::String m_vpcEndpointId;
149 bool m_vpcEndpointIdHasBeenSet = false;
150
152 bool m_connectionNotificationTypeHasBeenSet = false;
153
154 Aws::String m_connectionNotificationArn;
155 bool m_connectionNotificationArnHasBeenSet = false;
156
157 Aws::Vector<Aws::String> m_connectionEvents;
158 bool m_connectionEventsHasBeenSet = false;
159
161 bool m_connectionNotificationStateHasBeenSet = false;
162
163 Aws::String m_serviceRegion;
164 bool m_serviceRegionHasBeenSet = false;
165 };
166
167} // namespace Model
168} // namespace EC2
169} // 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