AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
UpdateConnectionResult.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/ConnectionState.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace EventBridge {
24namespace Model {
26 public:
27 AWS_EVENTBRIDGE_API UpdateConnectionResult() = default;
30
32
35 inline const Aws::String& GetConnectionArn() const { return m_connectionArn; }
36 template <typename ConnectionArnT = Aws::String>
37 void SetConnectionArn(ConnectionArnT&& value) {
38 m_connectionArnHasBeenSet = true;
39 m_connectionArn = std::forward<ConnectionArnT>(value);
40 }
41 template <typename ConnectionArnT = Aws::String>
42 UpdateConnectionResult& WithConnectionArn(ConnectionArnT&& value) {
43 SetConnectionArn(std::forward<ConnectionArnT>(value));
44 return *this;
45 }
47
49
52 inline ConnectionState GetConnectionState() const { return m_connectionState; }
54 m_connectionStateHasBeenSet = true;
55 m_connectionState = value;
56 }
58 SetConnectionState(value);
59 return *this;
60 }
62
64
67 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
68 template <typename CreationTimeT = Aws::Utils::DateTime>
69 void SetCreationTime(CreationTimeT&& value) {
70 m_creationTimeHasBeenSet = true;
71 m_creationTime = std::forward<CreationTimeT>(value);
72 }
73 template <typename CreationTimeT = Aws::Utils::DateTime>
74 UpdateConnectionResult& WithCreationTime(CreationTimeT&& value) {
75 SetCreationTime(std::forward<CreationTimeT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
85 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
86 void SetLastModifiedTime(LastModifiedTimeT&& value) {
87 m_lastModifiedTimeHasBeenSet = true;
88 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
89 }
90 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
91 UpdateConnectionResult& WithLastModifiedTime(LastModifiedTimeT&& value) {
92 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::Utils::DateTime& GetLastAuthorizedTime() const { return m_lastAuthorizedTime; }
102 template <typename LastAuthorizedTimeT = Aws::Utils::DateTime>
103 void SetLastAuthorizedTime(LastAuthorizedTimeT&& value) {
104 m_lastAuthorizedTimeHasBeenSet = true;
105 m_lastAuthorizedTime = std::forward<LastAuthorizedTimeT>(value);
106 }
107 template <typename LastAuthorizedTimeT = Aws::Utils::DateTime>
108 UpdateConnectionResult& WithLastAuthorizedTime(LastAuthorizedTimeT&& value) {
109 SetLastAuthorizedTime(std::forward<LastAuthorizedTimeT>(value));
110 return *this;
111 }
113
115
116 inline const Aws::String& GetRequestId() const { return m_requestId; }
117 template <typename RequestIdT = Aws::String>
118 void SetRequestId(RequestIdT&& value) {
119 m_requestIdHasBeenSet = true;
120 m_requestId = std::forward<RequestIdT>(value);
121 }
122 template <typename RequestIdT = Aws::String>
124 SetRequestId(std::forward<RequestIdT>(value));
125 return *this;
126 }
128 private:
129 Aws::String m_connectionArn;
130
131 ConnectionState m_connectionState{ConnectionState::NOT_SET};
132
133 Aws::Utils::DateTime m_creationTime{};
134
135 Aws::Utils::DateTime m_lastModifiedTime{};
136
137 Aws::Utils::DateTime m_lastAuthorizedTime{};
138
139 Aws::String m_requestId;
140 bool m_connectionArnHasBeenSet = false;
141 bool m_connectionStateHasBeenSet = false;
142 bool m_creationTimeHasBeenSet = false;
143 bool m_lastModifiedTimeHasBeenSet = false;
144 bool m_lastAuthorizedTimeHasBeenSet = false;
145 bool m_requestIdHasBeenSet = false;
146};
147
148} // namespace Model
149} // namespace EventBridge
150} // namespace Aws
UpdateConnectionResult & WithConnectionArn(ConnectionArnT &&value)
UpdateConnectionResult & WithLastAuthorizedTime(LastAuthorizedTimeT &&value)
UpdateConnectionResult & WithLastModifiedTime(LastModifiedTimeT &&value)
AWS_EVENTBRIDGE_API UpdateConnectionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_EVENTBRIDGE_API UpdateConnectionResult()=default
const Aws::Utils::DateTime & GetLastModifiedTime() const
UpdateConnectionResult & WithRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetLastAuthorizedTime() const
UpdateConnectionResult & WithConnectionState(ConnectionState value)
AWS_EVENTBRIDGE_API UpdateConnectionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetLastAuthorizedTime(LastAuthorizedTimeT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
UpdateConnectionResult & WithCreationTime(CreationTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue