AWS SDK for C++

AWS SDK for C++ Version 1.11.779

Loading...
Searching...
No Matches
UpdateConnectionResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/eventbridge/EventBridge_EXPORTS.h>
11#include <aws/eventbridge/model/ConnectionState.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace EventBridge {
25namespace Model {
27 public:
28 AWS_EVENTBRIDGE_API UpdateConnectionResult() = default;
31
33
36 inline const Aws::String& GetConnectionArn() const { return m_connectionArn; }
37 template <typename ConnectionArnT = Aws::String>
38 void SetConnectionArn(ConnectionArnT&& value) {
39 m_connectionArnHasBeenSet = true;
40 m_connectionArn = std::forward<ConnectionArnT>(value);
41 }
42 template <typename ConnectionArnT = Aws::String>
43 UpdateConnectionResult& WithConnectionArn(ConnectionArnT&& value) {
44 SetConnectionArn(std::forward<ConnectionArnT>(value));
45 return *this;
46 }
48
50
53 inline ConnectionState GetConnectionState() const { return m_connectionState; }
55 m_connectionStateHasBeenSet = true;
56 m_connectionState = value;
57 }
59 SetConnectionState(value);
60 return *this;
61 }
63
65
68 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
69 template <typename CreationTimeT = Aws::Utils::DateTime>
70 void SetCreationTime(CreationTimeT&& value) {
71 m_creationTimeHasBeenSet = true;
72 m_creationTime = std::forward<CreationTimeT>(value);
73 }
74 template <typename CreationTimeT = Aws::Utils::DateTime>
75 UpdateConnectionResult& WithCreationTime(CreationTimeT&& value) {
76 SetCreationTime(std::forward<CreationTimeT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
86 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
87 void SetLastModifiedTime(LastModifiedTimeT&& value) {
88 m_lastModifiedTimeHasBeenSet = true;
89 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
90 }
91 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
92 UpdateConnectionResult& WithLastModifiedTime(LastModifiedTimeT&& value) {
93 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::Utils::DateTime& GetLastAuthorizedTime() const { return m_lastAuthorizedTime; }
103 template <typename LastAuthorizedTimeT = Aws::Utils::DateTime>
104 void SetLastAuthorizedTime(LastAuthorizedTimeT&& value) {
105 m_lastAuthorizedTimeHasBeenSet = true;
106 m_lastAuthorizedTime = std::forward<LastAuthorizedTimeT>(value);
107 }
108 template <typename LastAuthorizedTimeT = Aws::Utils::DateTime>
109 UpdateConnectionResult& WithLastAuthorizedTime(LastAuthorizedTimeT&& value) {
110 SetLastAuthorizedTime(std::forward<LastAuthorizedTimeT>(value));
111 return *this;
112 }
114
116
117 inline const Aws::String& GetRequestId() const { return m_requestId; }
118 template <typename RequestIdT = Aws::String>
119 void SetRequestId(RequestIdT&& value) {
120 m_requestIdHasBeenSet = true;
121 m_requestId = std::forward<RequestIdT>(value);
122 }
123 template <typename RequestIdT = Aws::String>
125 SetRequestId(std::forward<RequestIdT>(value));
126 return *this;
127 }
129 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
130
131 private:
132 Aws::String m_connectionArn;
133
134 ConnectionState m_connectionState{ConnectionState::NOT_SET};
135
136 Aws::Utils::DateTime m_creationTime{};
137
138 Aws::Utils::DateTime m_lastModifiedTime{};
139
140 Aws::Utils::DateTime m_lastAuthorizedTime{};
141
142 Aws::String m_requestId;
143 Aws::Http::HttpResponseCode m_HttpResponseCode;
144 bool m_connectionArnHasBeenSet = false;
145 bool m_connectionStateHasBeenSet = false;
146 bool m_creationTimeHasBeenSet = false;
147 bool m_lastModifiedTimeHasBeenSet = false;
148 bool m_lastAuthorizedTimeHasBeenSet = false;
149 bool m_requestIdHasBeenSet = false;
150};
151
152} // namespace Model
153} // namespace EventBridge
154} // 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)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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