AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetEventActionResult.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/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/dataexchange/DataExchange_EXPORTS.h>
12#include <aws/dataexchange/model/Action.h>
13#include <aws/dataexchange/model/Event.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace DataExchange {
27namespace Model {
29 public:
30 AWS_DATAEXCHANGE_API GetEventActionResult() = default;
33
35
38 inline const Action& GetAction() const { return m_action; }
39 template <typename ActionT = Action>
40 void SetAction(ActionT&& value) {
41 m_actionHasBeenSet = true;
42 m_action = std::forward<ActionT>(value);
43 }
44 template <typename ActionT = Action>
45 GetEventActionResult& WithAction(ActionT&& value) {
46 SetAction(std::forward<ActionT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetArn() const { return m_arn; }
56 template <typename ArnT = Aws::String>
57 void SetArn(ArnT&& value) {
58 m_arnHasBeenSet = true;
59 m_arn = std::forward<ArnT>(value);
60 }
61 template <typename ArnT = Aws::String>
63 SetArn(std::forward<ArnT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
73 template <typename CreatedAtT = Aws::Utils::DateTime>
74 void SetCreatedAt(CreatedAtT&& value) {
75 m_createdAtHasBeenSet = true;
76 m_createdAt = std::forward<CreatedAtT>(value);
77 }
78 template <typename CreatedAtT = Aws::Utils::DateTime>
79 GetEventActionResult& WithCreatedAt(CreatedAtT&& value) {
80 SetCreatedAt(std::forward<CreatedAtT>(value));
81 return *this;
82 }
84
86
89 inline const Event& GetEvent() const { return m_event; }
90 template <typename EventT = Event>
91 void SetEvent(EventT&& value) {
92 m_eventHasBeenSet = true;
93 m_event = std::forward<EventT>(value);
94 }
95 template <typename EventT = Event>
97 SetEvent(std::forward<EventT>(value));
98 return *this;
99 }
101
103
106 inline const Aws::String& GetId() const { return m_id; }
107 template <typename IdT = Aws::String>
108 void SetId(IdT&& value) {
109 m_idHasBeenSet = true;
110 m_id = std::forward<IdT>(value);
111 }
112 template <typename IdT = Aws::String>
114 SetId(std::forward<IdT>(value));
115 return *this;
116 }
118
120
123 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
124 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
125 void SetTags(TagsT&& value) {
126 m_tagsHasBeenSet = true;
127 m_tags = std::forward<TagsT>(value);
128 }
129 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
131 SetTags(std::forward<TagsT>(value));
132 return *this;
133 }
134 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
135 GetEventActionResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
136 m_tagsHasBeenSet = true;
137 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
138 return *this;
139 }
141
143
147 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
148 template <typename UpdatedAtT = Aws::Utils::DateTime>
149 void SetUpdatedAt(UpdatedAtT&& value) {
150 m_updatedAtHasBeenSet = true;
151 m_updatedAt = std::forward<UpdatedAtT>(value);
152 }
153 template <typename UpdatedAtT = Aws::Utils::DateTime>
154 GetEventActionResult& WithUpdatedAt(UpdatedAtT&& value) {
155 SetUpdatedAt(std::forward<UpdatedAtT>(value));
156 return *this;
157 }
159
161
162 inline const Aws::String& GetRequestId() const { return m_requestId; }
163 template <typename RequestIdT = Aws::String>
164 void SetRequestId(RequestIdT&& value) {
165 m_requestIdHasBeenSet = true;
166 m_requestId = std::forward<RequestIdT>(value);
167 }
168 template <typename RequestIdT = Aws::String>
169 GetEventActionResult& WithRequestId(RequestIdT&& value) {
170 SetRequestId(std::forward<RequestIdT>(value));
171 return *this;
172 }
174 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
175
176 private:
177 Action m_action;
178
179 Aws::String m_arn;
180
181 Aws::Utils::DateTime m_createdAt{};
182
183 Event m_event;
184
185 Aws::String m_id;
186
188
189 Aws::Utils::DateTime m_updatedAt{};
190
191 Aws::String m_requestId;
192 Aws::Http::HttpResponseCode m_HttpResponseCode;
193 bool m_actionHasBeenSet = false;
194 bool m_arnHasBeenSet = false;
195 bool m_createdAtHasBeenSet = false;
196 bool m_eventHasBeenSet = false;
197 bool m_idHasBeenSet = false;
198 bool m_tagsHasBeenSet = false;
199 bool m_updatedAtHasBeenSet = false;
200 bool m_requestIdHasBeenSet = false;
201};
202
203} // namespace Model
204} // namespace DataExchange
205} // namespace Aws
AWS_DATAEXCHANGE_API GetEventActionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetEventActionResult & WithRequestId(RequestIdT &&value)
GetEventActionResult & WithArn(ArnT &&value)
GetEventActionResult & WithTags(TagsT &&value)
AWS_DATAEXCHANGE_API GetEventActionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetCreatedAt() const
GetEventActionResult & WithUpdatedAt(UpdatedAtT &&value)
AWS_DATAEXCHANGE_API GetEventActionResult()=default
GetEventActionResult & WithCreatedAt(CreatedAtT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::Utils::DateTime & GetUpdatedAt() const
GetEventActionResult & WithAction(ActionT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetEventActionResult & WithEvent(EventT &&value)
GetEventActionResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue