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/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() = default;
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 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
94 inline ConnectionAuthorizationType GetAuthorizationType() const { return m_authorizationType; }
95 inline bool AuthorizationTypeHasBeenSet() const { return m_authorizationTypeHasBeenSet; }
96 inline void SetAuthorizationType(ConnectionAuthorizationType value) { m_authorizationTypeHasBeenSet = true; m_authorizationType = value; }
99
101
104 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
105 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
106 template<typename CreationTimeT = Aws::Utils::DateTime>
107 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
108 template<typename CreationTimeT = Aws::Utils::DateTime>
109 Connection& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
111
113
116 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
117 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
118 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
119 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
120 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
121 Connection& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
123
125
128 inline const Aws::Utils::DateTime& GetLastAuthorizedTime() const { return m_lastAuthorizedTime; }
129 inline bool LastAuthorizedTimeHasBeenSet() const { return m_lastAuthorizedTimeHasBeenSet; }
130 template<typename LastAuthorizedTimeT = Aws::Utils::DateTime>
131 void SetLastAuthorizedTime(LastAuthorizedTimeT&& value) { m_lastAuthorizedTimeHasBeenSet = true; m_lastAuthorizedTime = std::forward<LastAuthorizedTimeT>(value); }
132 template<typename LastAuthorizedTimeT = Aws::Utils::DateTime>
133 Connection& WithLastAuthorizedTime(LastAuthorizedTimeT&& value) { SetLastAuthorizedTime(std::forward<LastAuthorizedTimeT>(value)); return *this;}
135 private:
136
137 Aws::String m_connectionArn;
138 bool m_connectionArnHasBeenSet = false;
139
140 Aws::String m_name;
141 bool m_nameHasBeenSet = false;
142
143 ConnectionState m_connectionState{ConnectionState::NOT_SET};
144 bool m_connectionStateHasBeenSet = false;
145
146 Aws::String m_stateReason;
147 bool m_stateReasonHasBeenSet = false;
148
150 bool m_authorizationTypeHasBeenSet = false;
151
152 Aws::Utils::DateTime m_creationTime{};
153 bool m_creationTimeHasBeenSet = false;
154
155 Aws::Utils::DateTime m_lastModifiedTime{};
156 bool m_lastModifiedTimeHasBeenSet = false;
157
158 Aws::Utils::DateTime m_lastAuthorizedTime{};
159 bool m_lastAuthorizedTimeHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace EventBridge
164} // namespace Aws
Connection & WithAuthorizationType(ConnectionAuthorizationType value)
Definition Connection.h:97
Connection & WithConnectionState(ConnectionState value)
Definition Connection.h:74
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:133
void SetAuthorizationType(ConnectionAuthorizationType value)
Definition Connection.h:96
ConnectionAuthorizationType GetAuthorizationType() const
Definition Connection.h:94
const Aws::String & GetConnectionArn() const
Definition Connection.h:47
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition Connection.h:116
const Aws::String & GetStateReason() const
Definition Connection.h:81
void SetStateReason(StateReasonT &&value)
Definition Connection.h:84
Connection & WithStateReason(StateReasonT &&value)
Definition Connection.h:86
AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const
ConnectionState GetConnectionState() const
Definition Connection.h:71
AWS_EVENTBRIDGE_API Connection()=default
void SetConnectionState(ConnectionState value)
Definition Connection.h:73
void SetLastAuthorizedTime(LastAuthorizedTimeT &&value)
Definition Connection.h:131
const Aws::Utils::DateTime & GetLastAuthorizedTime() const
Definition Connection.h:128
Connection & WithCreationTime(CreationTimeT &&value)
Definition Connection.h:109
void SetLastModifiedTime(LastModifiedTimeT &&value)
Definition Connection.h:119
Connection & WithLastModifiedTime(LastModifiedTimeT &&value)
Definition Connection.h:121
Connection & WithName(NameT &&value)
Definition Connection.h:64
void SetConnectionArn(ConnectionArnT &&value)
Definition Connection.h:50
Connection & WithConnectionArn(ConnectionArnT &&value)
Definition Connection.h:52
void SetCreationTime(CreationTimeT &&value)
Definition Connection.h:107
const Aws::Utils::DateTime & GetCreationTime() const
Definition Connection.h:104
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue