AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
DescribeEventSourceResult.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/EventSourceState.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 DescribeEventSourceResult() = default;
30
32
35 inline const Aws::String& GetArn() const { return m_arn; }
36 template <typename ArnT = Aws::String>
37 void SetArn(ArnT&& value) {
38 m_arnHasBeenSet = true;
39 m_arn = std::forward<ArnT>(value);
40 }
41 template <typename ArnT = Aws::String>
43 SetArn(std::forward<ArnT>(value));
44 return *this;
45 }
47
49
52 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
53 template <typename CreatedByT = Aws::String>
54 void SetCreatedBy(CreatedByT&& value) {
55 m_createdByHasBeenSet = true;
56 m_createdBy = std::forward<CreatedByT>(value);
57 }
58 template <typename CreatedByT = Aws::String>
60 SetCreatedBy(std::forward<CreatedByT>(value));
61 return *this;
62 }
64
66
69 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
70 template <typename CreationTimeT = Aws::Utils::DateTime>
71 void SetCreationTime(CreationTimeT&& value) {
72 m_creationTimeHasBeenSet = true;
73 m_creationTime = std::forward<CreationTimeT>(value);
74 }
75 template <typename CreationTimeT = Aws::Utils::DateTime>
77 SetCreationTime(std::forward<CreationTimeT>(value));
78 return *this;
79 }
81
83
87 inline const Aws::Utils::DateTime& GetExpirationTime() const { return m_expirationTime; }
88 template <typename ExpirationTimeT = Aws::Utils::DateTime>
89 void SetExpirationTime(ExpirationTimeT&& value) {
90 m_expirationTimeHasBeenSet = true;
91 m_expirationTime = std::forward<ExpirationTimeT>(value);
92 }
93 template <typename ExpirationTimeT = Aws::Utils::DateTime>
95 SetExpirationTime(std::forward<ExpirationTimeT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::String& GetName() const { return m_name; }
105 template <typename NameT = Aws::String>
106 void SetName(NameT&& value) {
107 m_nameHasBeenSet = true;
108 m_name = std::forward<NameT>(value);
109 }
110 template <typename NameT = Aws::String>
112 SetName(std::forward<NameT>(value));
113 return *this;
114 }
116
118
125 inline EventSourceState GetState() const { return m_state; }
126 inline void SetState(EventSourceState value) {
127 m_stateHasBeenSet = true;
128 m_state = value;
129 }
131 SetState(value);
132 return *this;
133 }
135
137
138 inline const Aws::String& GetRequestId() const { return m_requestId; }
139 template <typename RequestIdT = Aws::String>
140 void SetRequestId(RequestIdT&& value) {
141 m_requestIdHasBeenSet = true;
142 m_requestId = std::forward<RequestIdT>(value);
143 }
144 template <typename RequestIdT = Aws::String>
146 SetRequestId(std::forward<RequestIdT>(value));
147 return *this;
148 }
150 private:
151 Aws::String m_arn;
152
153 Aws::String m_createdBy;
154
155 Aws::Utils::DateTime m_creationTime{};
156
157 Aws::Utils::DateTime m_expirationTime{};
158
159 Aws::String m_name;
160
162
163 Aws::String m_requestId;
164 bool m_arnHasBeenSet = false;
165 bool m_createdByHasBeenSet = false;
166 bool m_creationTimeHasBeenSet = false;
167 bool m_expirationTimeHasBeenSet = false;
168 bool m_nameHasBeenSet = false;
169 bool m_stateHasBeenSet = false;
170 bool m_requestIdHasBeenSet = false;
171};
172
173} // namespace Model
174} // namespace EventBridge
175} // namespace Aws
DescribeEventSourceResult & WithExpirationTime(ExpirationTimeT &&value)
DescribeEventSourceResult & WithCreationTime(CreationTimeT &&value)
DescribeEventSourceResult & WithArn(ArnT &&value)
DescribeEventSourceResult & WithState(EventSourceState value)
DescribeEventSourceResult & WithName(NameT &&value)
AWS_EVENTBRIDGE_API DescribeEventSourceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeEventSourceResult & WithCreatedBy(CreatedByT &&value)
DescribeEventSourceResult & WithRequestId(RequestIdT &&value)
AWS_EVENTBRIDGE_API DescribeEventSourceResult()=default
AWS_EVENTBRIDGE_API DescribeEventSourceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue