AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
EventActionEntry.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 <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace DataExchange
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_DATAEXCHANGE_API EventActionEntry() = default;
40 AWS_DATAEXCHANGE_API EventActionEntry(Aws::Utils::Json::JsonView jsonValue);
41 AWS_DATAEXCHANGE_API EventActionEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_DATAEXCHANGE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Action& GetAction() const { return m_action; }
50 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
51 template<typename ActionT = Action>
52 void SetAction(ActionT&& value) { m_actionHasBeenSet = true; m_action = std::forward<ActionT>(value); }
53 template<typename ActionT = Action>
54 EventActionEntry& WithAction(ActionT&& value) { SetAction(std::forward<ActionT>(value)); return *this;}
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) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
65 template<typename ArnT = Aws::String>
66 EventActionEntry& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
68
70
73 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
74 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
75 template<typename CreatedAtT = Aws::Utils::DateTime>
76 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
77 template<typename CreatedAtT = Aws::Utils::DateTime>
78 EventActionEntry& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
80
82
85 inline const Event& GetEvent() const { return m_event; }
86 inline bool EventHasBeenSet() const { return m_eventHasBeenSet; }
87 template<typename EventT = Event>
88 void SetEvent(EventT&& value) { m_eventHasBeenSet = true; m_event = std::forward<EventT>(value); }
89 template<typename EventT = Event>
90 EventActionEntry& WithEvent(EventT&& value) { SetEvent(std::forward<EventT>(value)); return *this;}
92
94
97 inline const Aws::String& GetId() const { return m_id; }
98 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
99 template<typename IdT = Aws::String>
100 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
101 template<typename IdT = Aws::String>
102 EventActionEntry& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
104
106
110 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
111 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
112 template<typename UpdatedAtT = Aws::Utils::DateTime>
113 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
114 template<typename UpdatedAtT = Aws::Utils::DateTime>
115 EventActionEntry& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
117 private:
118
119 Action m_action;
120 bool m_actionHasBeenSet = false;
121
122 Aws::String m_arn;
123 bool m_arnHasBeenSet = false;
124
125 Aws::Utils::DateTime m_createdAt{};
126 bool m_createdAtHasBeenSet = false;
127
128 Event m_event;
129 bool m_eventHasBeenSet = false;
130
131 Aws::String m_id;
132 bool m_idHasBeenSet = false;
133
134 Aws::Utils::DateTime m_updatedAt{};
135 bool m_updatedAtHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace DataExchange
140} // 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