AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
GetEventActionResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/dataexchange/DataExchange_EXPORTS.h>
11#include <aws/dataexchange/model/Action.h>
12#include <aws/dataexchange/model/Event.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace DataExchange {
26namespace Model {
28 public:
29 AWS_DATAEXCHANGE_API GetEventActionResult() = default;
32
34
37 inline const Action& GetAction() const { return m_action; }
38 template <typename ActionT = Action>
39 void SetAction(ActionT&& value) {
40 m_actionHasBeenSet = true;
41 m_action = std::forward<ActionT>(value);
42 }
43 template <typename ActionT = Action>
44 GetEventActionResult& WithAction(ActionT&& value) {
45 SetAction(std::forward<ActionT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetArn() const { return m_arn; }
55 template <typename ArnT = Aws::String>
56 void SetArn(ArnT&& value) {
57 m_arnHasBeenSet = true;
58 m_arn = std::forward<ArnT>(value);
59 }
60 template <typename ArnT = Aws::String>
62 SetArn(std::forward<ArnT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
72 template <typename CreatedAtT = Aws::Utils::DateTime>
73 void SetCreatedAt(CreatedAtT&& value) {
74 m_createdAtHasBeenSet = true;
75 m_createdAt = std::forward<CreatedAtT>(value);
76 }
77 template <typename CreatedAtT = Aws::Utils::DateTime>
78 GetEventActionResult& WithCreatedAt(CreatedAtT&& value) {
79 SetCreatedAt(std::forward<CreatedAtT>(value));
80 return *this;
81 }
83
85
88 inline const Event& GetEvent() const { return m_event; }
89 template <typename EventT = Event>
90 void SetEvent(EventT&& value) {
91 m_eventHasBeenSet = true;
92 m_event = std::forward<EventT>(value);
93 }
94 template <typename EventT = Event>
96 SetEvent(std::forward<EventT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::String& GetId() const { return m_id; }
106 template <typename IdT = Aws::String>
107 void SetId(IdT&& value) {
108 m_idHasBeenSet = true;
109 m_id = std::forward<IdT>(value);
110 }
111 template <typename IdT = Aws::String>
113 SetId(std::forward<IdT>(value));
114 return *this;
115 }
117
119
122 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
123 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
124 void SetTags(TagsT&& value) {
125 m_tagsHasBeenSet = true;
126 m_tags = std::forward<TagsT>(value);
127 }
128 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
130 SetTags(std::forward<TagsT>(value));
131 return *this;
132 }
133 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
134 GetEventActionResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
135 m_tagsHasBeenSet = true;
136 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
137 return *this;
138 }
140
142
146 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
147 template <typename UpdatedAtT = Aws::Utils::DateTime>
148 void SetUpdatedAt(UpdatedAtT&& value) {
149 m_updatedAtHasBeenSet = true;
150 m_updatedAt = std::forward<UpdatedAtT>(value);
151 }
152 template <typename UpdatedAtT = Aws::Utils::DateTime>
153 GetEventActionResult& WithUpdatedAt(UpdatedAtT&& value) {
154 SetUpdatedAt(std::forward<UpdatedAtT>(value));
155 return *this;
156 }
158
160
161 inline const Aws::String& GetRequestId() const { return m_requestId; }
162 template <typename RequestIdT = Aws::String>
163 void SetRequestId(RequestIdT&& value) {
164 m_requestIdHasBeenSet = true;
165 m_requestId = std::forward<RequestIdT>(value);
166 }
167 template <typename RequestIdT = Aws::String>
168 GetEventActionResult& WithRequestId(RequestIdT&& value) {
169 SetRequestId(std::forward<RequestIdT>(value));
170 return *this;
171 }
173 private:
174 Action m_action;
175
176 Aws::String m_arn;
177
178 Aws::Utils::DateTime m_createdAt{};
179
180 Event m_event;
181
182 Aws::String m_id;
183
185
186 Aws::Utils::DateTime m_updatedAt{};
187
188 Aws::String m_requestId;
189 bool m_actionHasBeenSet = false;
190 bool m_arnHasBeenSet = false;
191 bool m_createdAtHasBeenSet = false;
192 bool m_eventHasBeenSet = false;
193 bool m_idHasBeenSet = false;
194 bool m_tagsHasBeenSet = false;
195 bool m_updatedAtHasBeenSet = false;
196 bool m_requestIdHasBeenSet = false;
197};
198
199} // namespace Model
200} // namespace DataExchange
201} // 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)
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