AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
CreateEventActionResult.h
1
6#pragma once
7#include <aws/dataexchange/DataExchange_EXPORTS.h>
8#include <aws/dataexchange/model/Action.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/dataexchange/model/Event.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace DataExchange
28{
29namespace Model
30{
32 {
33 public:
34 AWS_DATAEXCHANGE_API CreateEventActionResult() = default;
37
38
40
43 inline const Action& GetAction() const { return m_action; }
44 template<typename ActionT = Action>
45 void SetAction(ActionT&& value) { m_actionHasBeenSet = true; m_action = std::forward<ActionT>(value); }
46 template<typename ActionT = Action>
47 CreateEventActionResult& WithAction(ActionT&& value) { SetAction(std::forward<ActionT>(value)); return *this;}
49
51
54 inline const Aws::String& GetArn() const { return m_arn; }
55 template<typename ArnT = Aws::String>
56 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
57 template<typename ArnT = Aws::String>
58 CreateEventActionResult& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
60
62
65 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
66 template<typename CreatedAtT = Aws::Utils::DateTime>
67 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
68 template<typename CreatedAtT = Aws::Utils::DateTime>
69 CreateEventActionResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
71
73
76 inline const Event& GetEvent() const { return m_event; }
77 template<typename EventT = Event>
78 void SetEvent(EventT&& value) { m_eventHasBeenSet = true; m_event = std::forward<EventT>(value); }
79 template<typename EventT = Event>
80 CreateEventActionResult& WithEvent(EventT&& value) { SetEvent(std::forward<EventT>(value)); return *this;}
82
84
87 inline const Aws::String& GetId() const { return m_id; }
88 template<typename IdT = Aws::String>
89 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
90 template<typename IdT = Aws::String>
91 CreateEventActionResult& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
93
95
98 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
99 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
100 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
101 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
102 CreateEventActionResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
103 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
104 CreateEventActionResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
105 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
106 }
108
110
114 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
115 template<typename UpdatedAtT = Aws::Utils::DateTime>
116 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
117 template<typename UpdatedAtT = Aws::Utils::DateTime>
118 CreateEventActionResult& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
120
122
123 inline const Aws::String& GetRequestId() const { return m_requestId; }
124 template<typename RequestIdT = Aws::String>
125 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
126 template<typename RequestIdT = Aws::String>
127 CreateEventActionResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
129 private:
130
131 Action m_action;
132 bool m_actionHasBeenSet = false;
133
134 Aws::String m_arn;
135 bool m_arnHasBeenSet = false;
136
137 Aws::Utils::DateTime m_createdAt{};
138 bool m_createdAtHasBeenSet = false;
139
140 Event m_event;
141 bool m_eventHasBeenSet = false;
142
143 Aws::String m_id;
144 bool m_idHasBeenSet = false;
145
147 bool m_tagsHasBeenSet = false;
148
149 Aws::Utils::DateTime m_updatedAt{};
150 bool m_updatedAtHasBeenSet = false;
151
152 Aws::String m_requestId;
153 bool m_requestIdHasBeenSet = false;
154 };
155
156} // namespace Model
157} // namespace DataExchange
158} // namespace Aws
CreateEventActionResult & WithArn(ArnT &&value)
CreateEventActionResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_DATAEXCHANGE_API CreateEventActionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateEventActionResult & WithRequestId(RequestIdT &&value)
AWS_DATAEXCHANGE_API CreateEventActionResult()=default
CreateEventActionResult & WithTags(TagsT &&value)
CreateEventActionResult & WithEvent(EventT &&value)
AWS_DATAEXCHANGE_API CreateEventActionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateEventActionResult & WithCreatedAt(CreatedAtT &&value)
CreateEventActionResult & WithAction(ActionT &&value)
CreateEventActionResult & WithUpdatedAt(UpdatedAtT &&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