AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
ComponentEvent.h
1
6#pragma once
7#include <aws/amplifyuibuilder/AmplifyUIBuilder_EXPORTS.h>
8#include <aws/amplifyuibuilder/model/ActionParameters.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AmplifyUIBuilder {
21namespace Model {
22
32 public:
33 AWS_AMPLIFYUIBUILDER_API ComponentEvent() = default;
34 AWS_AMPLIFYUIBUILDER_API ComponentEvent(Aws::Utils::Json::JsonView jsonValue);
35 AWS_AMPLIFYUIBUILDER_API ComponentEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetAction() const { return m_action; }
43 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
44 template <typename ActionT = Aws::String>
45 void SetAction(ActionT&& value) {
46 m_actionHasBeenSet = true;
47 m_action = std::forward<ActionT>(value);
48 }
49 template <typename ActionT = Aws::String>
50 ComponentEvent& WithAction(ActionT&& value) {
51 SetAction(std::forward<ActionT>(value));
52 return *this;
53 }
55
57
60 inline const ActionParameters& GetParameters() const { return m_parameters; }
61 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
62 template <typename ParametersT = ActionParameters>
63 void SetParameters(ParametersT&& value) {
64 m_parametersHasBeenSet = true;
65 m_parameters = std::forward<ParametersT>(value);
66 }
67 template <typename ParametersT = ActionParameters>
68 ComponentEvent& WithParameters(ParametersT&& value) {
69 SetParameters(std::forward<ParametersT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetBindingEvent() const { return m_bindingEvent; }
80 inline bool BindingEventHasBeenSet() const { return m_bindingEventHasBeenSet; }
81 template <typename BindingEventT = Aws::String>
82 void SetBindingEvent(BindingEventT&& value) {
83 m_bindingEventHasBeenSet = true;
84 m_bindingEvent = std::forward<BindingEventT>(value);
85 }
86 template <typename BindingEventT = Aws::String>
87 ComponentEvent& WithBindingEvent(BindingEventT&& value) {
88 SetBindingEvent(std::forward<BindingEventT>(value));
89 return *this;
90 }
92 private:
93 Aws::String m_action;
94
95 ActionParameters m_parameters;
96
97 Aws::String m_bindingEvent;
98 bool m_actionHasBeenSet = false;
99 bool m_parametersHasBeenSet = false;
100 bool m_bindingEventHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace AmplifyUIBuilder
105} // namespace Aws
AWS_AMPLIFYUIBUILDER_API ComponentEvent()=default
const ActionParameters & GetParameters() const
AWS_AMPLIFYUIBUILDER_API ComponentEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_AMPLIFYUIBUILDER_API ComponentEvent(Aws::Utils::Json::JsonView jsonValue)
ComponentEvent & WithBindingEvent(BindingEventT &&value)
ComponentEvent & WithAction(ActionT &&value)
const Aws::String & GetBindingEvent() const
ComponentEvent & WithParameters(ParametersT &&value)
void SetBindingEvent(BindingEventT &&value)
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue