AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateEventActionRequest.h
1
6#pragma once
7#include <aws/dataexchange/DataExchange_EXPORTS.h>
8#include <aws/dataexchange/DataExchangeRequest.h>
9#include <aws/dataexchange/model/Action.h>
10#include <aws/dataexchange/model/Event.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <utility>
14
15namespace Aws
16{
17namespace DataExchange
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_DATAEXCHANGE_API CreateEventActionRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateEventAction"; }
34
35 AWS_DATAEXCHANGE_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Action& GetAction() const { return m_action; }
43 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
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 CreateEventActionRequest& WithAction(ActionT&& value) { SetAction(std::forward<ActionT>(value)); return *this;}
49
51
54 inline const Event& GetEvent() const { return m_event; }
55 inline bool EventHasBeenSet() const { return m_eventHasBeenSet; }
56 template<typename EventT = Event>
57 void SetEvent(EventT&& value) { m_eventHasBeenSet = true; m_event = std::forward<EventT>(value); }
58 template<typename EventT = Event>
59 CreateEventActionRequest& WithEvent(EventT&& value) { SetEvent(std::forward<EventT>(value)); return *this;}
61
63
66 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
67 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
68 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
69 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
70 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
71 CreateEventActionRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
72 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
73 CreateEventActionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
74 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
75 }
77 private:
78
79 Action m_action;
80 bool m_actionHasBeenSet = false;
81
82 Event m_event;
83 bool m_eventHasBeenSet = false;
84
86 bool m_tagsHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace DataExchange
91} // 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