AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Connection.h
1
6#pragma once
7#include <aws/eventbridge/EventBridge_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/eventbridge/model/ConnectionState.h>
10#include <aws/eventbridge/model/ConnectionAuthorizationType.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace EventBridge
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_EVENTBRIDGE_API Connection();
38 AWS_EVENTBRIDGE_API Connection(Aws::Utils::Json::JsonView jsonValue);
39 AWS_EVENTBRIDGE_API Connection& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetConnectionArn() const{ return m_connectionArn; }
48 inline bool ConnectionArnHasBeenSet() const { return m_connectionArnHasBeenSet; }
49 inline void SetConnectionArn(const Aws::String& value) { m_connectionArnHasBeenSet = true; m_connectionArn = value; }
50 inline void SetConnectionArn(Aws::String&& value) { m_connectionArnHasBeenSet = true; m_connectionArn = std::move(value); }
51 inline void SetConnectionArn(const char* value) { m_connectionArnHasBeenSet = true; m_connectionArn.assign(value); }
52 inline Connection& WithConnectionArn(const Aws::String& value) { SetConnectionArn(value); return *this;}
53 inline Connection& WithConnectionArn(Aws::String&& value) { SetConnectionArn(std::move(value)); return *this;}
54 inline Connection& WithConnectionArn(const char* value) { SetConnectionArn(value); return *this;}
56
58
61 inline const Aws::String& GetName() const{ return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
64 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
65 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 inline Connection& WithName(const Aws::String& value) { SetName(value); return *this;}
67 inline Connection& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
68 inline Connection& WithName(const char* value) { SetName(value); return *this;}
70
72
75 inline const ConnectionState& GetConnectionState() const{ return m_connectionState; }
76 inline bool ConnectionStateHasBeenSet() const { return m_connectionStateHasBeenSet; }
77 inline void SetConnectionState(const ConnectionState& value) { m_connectionStateHasBeenSet = true; m_connectionState = value; }
78 inline void SetConnectionState(ConnectionState&& value) { m_connectionStateHasBeenSet = true; m_connectionState = std::move(value); }
79 inline Connection& WithConnectionState(const ConnectionState& value) { SetConnectionState(value); return *this;}
80 inline Connection& WithConnectionState(ConnectionState&& value) { SetConnectionState(std::move(value)); return *this;}
82
84
87 inline const Aws::String& GetStateReason() const{ return m_stateReason; }
88 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
89 inline void SetStateReason(const Aws::String& value) { m_stateReasonHasBeenSet = true; m_stateReason = value; }
90 inline void SetStateReason(Aws::String&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::move(value); }
91 inline void SetStateReason(const char* value) { m_stateReasonHasBeenSet = true; m_stateReason.assign(value); }
92 inline Connection& WithStateReason(const Aws::String& value) { SetStateReason(value); return *this;}
93 inline Connection& WithStateReason(Aws::String&& value) { SetStateReason(std::move(value)); return *this;}
94 inline Connection& WithStateReason(const char* value) { SetStateReason(value); return *this;}
96
98
102 inline const ConnectionAuthorizationType& GetAuthorizationType() const{ return m_authorizationType; }
103 inline bool AuthorizationTypeHasBeenSet() const { return m_authorizationTypeHasBeenSet; }
104 inline void SetAuthorizationType(const ConnectionAuthorizationType& value) { m_authorizationTypeHasBeenSet = true; m_authorizationType = value; }
105 inline void SetAuthorizationType(ConnectionAuthorizationType&& value) { m_authorizationTypeHasBeenSet = true; m_authorizationType = std::move(value); }
107 inline Connection& WithAuthorizationType(ConnectionAuthorizationType&& value) { SetAuthorizationType(std::move(value)); return *this;}
109
111
114 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
115 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
116 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
117 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
118 inline Connection& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
119 inline Connection& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
121
123
126 inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; }
127 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
128 inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
129 inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); }
130 inline Connection& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;}
131 inline Connection& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;}
133
135
138 inline const Aws::Utils::DateTime& GetLastAuthorizedTime() const{ return m_lastAuthorizedTime; }
139 inline bool LastAuthorizedTimeHasBeenSet() const { return m_lastAuthorizedTimeHasBeenSet; }
140 inline void SetLastAuthorizedTime(const Aws::Utils::DateTime& value) { m_lastAuthorizedTimeHasBeenSet = true; m_lastAuthorizedTime = value; }
141 inline void SetLastAuthorizedTime(Aws::Utils::DateTime&& value) { m_lastAuthorizedTimeHasBeenSet = true; m_lastAuthorizedTime = std::move(value); }
143 inline Connection& WithLastAuthorizedTime(Aws::Utils::DateTime&& value) { SetLastAuthorizedTime(std::move(value)); return *this;}
145 private:
146
147 Aws::String m_connectionArn;
148 bool m_connectionArnHasBeenSet = false;
149
150 Aws::String m_name;
151 bool m_nameHasBeenSet = false;
152
153 ConnectionState m_connectionState;
154 bool m_connectionStateHasBeenSet = false;
155
156 Aws::String m_stateReason;
157 bool m_stateReasonHasBeenSet = false;
158
159 ConnectionAuthorizationType m_authorizationType;
160 bool m_authorizationTypeHasBeenSet = false;
161
162 Aws::Utils::DateTime m_creationTime;
163 bool m_creationTimeHasBeenSet = false;
164
165 Aws::Utils::DateTime m_lastModifiedTime;
166 bool m_lastModifiedTimeHasBeenSet = false;
167
168 Aws::Utils::DateTime m_lastAuthorizedTime;
169 bool m_lastAuthorizedTimeHasBeenSet = false;
170 };
171
172} // namespace Model
173} // namespace EventBridge
174} // namespace Aws
const Aws::String & GetName() const
Definition Connection.h:61
void SetConnectionArn(const char *value)
Definition Connection.h:51
AWS_EVENTBRIDGE_API Connection(Aws::Utils::Json::JsonView jsonValue)
AWS_EVENTBRIDGE_API Connection & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetName(Aws::String &&value)
Definition Connection.h:64
void SetConnectionArn(const Aws::String &value)
Definition Connection.h:49
Connection & WithName(Aws::String &&value)
Definition Connection.h:67
Connection & WithConnectionArn(const Aws::String &value)
Definition Connection.h:52
Connection & WithStateReason(const Aws::String &value)
Definition Connection.h:92
void SetAuthorizationType(ConnectionAuthorizationType &&value)
Definition Connection.h:105
void SetLastAuthorizedTime(Aws::Utils::DateTime &&value)
Definition Connection.h:141
Connection & WithAuthorizationType(ConnectionAuthorizationType &&value)
Definition Connection.h:107
AWS_EVENTBRIDGE_API Connection()
const Aws::String & GetConnectionArn() const
Definition Connection.h:47
Connection & WithLastAuthorizedTime(const Aws::Utils::DateTime &value)
Definition Connection.h:142
void SetLastAuthorizedTime(const Aws::Utils::DateTime &value)
Definition Connection.h:140
void SetStateReason(Aws::String &&value)
Definition Connection.h:90
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition Connection.h:126
const Aws::String & GetStateReason() const
Definition Connection.h:87
Connection & WithConnectionArn(const char *value)
Definition Connection.h:54
Connection & WithCreationTime(const Aws::Utils::DateTime &value)
Definition Connection.h:118
AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const
Connection & WithConnectionState(const ConnectionState &value)
Definition Connection.h:79
Connection & WithLastModifiedTime(Aws::Utils::DateTime &&value)
Definition Connection.h:131
void SetConnectionArn(Aws::String &&value)
Definition Connection.h:50
void SetCreationTime(Aws::Utils::DateTime &&value)
Definition Connection.h:117
Connection & WithLastModifiedTime(const Aws::Utils::DateTime &value)
Definition Connection.h:130
Connection & WithName(const char *value)
Definition Connection.h:68
Connection & WithConnectionArn(Aws::String &&value)
Definition Connection.h:53
const Aws::Utils::DateTime & GetLastAuthorizedTime() const
Definition Connection.h:138
Connection & WithAuthorizationType(const ConnectionAuthorizationType &value)
Definition Connection.h:106
void SetConnectionState(const ConnectionState &value)
Definition Connection.h:77
void SetConnectionState(ConnectionState &&value)
Definition Connection.h:78
Connection & WithCreationTime(Aws::Utils::DateTime &&value)
Definition Connection.h:119
const ConnectionAuthorizationType & GetAuthorizationType() const
Definition Connection.h:102
Connection & WithStateReason(const char *value)
Definition Connection.h:94
void SetStateReason(const Aws::String &value)
Definition Connection.h:89
Connection & WithLastAuthorizedTime(Aws::Utils::DateTime &&value)
Definition Connection.h:143
void SetName(const char *value)
Definition Connection.h:65
Connection & WithStateReason(Aws::String &&value)
Definition Connection.h:93
void SetLastModifiedTime(const Aws::Utils::DateTime &value)
Definition Connection.h:128
void SetLastModifiedTime(Aws::Utils::DateTime &&value)
Definition Connection.h:129
void SetStateReason(const char *value)
Definition Connection.h:91
Connection & WithName(const Aws::String &value)
Definition Connection.h:66
const Aws::Utils::DateTime & GetCreationTime() const
Definition Connection.h:114
void SetName(const Aws::String &value)
Definition Connection.h:63
void SetCreationTime(const Aws::Utils::DateTime &value)
Definition Connection.h:116
Connection & WithConnectionState(ConnectionState &&value)
Definition Connection.h:80
const ConnectionState & GetConnectionState() const
Definition Connection.h:75
void SetAuthorizationType(const ConnectionAuthorizationType &value)
Definition Connection.h:104
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue