AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
EventActionEntry.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/dataexchange/DataExchange_EXPORTS.h>
10#include <aws/dataexchange/model/Action.h>
11#include <aws/dataexchange/model/Event.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DataExchange {
23namespace Model {
24
33 public:
34 AWS_DATAEXCHANGE_API EventActionEntry() = default;
35 AWS_DATAEXCHANGE_API EventActionEntry(Aws::Utils::Json::JsonView jsonValue);
36 AWS_DATAEXCHANGE_API EventActionEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_DATAEXCHANGE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Action& GetAction() const { return m_action; }
44 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
45 template <typename ActionT = Action>
46 void SetAction(ActionT&& value) {
47 m_actionHasBeenSet = true;
48 m_action = std::forward<ActionT>(value);
49 }
50 template <typename ActionT = Action>
51 EventActionEntry& WithAction(ActionT&& value) {
52 SetAction(std::forward<ActionT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetArn() const { return m_arn; }
62 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
63 template <typename ArnT = Aws::String>
64 void SetArn(ArnT&& value) {
65 m_arnHasBeenSet = true;
66 m_arn = std::forward<ArnT>(value);
67 }
68 template <typename ArnT = Aws::String>
69 EventActionEntry& WithArn(ArnT&& value) {
70 SetArn(std::forward<ArnT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
80 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
81 template <typename CreatedAtT = Aws::Utils::DateTime>
82 void SetCreatedAt(CreatedAtT&& value) {
83 m_createdAtHasBeenSet = true;
84 m_createdAt = std::forward<CreatedAtT>(value);
85 }
86 template <typename CreatedAtT = Aws::Utils::DateTime>
87 EventActionEntry& WithCreatedAt(CreatedAtT&& value) {
88 SetCreatedAt(std::forward<CreatedAtT>(value));
89 return *this;
90 }
92
94
97 inline const Event& GetEvent() const { return m_event; }
98 inline bool EventHasBeenSet() const { return m_eventHasBeenSet; }
99 template <typename EventT = Event>
100 void SetEvent(EventT&& value) {
101 m_eventHasBeenSet = true;
102 m_event = std::forward<EventT>(value);
103 }
104 template <typename EventT = Event>
105 EventActionEntry& WithEvent(EventT&& value) {
106 SetEvent(std::forward<EventT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetId() const { return m_id; }
116 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
117 template <typename IdT = Aws::String>
118 void SetId(IdT&& value) {
119 m_idHasBeenSet = true;
120 m_id = std::forward<IdT>(value);
121 }
122 template <typename IdT = Aws::String>
123 EventActionEntry& WithId(IdT&& value) {
124 SetId(std::forward<IdT>(value));
125 return *this;
126 }
128
130
134 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
135 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
136 template <typename UpdatedAtT = Aws::Utils::DateTime>
137 void SetUpdatedAt(UpdatedAtT&& value) {
138 m_updatedAtHasBeenSet = true;
139 m_updatedAt = std::forward<UpdatedAtT>(value);
140 }
141 template <typename UpdatedAtT = Aws::Utils::DateTime>
142 EventActionEntry& WithUpdatedAt(UpdatedAtT&& value) {
143 SetUpdatedAt(std::forward<UpdatedAtT>(value));
144 return *this;
145 }
147 private:
148 Action m_action;
149
150 Aws::String m_arn;
151
152 Aws::Utils::DateTime m_createdAt{};
153
154 Event m_event;
155
156 Aws::String m_id;
157
158 Aws::Utils::DateTime m_updatedAt{};
159 bool m_actionHasBeenSet = false;
160 bool m_arnHasBeenSet = false;
161 bool m_createdAtHasBeenSet = false;
162 bool m_eventHasBeenSet = false;
163 bool m_idHasBeenSet = false;
164 bool m_updatedAtHasBeenSet = false;
165};
166
167} // namespace Model
168} // namespace DataExchange
169} // namespace Aws
const Event & GetEvent() const
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::String & GetId() const
const Action & GetAction() const
AWS_DATAEXCHANGE_API Aws::Utils::Json::JsonValue Jsonize() const
EventActionEntry & WithCreatedAt(CreatedAtT &&value)
bool ActionHasBeenSet() const
bool IdHasBeenSet() const
void SetAction(ActionT &&value)
bool ArnHasBeenSet() const
EventActionEntry & WithEvent(EventT &&value)
EventActionEntry & WithId(IdT &&value)
AWS_DATAEXCHANGE_API EventActionEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
EventActionEntry & WithUpdatedAt(UpdatedAtT &&value)
const Aws::String & GetArn() const
void SetId(IdT &&value)
EventActionEntry & WithAction(ActionT &&value)
void SetArn(ArnT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
bool UpdatedAtHasBeenSet() const
void SetEvent(EventT &&value)
bool CreatedAtHasBeenSet() const
bool EventHasBeenSet() const
AWS_DATAEXCHANGE_API EventActionEntry(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAEXCHANGE_API EventActionEntry()=default
void SetUpdatedAt(UpdatedAtT &&value)
void SetCreatedAt(CreatedAtT &&value)
EventActionEntry & WithArn(ArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue