AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAction(const Action& value) { m_actionHasBeenSet = true; m_action = value; }
52 inline void SetAction(Action&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
53 inline EventActionEntry& WithAction(const Action& value) { SetAction(value); return *this;}
54 inline EventActionEntry& WithAction(Action&& value) { SetAction(std::move(value)); return *this;}
56
58
61 inline const Aws::String& GetArn() const{ return m_arn; }
62 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
63 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
64 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
65 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
66 inline EventActionEntry& WithArn(const Aws::String& value) { SetArn(value); return *this;}
67 inline EventActionEntry& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
68 inline EventActionEntry& WithArn(const char* value) { SetArn(value); return *this;}
70
72
75 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
76 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
77 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
78 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
79 inline EventActionEntry& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
80 inline EventActionEntry& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
82
84
87 inline const Event& GetEvent() const{ return m_event; }
88 inline bool EventHasBeenSet() const { return m_eventHasBeenSet; }
89 inline void SetEvent(const Event& value) { m_eventHasBeenSet = true; m_event = value; }
90 inline void SetEvent(Event&& value) { m_eventHasBeenSet = true; m_event = std::move(value); }
91 inline EventActionEntry& WithEvent(const Event& value) { SetEvent(value); return *this;}
92 inline EventActionEntry& WithEvent(Event&& value) { SetEvent(std::move(value)); return *this;}
94
96
99 inline const Aws::String& GetId() const{ return m_id; }
100 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
101 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
102 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
103 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
104 inline EventActionEntry& WithId(const Aws::String& value) { SetId(value); return *this;}
105 inline EventActionEntry& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
106 inline EventActionEntry& WithId(const char* value) { SetId(value); return *this;}
108
110
114 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
115 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
116 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
117 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
118 inline EventActionEntry& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
119 inline EventActionEntry& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
121 private:
122
123 Action m_action;
124 bool m_actionHasBeenSet = false;
125
126 Aws::String m_arn;
127 bool m_arnHasBeenSet = false;
128
129 Aws::Utils::DateTime m_createdAt;
130 bool m_createdAtHasBeenSet = false;
131
132 Event m_event;
133 bool m_eventHasBeenSet = false;
134
135 Aws::String m_id;
136 bool m_idHasBeenSet = false;
137
138 Aws::Utils::DateTime m_updatedAt;
139 bool m_updatedAtHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace DataExchange
144} // namespace Aws
const Event & GetEvent() const
void SetAction(const Action &value)
const Aws::Utils::DateTime & GetCreatedAt() const
EventActionEntry & WithCreatedAt(const Aws::Utils::DateTime &value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
const Aws::String & GetId() const
void SetEvent(Event &&value)
EventActionEntry & WithArn(const Aws::String &value)
const Action & GetAction() const
void SetArn(Aws::String &&value)
AWS_DATAEXCHANGE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCreatedAt(Aws::Utils::DateTime &&value)
EventActionEntry & WithArn(const char *value)
void SetUpdatedAt(const Aws::Utils::DateTime &value)
bool ActionHasBeenSet() const
EventActionEntry & WithEvent(Event &&value)
bool IdHasBeenSet() const
void SetArn(const char *value)
EventActionEntry & WithArn(Aws::String &&value)
bool ArnHasBeenSet() const
EventActionEntry & WithUpdatedAt(Aws::Utils::DateTime &&value)
EventActionEntry & WithId(Aws::String &&value)
EventActionEntry & WithAction(Action &&value)
AWS_DATAEXCHANGE_API EventActionEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
EventActionEntry & WithId(const Aws::String &value)
const Aws::String & GetArn() const
void SetEvent(const Event &value)
void SetArn(const Aws::String &value)
void SetUpdatedAt(Aws::Utils::DateTime &&value)
void SetId(const char *value)
const Aws::Utils::DateTime & GetUpdatedAt() const
EventActionEntry & WithAction(const Action &value)
void SetId(const Aws::String &value)
EventActionEntry & WithId(const char *value)
void SetId(Aws::String &&value)
EventActionEntry & WithUpdatedAt(const Aws::Utils::DateTime &value)
bool UpdatedAtHasBeenSet() const
EventActionEntry & WithCreatedAt(Aws::Utils::DateTime &&value)
AWS_DATAEXCHANGE_API EventActionEntry()
bool CreatedAtHasBeenSet() const
bool EventHasBeenSet() const
EventActionEntry & WithEvent(const Event &value)
AWS_DATAEXCHANGE_API EventActionEntry(Aws::Utils::Json::JsonView jsonValue)
void SetAction(Action &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue