AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateConnectionResult.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 CreateConnectionResult() = 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 CreateConnectionResult& 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 CreateConnectionResult& 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 CreateConnectionResult& WithLastModifiedTime(LastModifiedTimeT&& value) {
92 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
93 return *this;
94 }
96
98
99 inline const Aws::String& GetRequestId() const { return m_requestId; }
100 template <typename RequestIdT = Aws::String>
101 void SetRequestId(RequestIdT&& value) {
102 m_requestIdHasBeenSet = true;
103 m_requestId = std::forward<RequestIdT>(value);
104 }
105 template <typename RequestIdT = Aws::String>
107 SetRequestId(std::forward<RequestIdT>(value));
108 return *this;
109 }
111 private:
112 Aws::String m_connectionArn;
113
114 ConnectionState m_connectionState{ConnectionState::NOT_SET};
115
116 Aws::Utils::DateTime m_creationTime{};
117
118 Aws::Utils::DateTime m_lastModifiedTime{};
119
120 Aws::String m_requestId;
121 bool m_connectionArnHasBeenSet = false;
122 bool m_connectionStateHasBeenSet = false;
123 bool m_creationTimeHasBeenSet = false;
124 bool m_lastModifiedTimeHasBeenSet = false;
125 bool m_requestIdHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace EventBridge
130} // 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
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