AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
Connection.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/events/CloudWatchEvents_EXPORTS.h>
10#include <aws/events/model/ConnectionAuthorizationType.h>
11#include <aws/events/model/ConnectionState.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CloudWatchEvents {
23namespace Model {
24
31 public:
32 AWS_CLOUDWATCHEVENTS_API Connection() = default;
33 AWS_CLOUDWATCHEVENTS_API Connection(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CLOUDWATCHEVENTS_API Connection& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CLOUDWATCHEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetConnectionArn() const { return m_connectionArn; }
42 inline bool ConnectionArnHasBeenSet() const { return m_connectionArnHasBeenSet; }
43 template <typename ConnectionArnT = Aws::String>
44 void SetConnectionArn(ConnectionArnT&& value) {
45 m_connectionArnHasBeenSet = true;
46 m_connectionArn = std::forward<ConnectionArnT>(value);
47 }
48 template <typename ConnectionArnT = Aws::String>
49 Connection& WithConnectionArn(ConnectionArnT&& value) {
50 SetConnectionArn(std::forward<ConnectionArnT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
67 Connection& WithName(NameT&& value) {
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
77 inline ConnectionState GetConnectionState() const { return m_connectionState; }
78 inline bool ConnectionStateHasBeenSet() const { return m_connectionStateHasBeenSet; }
80 m_connectionStateHasBeenSet = true;
81 m_connectionState = value;
82 }
84 SetConnectionState(value);
85 return *this;
86 }
88
90
93 inline const Aws::String& GetStateReason() const { return m_stateReason; }
94 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
95 template <typename StateReasonT = Aws::String>
96 void SetStateReason(StateReasonT&& value) {
97 m_stateReasonHasBeenSet = true;
98 m_stateReason = std::forward<StateReasonT>(value);
99 }
100 template <typename StateReasonT = Aws::String>
101 Connection& WithStateReason(StateReasonT&& value) {
102 SetStateReason(std::forward<StateReasonT>(value));
103 return *this;
104 }
106
108
111 inline ConnectionAuthorizationType GetAuthorizationType() const { return m_authorizationType; }
112 inline bool AuthorizationTypeHasBeenSet() const { return m_authorizationTypeHasBeenSet; }
114 m_authorizationTypeHasBeenSet = true;
115 m_authorizationType = value;
116 }
119 return *this;
120 }
122
124
127 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
128 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
129 template <typename CreationTimeT = Aws::Utils::DateTime>
130 void SetCreationTime(CreationTimeT&& value) {
131 m_creationTimeHasBeenSet = true;
132 m_creationTime = std::forward<CreationTimeT>(value);
133 }
134 template <typename CreationTimeT = Aws::Utils::DateTime>
135 Connection& WithCreationTime(CreationTimeT&& value) {
136 SetCreationTime(std::forward<CreationTimeT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
146 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
147 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
148 void SetLastModifiedTime(LastModifiedTimeT&& value) {
149 m_lastModifiedTimeHasBeenSet = true;
150 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
151 }
152 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
153 Connection& WithLastModifiedTime(LastModifiedTimeT&& value) {
154 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
155 return *this;
156 }
158
160
163 inline const Aws::Utils::DateTime& GetLastAuthorizedTime() const { return m_lastAuthorizedTime; }
164 inline bool LastAuthorizedTimeHasBeenSet() const { return m_lastAuthorizedTimeHasBeenSet; }
165 template <typename LastAuthorizedTimeT = Aws::Utils::DateTime>
166 void SetLastAuthorizedTime(LastAuthorizedTimeT&& value) {
167 m_lastAuthorizedTimeHasBeenSet = true;
168 m_lastAuthorizedTime = std::forward<LastAuthorizedTimeT>(value);
169 }
170 template <typename LastAuthorizedTimeT = Aws::Utils::DateTime>
171 Connection& WithLastAuthorizedTime(LastAuthorizedTimeT&& value) {
172 SetLastAuthorizedTime(std::forward<LastAuthorizedTimeT>(value));
173 return *this;
174 }
176 private:
177 Aws::String m_connectionArn;
178
179 Aws::String m_name;
180
181 ConnectionState m_connectionState{ConnectionState::NOT_SET};
182
183 Aws::String m_stateReason;
184
186
187 Aws::Utils::DateTime m_creationTime{};
188
189 Aws::Utils::DateTime m_lastModifiedTime{};
190
191 Aws::Utils::DateTime m_lastAuthorizedTime{};
192 bool m_connectionArnHasBeenSet = false;
193 bool m_nameHasBeenSet = false;
194 bool m_connectionStateHasBeenSet = false;
195 bool m_stateReasonHasBeenSet = false;
196 bool m_authorizationTypeHasBeenSet = false;
197 bool m_creationTimeHasBeenSet = false;
198 bool m_lastModifiedTimeHasBeenSet = false;
199 bool m_lastAuthorizedTimeHasBeenSet = false;
200};
201
202} // namespace Model
203} // namespace CloudWatchEvents
204} // namespace Aws
Connection & WithAuthorizationType(ConnectionAuthorizationType value)
Definition Connection.h:117
AWS_CLOUDWATCHEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAuthorizationType(ConnectionAuthorizationType value)
Definition Connection.h:113
void SetConnectionState(ConnectionState value)
Definition Connection.h:79
Connection & WithCreationTime(CreationTimeT &&value)
Definition Connection.h:135
ConnectionAuthorizationType GetAuthorizationType() const
Definition Connection.h:111
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition Connection.h:145
const Aws::String & GetStateReason() const
Definition Connection.h:93
void SetStateReason(StateReasonT &&value)
Definition Connection.h:96
const Aws::Utils::DateTime & GetCreationTime() const
Definition Connection.h:127
const Aws::String & GetName() const
Definition Connection.h:59
Connection & WithName(NameT &&value)
Definition Connection.h:67
Connection & WithConnectionState(ConnectionState value)
Definition Connection.h:83
void SetLastModifiedTime(LastModifiedTimeT &&value)
Definition Connection.h:148
ConnectionState GetConnectionState() const
Definition Connection.h:77
Connection & WithConnectionArn(ConnectionArnT &&value)
Definition Connection.h:49
Connection & WithLastModifiedTime(LastModifiedTimeT &&value)
Definition Connection.h:153
AWS_CLOUDWATCHEVENTS_API Connection(Aws::Utils::Json::JsonView jsonValue)
Connection & WithLastAuthorizedTime(LastAuthorizedTimeT &&value)
Definition Connection.h:171
void SetCreationTime(CreationTimeT &&value)
Definition Connection.h:130
Connection & WithStateReason(StateReasonT &&value)
Definition Connection.h:101
const Aws::String & GetConnectionArn() const
Definition Connection.h:41
void SetConnectionArn(ConnectionArnT &&value)
Definition Connection.h:44
AWS_CLOUDWATCHEVENTS_API Connection()=default
const Aws::Utils::DateTime & GetLastAuthorizedTime() const
Definition Connection.h:163
void SetLastAuthorizedTime(LastAuthorizedTimeT &&value)
Definition Connection.h:166
AWS_CLOUDWATCHEVENTS_API Connection & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue