AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 <utility>
12
13namespace Aws
14{
15namespace DataExchange
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_DATAEXCHANGE_API CreateEventActionRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateEventAction"; }
32
33 AWS_DATAEXCHANGE_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Action& GetAction() const{ return m_action; }
41 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
42 inline void SetAction(const Action& value) { m_actionHasBeenSet = true; m_action = value; }
43 inline void SetAction(Action&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
44 inline CreateEventActionRequest& WithAction(const Action& value) { SetAction(value); return *this;}
45 inline CreateEventActionRequest& WithAction(Action&& value) { SetAction(std::move(value)); return *this;}
47
49
52 inline const Event& GetEvent() const{ return m_event; }
53 inline bool EventHasBeenSet() const { return m_eventHasBeenSet; }
54 inline void SetEvent(const Event& value) { m_eventHasBeenSet = true; m_event = value; }
55 inline void SetEvent(Event&& value) { m_eventHasBeenSet = true; m_event = std::move(value); }
56 inline CreateEventActionRequest& WithEvent(const Event& value) { SetEvent(value); return *this;}
57 inline CreateEventActionRequest& WithEvent(Event&& value) { SetEvent(std::move(value)); return *this;}
59 private:
60
61 Action m_action;
62 bool m_actionHasBeenSet = false;
63
64 Event m_event;
65 bool m_eventHasBeenSet = false;
66 };
67
68} // namespace Model
69} // namespace DataExchange
70} // namespace Aws
CreateEventActionRequest & WithEvent(const Event &value)
CreateEventActionRequest & WithEvent(Event &&value)
CreateEventActionRequest & WithAction(Action &&value)
CreateEventActionRequest & WithAction(const Action &value)
virtual const char * GetServiceRequestName() const override
AWS_DATAEXCHANGE_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String