AWS SDK for C++

AWS SDK for C++ Version 1.11.779

Loading...
Searching...
No Matches
DeleteConnectionResult.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 DeleteConnectionResult() = 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 DeleteConnectionResult& 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 DeleteConnectionResult& WithCreationTime(CreationTimeT&& value) {
76 SetCreationTime(std::forward<CreationTimeT>(value));
77 return *this;
78 }
80
82
86 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
87 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
88 void SetLastModifiedTime(LastModifiedTimeT&& value) {
89 m_lastModifiedTimeHasBeenSet = true;
90 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
91 }
92 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
93 DeleteConnectionResult& WithLastModifiedTime(LastModifiedTimeT&& value) {
94 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
95 return *this;
96 }
98
100
104 inline const Aws::Utils::DateTime& GetLastAuthorizedTime() const { return m_lastAuthorizedTime; }
105 template <typename LastAuthorizedTimeT = Aws::Utils::DateTime>
106 void SetLastAuthorizedTime(LastAuthorizedTimeT&& value) {
107 m_lastAuthorizedTimeHasBeenSet = true;
108 m_lastAuthorizedTime = std::forward<LastAuthorizedTimeT>(value);
109 }
110 template <typename LastAuthorizedTimeT = Aws::Utils::DateTime>
111 DeleteConnectionResult& WithLastAuthorizedTime(LastAuthorizedTimeT&& value) {
112 SetLastAuthorizedTime(std::forward<LastAuthorizedTimeT>(value));
113 return *this;
114 }
116
118
119 inline const Aws::String& GetRequestId() const { return m_requestId; }
120 template <typename RequestIdT = Aws::String>
121 void SetRequestId(RequestIdT&& value) {
122 m_requestIdHasBeenSet = true;
123 m_requestId = std::forward<RequestIdT>(value);
124 }
125 template <typename RequestIdT = Aws::String>
127 SetRequestId(std::forward<RequestIdT>(value));
128 return *this;
129 }
131 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
132
133 private:
134 Aws::String m_connectionArn;
135
136 ConnectionState m_connectionState{ConnectionState::NOT_SET};
137
138 Aws::Utils::DateTime m_creationTime{};
139
140 Aws::Utils::DateTime m_lastModifiedTime{};
141
142 Aws::Utils::DateTime m_lastAuthorizedTime{};
143
144 Aws::String m_requestId;
145 Aws::Http::HttpResponseCode m_HttpResponseCode;
146 bool m_connectionArnHasBeenSet = false;
147 bool m_connectionStateHasBeenSet = false;
148 bool m_creationTimeHasBeenSet = false;
149 bool m_lastModifiedTimeHasBeenSet = false;
150 bool m_lastAuthorizedTimeHasBeenSet = false;
151 bool m_requestIdHasBeenSet = false;
152};
153
154} // namespace Model
155} // namespace EventBridge
156} // namespace Aws
DeleteConnectionResult & WithCreationTime(CreationTimeT &&value)
DeleteConnectionResult & WithLastAuthorizedTime(LastAuthorizedTimeT &&value)
const Aws::Utils::DateTime & GetLastAuthorizedTime() const
AWS_EVENTBRIDGE_API DeleteConnectionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetCreationTime() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
DeleteConnectionResult & WithConnectionArn(ConnectionArnT &&value)
void SetLastAuthorizedTime(LastAuthorizedTimeT &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
AWS_EVENTBRIDGE_API DeleteConnectionResult()=default
DeleteConnectionResult & WithConnectionState(ConnectionState value)
AWS_EVENTBRIDGE_API DeleteConnectionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DeleteConnectionResult & WithLastModifiedTime(LastModifiedTimeT &&value)
DeleteConnectionResult & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue