AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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/eventbridge/EventBridge_EXPORTS.h>
10#include <aws/eventbridge/model/ConnectionAuthorizationType.h>
11#include <aws/eventbridge/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 EventBridge {
23namespace Model {
24
31 public:
32 AWS_EVENTBRIDGE_API Connection() = default;
33 AWS_EVENTBRIDGE_API Connection(Aws::Utils::Json::JsonView jsonValue);
34 AWS_EVENTBRIDGE_API Connection& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_EVENTBRIDGE_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
112 inline ConnectionAuthorizationType GetAuthorizationType() const { return m_authorizationType; }
113 inline bool AuthorizationTypeHasBeenSet() const { return m_authorizationTypeHasBeenSet; }
115 m_authorizationTypeHasBeenSet = true;
116 m_authorizationType = value;
117 }
120 return *this;
121 }
123
125
128 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
129 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
130 template <typename CreationTimeT = Aws::Utils::DateTime>
131 void SetCreationTime(CreationTimeT&& value) {
132 m_creationTimeHasBeenSet = true;
133 m_creationTime = std::forward<CreationTimeT>(value);
134 }
135 template <typename CreationTimeT = Aws::Utils::DateTime>
136 Connection& WithCreationTime(CreationTimeT&& value) {
137 SetCreationTime(std::forward<CreationTimeT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
147 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
148 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
149 void SetLastModifiedTime(LastModifiedTimeT&& value) {
150 m_lastModifiedTimeHasBeenSet = true;
151 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
152 }
153 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
154 Connection& WithLastModifiedTime(LastModifiedTimeT&& value) {
155 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
156 return *this;
157 }
159
161
164 inline const Aws::Utils::DateTime& GetLastAuthorizedTime() const { return m_lastAuthorizedTime; }
165 inline bool LastAuthorizedTimeHasBeenSet() const { return m_lastAuthorizedTimeHasBeenSet; }
166 template <typename LastAuthorizedTimeT = Aws::Utils::DateTime>
167 void SetLastAuthorizedTime(LastAuthorizedTimeT&& value) {
168 m_lastAuthorizedTimeHasBeenSet = true;
169 m_lastAuthorizedTime = std::forward<LastAuthorizedTimeT>(value);
170 }
171 template <typename LastAuthorizedTimeT = Aws::Utils::DateTime>
172 Connection& WithLastAuthorizedTime(LastAuthorizedTimeT&& value) {
173 SetLastAuthorizedTime(std::forward<LastAuthorizedTimeT>(value));
174 return *this;
175 }
177 private:
178 Aws::String m_connectionArn;
179
180 Aws::String m_name;
181
182 ConnectionState m_connectionState{ConnectionState::NOT_SET};
183
184 Aws::String m_stateReason;
185
187
188 Aws::Utils::DateTime m_creationTime{};
189
190 Aws::Utils::DateTime m_lastModifiedTime{};
191
192 Aws::Utils::DateTime m_lastAuthorizedTime{};
193 bool m_connectionArnHasBeenSet = false;
194 bool m_nameHasBeenSet = false;
195 bool m_connectionStateHasBeenSet = false;
196 bool m_stateReasonHasBeenSet = false;
197 bool m_authorizationTypeHasBeenSet = false;
198 bool m_creationTimeHasBeenSet = false;
199 bool m_lastModifiedTimeHasBeenSet = false;
200 bool m_lastAuthorizedTimeHasBeenSet = false;
201};
202
203} // namespace Model
204} // namespace EventBridge
205} // namespace Aws
Connection & WithAuthorizationType(ConnectionAuthorizationType value)
Definition Connection.h:118
Connection & WithConnectionState(ConnectionState value)
Definition Connection.h:83
const Aws::String & GetName() const
Definition Connection.h:59
AWS_EVENTBRIDGE_API Connection(Aws::Utils::Json::JsonView jsonValue)
AWS_EVENTBRIDGE_API Connection & operator=(Aws::Utils::Json::JsonView jsonValue)
Connection & WithLastAuthorizedTime(LastAuthorizedTimeT &&value)
Definition Connection.h:172
void SetAuthorizationType(ConnectionAuthorizationType value)
Definition Connection.h:114
ConnectionAuthorizationType GetAuthorizationType() const
Definition Connection.h:112
const Aws::String & GetConnectionArn() const
Definition Connection.h:41
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition Connection.h:146
const Aws::String & GetStateReason() const
Definition Connection.h:93
void SetStateReason(StateReasonT &&value)
Definition Connection.h:96
Connection & WithStateReason(StateReasonT &&value)
Definition Connection.h:101
AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const
ConnectionState GetConnectionState() const
Definition Connection.h:77
AWS_EVENTBRIDGE_API Connection()=default
void SetConnectionState(ConnectionState value)
Definition Connection.h:79
void SetLastAuthorizedTime(LastAuthorizedTimeT &&value)
Definition Connection.h:167
const Aws::Utils::DateTime & GetLastAuthorizedTime() const
Definition Connection.h:164
Connection & WithCreationTime(CreationTimeT &&value)
Definition Connection.h:136
void SetLastModifiedTime(LastModifiedTimeT &&value)
Definition Connection.h:149
Connection & WithLastModifiedTime(LastModifiedTimeT &&value)
Definition Connection.h:154
Connection & WithName(NameT &&value)
Definition Connection.h:67
void SetConnectionArn(ConnectionArnT &&value)
Definition Connection.h:44
Connection & WithConnectionArn(ConnectionArnT &&value)
Definition Connection.h:49
void SetCreationTime(CreationTimeT &&value)
Definition Connection.h:131
const Aws::Utils::DateTime & GetCreationTime() const
Definition Connection.h:128
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue