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/events/CloudWatchEvents_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/events/model/ConnectionState.h>
10#include <aws/events/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 CloudWatchEvents
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_CLOUDWATCHEVENTS_API Connection();
38 AWS_CLOUDWATCHEVENTS_API Connection(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CLOUDWATCHEVENTS_API Connection& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CLOUDWATCHEVENTS_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
101 inline const ConnectionAuthorizationType& GetAuthorizationType() const{ return m_authorizationType; }
102 inline bool AuthorizationTypeHasBeenSet() const { return m_authorizationTypeHasBeenSet; }
103 inline void SetAuthorizationType(const ConnectionAuthorizationType& value) { m_authorizationTypeHasBeenSet = true; m_authorizationType = value; }
104 inline void SetAuthorizationType(ConnectionAuthorizationType&& value) { m_authorizationTypeHasBeenSet = true; m_authorizationType = std::move(value); }
106 inline Connection& WithAuthorizationType(ConnectionAuthorizationType&& value) { SetAuthorizationType(std::move(value)); return *this;}
108
110
113 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
114 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
115 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
116 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
117 inline Connection& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
118 inline Connection& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
120
122
125 inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; }
126 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
127 inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
128 inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); }
129 inline Connection& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;}
130 inline Connection& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;}
132
134
137 inline const Aws::Utils::DateTime& GetLastAuthorizedTime() const{ return m_lastAuthorizedTime; }
138 inline bool LastAuthorizedTimeHasBeenSet() const { return m_lastAuthorizedTimeHasBeenSet; }
139 inline void SetLastAuthorizedTime(const Aws::Utils::DateTime& value) { m_lastAuthorizedTimeHasBeenSet = true; m_lastAuthorizedTime = value; }
140 inline void SetLastAuthorizedTime(Aws::Utils::DateTime&& value) { m_lastAuthorizedTimeHasBeenSet = true; m_lastAuthorizedTime = std::move(value); }
142 inline Connection& WithLastAuthorizedTime(Aws::Utils::DateTime&& value) { SetLastAuthorizedTime(std::move(value)); return *this;}
144 private:
145
146 Aws::String m_connectionArn;
147 bool m_connectionArnHasBeenSet = false;
148
149 Aws::String m_name;
150 bool m_nameHasBeenSet = false;
151
152 ConnectionState m_connectionState;
153 bool m_connectionStateHasBeenSet = false;
154
155 Aws::String m_stateReason;
156 bool m_stateReasonHasBeenSet = false;
157
158 ConnectionAuthorizationType m_authorizationType;
159 bool m_authorizationTypeHasBeenSet = false;
160
161 Aws::Utils::DateTime m_creationTime;
162 bool m_creationTimeHasBeenSet = false;
163
164 Aws::Utils::DateTime m_lastModifiedTime;
165 bool m_lastModifiedTimeHasBeenSet = false;
166
167 Aws::Utils::DateTime m_lastAuthorizedTime;
168 bool m_lastAuthorizedTimeHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace CloudWatchEvents
173} // namespace Aws
void SetCreationTime(const Aws::Utils::DateTime &value)
Definition Connection.h:115
AWS_CLOUDWATCHEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
Connection & WithAuthorizationType(ConnectionAuthorizationType &&value)
Definition Connection.h:106
void SetConnectionArn(const Aws::String &value)
Definition Connection.h:49
Connection & WithConnectionArn(const Aws::String &value)
Definition Connection.h:52
Connection & WithStateReason(Aws::String &&value)
Definition Connection.h:93
void SetConnectionArn(Aws::String &&value)
Definition Connection.h:50
Connection & WithName(const Aws::String &value)
Definition Connection.h:66
void SetStateReason(const Aws::String &value)
Definition Connection.h:89
void SetAuthorizationType(const ConnectionAuthorizationType &value)
Definition Connection.h:103
Connection & WithCreationTime(const Aws::Utils::DateTime &value)
Definition Connection.h:117
Connection & WithAuthorizationType(const ConnectionAuthorizationType &value)
Definition Connection.h:105
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition Connection.h:125
const Aws::String & GetStateReason() const
Definition Connection.h:87
Connection & WithStateReason(const char *value)
Definition Connection.h:94
void SetLastAuthorizedTime(Aws::Utils::DateTime &&value)
Definition Connection.h:140
const Aws::Utils::DateTime & GetCreationTime() const
Definition Connection.h:113
const Aws::String & GetName() const
Definition Connection.h:61
void SetName(Aws::String &&value)
Definition Connection.h:64
void SetStateReason(const char *value)
Definition Connection.h:91
Connection & WithConnectionArn(const char *value)
Definition Connection.h:54
Connection & WithConnectionState(ConnectionState &&value)
Definition Connection.h:80
Connection & WithName(Aws::String &&value)
Definition Connection.h:67
void SetName(const Aws::String &value)
Definition Connection.h:63
void SetLastModifiedTime(const Aws::Utils::DateTime &value)
Definition Connection.h:127
Connection & WithCreationTime(Aws::Utils::DateTime &&value)
Definition Connection.h:118
void SetLastModifiedTime(Aws::Utils::DateTime &&value)
Definition Connection.h:128
void SetConnectionState(ConnectionState &&value)
Definition Connection.h:78
const ConnectionState & GetConnectionState() const
Definition Connection.h:75
void SetAuthorizationType(ConnectionAuthorizationType &&value)
Definition Connection.h:104
AWS_CLOUDWATCHEVENTS_API Connection()
AWS_CLOUDWATCHEVENTS_API Connection(Aws::Utils::Json::JsonView jsonValue)
Connection & WithLastAuthorizedTime(const Aws::Utils::DateTime &value)
Definition Connection.h:141
Connection & WithStateReason(const Aws::String &value)
Definition Connection.h:92
void SetStateReason(Aws::String &&value)
Definition Connection.h:90
void SetCreationTime(Aws::Utils::DateTime &&value)
Definition Connection.h:116
const ConnectionAuthorizationType & GetAuthorizationType() const
Definition Connection.h:101
Connection & WithLastModifiedTime(Aws::Utils::DateTime &&value)
Definition Connection.h:130
void SetConnectionArn(const char *value)
Definition Connection.h:51
Connection & WithName(const char *value)
Definition Connection.h:68
const Aws::String & GetConnectionArn() const
Definition Connection.h:47
void SetLastAuthorizedTime(const Aws::Utils::DateTime &value)
Definition Connection.h:139
void SetConnectionState(const ConnectionState &value)
Definition Connection.h:77
Connection & WithConnectionArn(Aws::String &&value)
Definition Connection.h:53
const Aws::Utils::DateTime & GetLastAuthorizedTime() const
Definition Connection.h:137
Connection & WithConnectionState(const ConnectionState &value)
Definition Connection.h:79
Connection & WithLastAuthorizedTime(Aws::Utils::DateTime &&value)
Definition Connection.h:142
Connection & WithLastModifiedTime(const Aws::Utils::DateTime &value)
Definition Connection.h:129
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