AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ConnectionArnT = Aws::String>
50 void SetConnectionArn(ConnectionArnT&& value) { m_connectionArnHasBeenSet = true; m_connectionArn = std::forward<ConnectionArnT>(value); }
51 template<typename ConnectionArnT = Aws::String>
52 Connection& WithConnectionArn(ConnectionArnT&& value) { SetConnectionArn(std::forward<ConnectionArnT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
63 template<typename NameT = Aws::String>
64 Connection& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
66
68
71 inline ConnectionState GetConnectionState() const { return m_connectionState; }
72 inline bool ConnectionStateHasBeenSet() const { return m_connectionStateHasBeenSet; }
73 inline void SetConnectionState(ConnectionState value) { m_connectionStateHasBeenSet = true; m_connectionState = value; }
74 inline Connection& WithConnectionState(ConnectionState value) { SetConnectionState(value); return *this;}
76
78
81 inline const Aws::String& GetStateReason() const { return m_stateReason; }
82 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
83 template<typename StateReasonT = Aws::String>
84 void SetStateReason(StateReasonT&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::forward<StateReasonT>(value); }
85 template<typename StateReasonT = Aws::String>
86 Connection& WithStateReason(StateReasonT&& value) { SetStateReason(std::forward<StateReasonT>(value)); return *this;}
88
90
93 inline ConnectionAuthorizationType GetAuthorizationType() const { return m_authorizationType; }
94 inline bool AuthorizationTypeHasBeenSet() const { return m_authorizationTypeHasBeenSet; }
95 inline void SetAuthorizationType(ConnectionAuthorizationType value) { m_authorizationTypeHasBeenSet = true; m_authorizationType = value; }
98
100
103 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
104 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
105 template<typename CreationTimeT = Aws::Utils::DateTime>
106 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
107 template<typename CreationTimeT = Aws::Utils::DateTime>
108 Connection& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
110
112
115 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
116 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
117 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
118 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
119 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
120 Connection& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
122
124
127 inline const Aws::Utils::DateTime& GetLastAuthorizedTime() const { return m_lastAuthorizedTime; }
128 inline bool LastAuthorizedTimeHasBeenSet() const { return m_lastAuthorizedTimeHasBeenSet; }
129 template<typename LastAuthorizedTimeT = Aws::Utils::DateTime>
130 void SetLastAuthorizedTime(LastAuthorizedTimeT&& value) { m_lastAuthorizedTimeHasBeenSet = true; m_lastAuthorizedTime = std::forward<LastAuthorizedTimeT>(value); }
131 template<typename LastAuthorizedTimeT = Aws::Utils::DateTime>
132 Connection& WithLastAuthorizedTime(LastAuthorizedTimeT&& value) { SetLastAuthorizedTime(std::forward<LastAuthorizedTimeT>(value)); return *this;}
134 private:
135
136 Aws::String m_connectionArn;
137 bool m_connectionArnHasBeenSet = false;
138
139 Aws::String m_name;
140 bool m_nameHasBeenSet = false;
141
142 ConnectionState m_connectionState{ConnectionState::NOT_SET};
143 bool m_connectionStateHasBeenSet = false;
144
145 Aws::String m_stateReason;
146 bool m_stateReasonHasBeenSet = false;
147
149 bool m_authorizationTypeHasBeenSet = false;
150
151 Aws::Utils::DateTime m_creationTime{};
152 bool m_creationTimeHasBeenSet = false;
153
154 Aws::Utils::DateTime m_lastModifiedTime{};
155 bool m_lastModifiedTimeHasBeenSet = false;
156
157 Aws::Utils::DateTime m_lastAuthorizedTime{};
158 bool m_lastAuthorizedTimeHasBeenSet = false;
159 };
160
161} // namespace Model
162} // namespace CloudWatchEvents
163} // namespace Aws
Connection & WithAuthorizationType(ConnectionAuthorizationType value)
Definition Connection.h:96
AWS_CLOUDWATCHEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAuthorizationType(ConnectionAuthorizationType value)
Definition Connection.h:95
void SetConnectionState(ConnectionState value)
Definition Connection.h:73
Connection & WithCreationTime(CreationTimeT &&value)
Definition Connection.h:108
ConnectionAuthorizationType GetAuthorizationType() const
Definition Connection.h:93
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition Connection.h:115
const Aws::String & GetStateReason() const
Definition Connection.h:81
void SetStateReason(StateReasonT &&value)
Definition Connection.h:84
const Aws::Utils::DateTime & GetCreationTime() const
Definition Connection.h:103
const Aws::String & GetName() const
Definition Connection.h:59
Connection & WithName(NameT &&value)
Definition Connection.h:64
Connection & WithConnectionState(ConnectionState value)
Definition Connection.h:74
void SetLastModifiedTime(LastModifiedTimeT &&value)
Definition Connection.h:118
ConnectionState GetConnectionState() const
Definition Connection.h:71
Connection & WithConnectionArn(ConnectionArnT &&value)
Definition Connection.h:52
Connection & WithLastModifiedTime(LastModifiedTimeT &&value)
Definition Connection.h:120
AWS_CLOUDWATCHEVENTS_API Connection(Aws::Utils::Json::JsonView jsonValue)
Connection & WithLastAuthorizedTime(LastAuthorizedTimeT &&value)
Definition Connection.h:132
void SetCreationTime(CreationTimeT &&value)
Definition Connection.h:106
Connection & WithStateReason(StateReasonT &&value)
Definition Connection.h:86
const Aws::String & GetConnectionArn() const
Definition Connection.h:47
void SetConnectionArn(ConnectionArnT &&value)
Definition Connection.h:50
AWS_CLOUDWATCHEVENTS_API Connection()=default
const Aws::Utils::DateTime & GetLastAuthorizedTime() const
Definition Connection.h:127
void SetLastAuthorizedTime(LastAuthorizedTimeT &&value)
Definition Connection.h:130
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