AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetConnectionNotificationId(const Aws::String& value) { m_connectionNotificationIdHasBeenSet = true; m_connectionNotificationId = value; }
53 inline void SetConnectionNotificationId(Aws::String&& value) { m_connectionNotificationIdHasBeenSet = true; m_connectionNotificationId = std::move(value); }
54 inline void SetConnectionNotificationId(const char* value) { m_connectionNotificationIdHasBeenSet = true; m_connectionNotificationId.assign(value); }
57 inline ConnectionNotification& WithConnectionNotificationId(const char* value) { SetConnectionNotificationId(value); return *this;}
59
61
64 inline const Aws::String& GetServiceId() const{ return m_serviceId; }
65 inline bool ServiceIdHasBeenSet() const { return m_serviceIdHasBeenSet; }
66 inline void SetServiceId(const Aws::String& value) { m_serviceIdHasBeenSet = true; m_serviceId = value; }
67 inline void SetServiceId(Aws::String&& value) { m_serviceIdHasBeenSet = true; m_serviceId = std::move(value); }
68 inline void SetServiceId(const char* value) { m_serviceIdHasBeenSet = true; m_serviceId.assign(value); }
69 inline ConnectionNotification& WithServiceId(const Aws::String& value) { SetServiceId(value); return *this;}
70 inline ConnectionNotification& WithServiceId(Aws::String&& value) { SetServiceId(std::move(value)); return *this;}
71 inline ConnectionNotification& WithServiceId(const char* value) { SetServiceId(value); return *this;}
73
75
78 inline const Aws::String& GetVpcEndpointId() const{ return m_vpcEndpointId; }
79 inline bool VpcEndpointIdHasBeenSet() const { return m_vpcEndpointIdHasBeenSet; }
80 inline void SetVpcEndpointId(const Aws::String& value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId = value; }
81 inline void SetVpcEndpointId(Aws::String&& value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId = std::move(value); }
82 inline void SetVpcEndpointId(const char* value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId.assign(value); }
83 inline ConnectionNotification& WithVpcEndpointId(const Aws::String& value) { SetVpcEndpointId(value); return *this;}
84 inline ConnectionNotification& WithVpcEndpointId(Aws::String&& value) { SetVpcEndpointId(std::move(value)); return *this;}
85 inline ConnectionNotification& WithVpcEndpointId(const char* value) { SetVpcEndpointId(value); return *this;}
87
89
92 inline const ConnectionNotificationType& GetConnectionNotificationType() const{ return m_connectionNotificationType; }
93 inline bool ConnectionNotificationTypeHasBeenSet() const { return m_connectionNotificationTypeHasBeenSet; }
94 inline void SetConnectionNotificationType(const ConnectionNotificationType& value) { m_connectionNotificationTypeHasBeenSet = true; m_connectionNotificationType = value; }
95 inline void SetConnectionNotificationType(ConnectionNotificationType&& value) { m_connectionNotificationTypeHasBeenSet = true; m_connectionNotificationType = std::move(value); }
99
101
104 inline const Aws::String& GetConnectionNotificationArn() const{ return m_connectionNotificationArn; }
105 inline bool ConnectionNotificationArnHasBeenSet() const { return m_connectionNotificationArnHasBeenSet; }
106 inline void SetConnectionNotificationArn(const Aws::String& value) { m_connectionNotificationArnHasBeenSet = true; m_connectionNotificationArn = value; }
107 inline void SetConnectionNotificationArn(Aws::String&& value) { m_connectionNotificationArnHasBeenSet = true; m_connectionNotificationArn = std::move(value); }
108 inline void SetConnectionNotificationArn(const char* value) { m_connectionNotificationArnHasBeenSet = true; m_connectionNotificationArn.assign(value); }
113
115
119 inline const Aws::Vector<Aws::String>& GetConnectionEvents() const{ return m_connectionEvents; }
120 inline bool ConnectionEventsHasBeenSet() const { return m_connectionEventsHasBeenSet; }
121 inline void SetConnectionEvents(const Aws::Vector<Aws::String>& value) { m_connectionEventsHasBeenSet = true; m_connectionEvents = value; }
122 inline void SetConnectionEvents(Aws::Vector<Aws::String>&& value) { m_connectionEventsHasBeenSet = true; m_connectionEvents = std::move(value); }
125 inline ConnectionNotification& AddConnectionEvents(const Aws::String& value) { m_connectionEventsHasBeenSet = true; m_connectionEvents.push_back(value); return *this; }
126 inline ConnectionNotification& AddConnectionEvents(Aws::String&& value) { m_connectionEventsHasBeenSet = true; m_connectionEvents.push_back(std::move(value)); return *this; }
127 inline ConnectionNotification& AddConnectionEvents(const char* value) { m_connectionEventsHasBeenSet = true; m_connectionEvents.push_back(value); return *this; }
129
131
134 inline const ConnectionNotificationState& GetConnectionNotificationState() const{ return m_connectionNotificationState; }
135 inline bool ConnectionNotificationStateHasBeenSet() const { return m_connectionNotificationStateHasBeenSet; }
136 inline void SetConnectionNotificationState(const ConnectionNotificationState& value) { m_connectionNotificationStateHasBeenSet = true; m_connectionNotificationState = value; }
137 inline void SetConnectionNotificationState(ConnectionNotificationState&& value) { m_connectionNotificationStateHasBeenSet = true; m_connectionNotificationState = std::move(value); }
141 private:
142
143 Aws::String m_connectionNotificationId;
144 bool m_connectionNotificationIdHasBeenSet = false;
145
146 Aws::String m_serviceId;
147 bool m_serviceIdHasBeenSet = false;
148
149 Aws::String m_vpcEndpointId;
150 bool m_vpcEndpointIdHasBeenSet = false;
151
152 ConnectionNotificationType m_connectionNotificationType;
153 bool m_connectionNotificationTypeHasBeenSet = false;
154
155 Aws::String m_connectionNotificationArn;
156 bool m_connectionNotificationArnHasBeenSet = false;
157
158 Aws::Vector<Aws::String> m_connectionEvents;
159 bool m_connectionEventsHasBeenSet = false;
160
161 ConnectionNotificationState m_connectionNotificationState;
162 bool m_connectionNotificationStateHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace EC2
167} // namespace Aws
void SetConnectionNotificationState(ConnectionNotificationState &&value)
void SetConnectionNotificationType(const ConnectionNotificationType &value)
ConnectionNotification & AddConnectionEvents(const char *value)
ConnectionNotification & WithVpcEndpointId(const Aws::String &value)
ConnectionNotification & WithConnectionNotificationArn(const char *value)
ConnectionNotification & WithConnectionNotificationArn(const Aws::String &value)
void SetConnectionEvents(Aws::Vector< Aws::String > &&value)
AWS_EC2_API ConnectionNotification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ConnectionNotification & WithConnectionEvents(Aws::Vector< Aws::String > &&value)
ConnectionNotification & WithConnectionEvents(const Aws::Vector< Aws::String > &value)
void SetConnectionNotificationId(Aws::String &&value)
ConnectionNotification & WithConnectionNotificationType(ConnectionNotificationType &&value)
AWS_EC2_API ConnectionNotification(const Aws::Utils::Xml::XmlNode &xmlNode)
ConnectionNotification & AddConnectionEvents(const Aws::String &value)
ConnectionNotification & WithConnectionNotificationState(const ConnectionNotificationState &value)
ConnectionNotification & WithConnectionNotificationState(ConnectionNotificationState &&value)
ConnectionNotification & WithConnectionNotificationId(const Aws::String &value)
ConnectionNotification & WithConnectionNotificationType(const ConnectionNotificationType &value)
ConnectionNotification & WithVpcEndpointId(const char *value)
ConnectionNotification & AddConnectionEvents(Aws::String &&value)
ConnectionNotification & WithConnectionNotificationId(Aws::String &&value)
ConnectionNotification & WithServiceId(const Aws::String &value)
ConnectionNotification & WithVpcEndpointId(Aws::String &&value)
void SetConnectionNotificationType(ConnectionNotificationType &&value)
void SetConnectionNotificationArn(Aws::String &&value)
const Aws::String & GetConnectionNotificationArn() const
const ConnectionNotificationState & GetConnectionNotificationState() const
void SetConnectionNotificationState(const ConnectionNotificationState &value)
void SetConnectionNotificationArn(const Aws::String &value)
const Aws::Vector< Aws::String > & GetConnectionEvents() const
ConnectionNotification & WithConnectionNotificationId(const char *value)
const ConnectionNotificationType & GetConnectionNotificationType() const
ConnectionNotification & WithServiceId(Aws::String &&value)
void SetServiceId(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetConnectionEvents(const Aws::Vector< Aws::String > &value)
void SetVpcEndpointId(const Aws::String &value)
const Aws::String & GetConnectionNotificationId() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetConnectionNotificationId(const Aws::String &value)
ConnectionNotification & WithConnectionNotificationArn(Aws::String &&value)
ConnectionNotification & WithServiceId(const char *value)
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