AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateEventActionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/dataexchange/DataExchangeRequest.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 {
17namespace DataExchange {
18namespace Model {
19
23 public:
24 AWS_DATAEXCHANGE_API CreateEventActionRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateEventAction"; }
31
32 AWS_DATAEXCHANGE_API Aws::String SerializePayload() const override;
33
35
38 inline const Action& GetAction() const { return m_action; }
39 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
40 template <typename ActionT = Action>
41 void SetAction(ActionT&& value) {
42 m_actionHasBeenSet = true;
43 m_action = std::forward<ActionT>(value);
44 }
45 template <typename ActionT = Action>
47 SetAction(std::forward<ActionT>(value));
48 return *this;
49 }
51
53
56 inline const Event& GetEvent() const { return m_event; }
57 inline bool EventHasBeenSet() const { return m_eventHasBeenSet; }
58 template <typename EventT = Event>
59 void SetEvent(EventT&& value) {
60 m_eventHasBeenSet = true;
61 m_event = std::forward<EventT>(value);
62 }
63 template <typename EventT = Event>
65 SetEvent(std::forward<EventT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
75 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
76 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
77 void SetTags(TagsT&& value) {
78 m_tagsHasBeenSet = true;
79 m_tags = std::forward<TagsT>(value);
80 }
81 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
83 SetTags(std::forward<TagsT>(value));
84 return *this;
85 }
86 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
87 CreateEventActionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
88 m_tagsHasBeenSet = true;
89 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
90 return *this;
91 }
93 private:
94 Action m_action;
95
96 Event m_event;
97
99 bool m_actionHasBeenSet = false;
100 bool m_eventHasBeenSet = false;
101 bool m_tagsHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace DataExchange
106} // namespace Aws
AWS_DATAEXCHANGE_API CreateEventActionRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateEventActionRequest & WithTags(TagsT &&value)
CreateEventActionRequest & WithEvent(EventT &&value)
virtual const char * GetServiceRequestName() const override
CreateEventActionRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateEventActionRequest & WithAction(ActionT &&value)
AWS_DATAEXCHANGE_API Aws::String SerializePayload() const override
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