AWS SDK for C++

AWS SDK for C++ Version 1.11.780

Loading...
Searching...
No Matches
CreateConnectionResult.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 CreateConnectionResult() = 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 CreateConnectionResult& 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 CreateConnectionResult& 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 CreateConnectionResult& WithLastModifiedTime(LastModifiedTimeT&& value) {
93 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
94 return *this;
95 }
97
99
100 inline const Aws::String& GetRequestId() const { return m_requestId; }
101 template <typename RequestIdT = Aws::String>
102 void SetRequestId(RequestIdT&& value) {
103 m_requestIdHasBeenSet = true;
104 m_requestId = std::forward<RequestIdT>(value);
105 }
106 template <typename RequestIdT = Aws::String>
108 SetRequestId(std::forward<RequestIdT>(value));
109 return *this;
110 }
112 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
113
114 private:
115 Aws::String m_connectionArn;
116
117 ConnectionState m_connectionState{ConnectionState::NOT_SET};
118
119 Aws::Utils::DateTime m_creationTime{};
120
121 Aws::Utils::DateTime m_lastModifiedTime{};
122
123 Aws::String m_requestId;
124 Aws::Http::HttpResponseCode m_HttpResponseCode;
125 bool m_connectionArnHasBeenSet = false;
126 bool m_connectionStateHasBeenSet = false;
127 bool m_creationTimeHasBeenSet = false;
128 bool m_lastModifiedTimeHasBeenSet = false;
129 bool m_requestIdHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace EventBridge
134} // namespace Aws
CreateConnectionResult & WithLastModifiedTime(LastModifiedTimeT &&value)
CreateConnectionResult & WithRequestId(RequestIdT &&value)
AWS_EVENTBRIDGE_API CreateConnectionResult()=default
AWS_EVENTBRIDGE_API CreateConnectionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateConnectionResult & WithConnectionArn(ConnectionArnT &&value)
CreateConnectionResult & WithCreationTime(CreationTimeT &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
CreateConnectionResult & WithConnectionState(ConnectionState value)
AWS_EVENTBRIDGE_API CreateConnectionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetCreationTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue