AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
FormCTA.h
1
6#pragma once
7#include <aws/amplifyuibuilder/AmplifyUIBuilder_EXPORTS.h>
8#include <aws/amplifyuibuilder/model/FormButton.h>
9#include <aws/amplifyuibuilder/model/FormButtonsPosition.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
29class FormCTA {
30 public:
31 AWS_AMPLIFYUIBUILDER_API FormCTA() = default;
32 AWS_AMPLIFYUIBUILDER_API FormCTA(Aws::Utils::Json::JsonView jsonValue);
33 AWS_AMPLIFYUIBUILDER_API FormCTA& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline FormButtonsPosition GetPosition() const { return m_position; }
41 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
42 inline void SetPosition(FormButtonsPosition value) {
43 m_positionHasBeenSet = true;
44 m_position = value;
45 }
47 SetPosition(value);
48 return *this;
49 }
51
53
56 inline const FormButton& GetClear() const { return m_clear; }
57 inline bool ClearHasBeenSet() const { return m_clearHasBeenSet; }
58 template <typename ClearT = FormButton>
59 void SetClear(ClearT&& value) {
60 m_clearHasBeenSet = true;
61 m_clear = std::forward<ClearT>(value);
62 }
63 template <typename ClearT = FormButton>
64 FormCTA& WithClear(ClearT&& value) {
65 SetClear(std::forward<ClearT>(value));
66 return *this;
67 }
69
71
74 inline const FormButton& GetCancel() const { return m_cancel; }
75 inline bool CancelHasBeenSet() const { return m_cancelHasBeenSet; }
76 template <typename CancelT = FormButton>
77 void SetCancel(CancelT&& value) {
78 m_cancelHasBeenSet = true;
79 m_cancel = std::forward<CancelT>(value);
80 }
81 template <typename CancelT = FormButton>
82 FormCTA& WithCancel(CancelT&& value) {
83 SetCancel(std::forward<CancelT>(value));
84 return *this;
85 }
87
89
92 inline const FormButton& GetSubmit() const { return m_submit; }
93 inline bool SubmitHasBeenSet() const { return m_submitHasBeenSet; }
94 template <typename SubmitT = FormButton>
95 void SetSubmit(SubmitT&& value) {
96 m_submitHasBeenSet = true;
97 m_submit = std::forward<SubmitT>(value);
98 }
99 template <typename SubmitT = FormButton>
100 FormCTA& WithSubmit(SubmitT&& value) {
101 SetSubmit(std::forward<SubmitT>(value));
102 return *this;
103 }
105 private:
107
108 FormButton m_clear;
109
110 FormButton m_cancel;
111
112 FormButton m_submit;
113 bool m_positionHasBeenSet = false;
114 bool m_clearHasBeenSet = false;
115 bool m_cancelHasBeenSet = false;
116 bool m_submitHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace AmplifyUIBuilder
121} // namespace Aws
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPosition(FormButtonsPosition value)
Definition FormCTA.h:42
FormCTA & WithPosition(FormButtonsPosition value)
Definition FormCTA.h:46
AWS_AMPLIFYUIBUILDER_API FormCTA & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetClear(ClearT &&value)
Definition FormCTA.h:59
const FormButton & GetSubmit() const
Definition FormCTA.h:92
void SetCancel(CancelT &&value)
Definition FormCTA.h:77
AWS_AMPLIFYUIBUILDER_API FormCTA(Aws::Utils::Json::JsonView jsonValue)
FormCTA & WithSubmit(SubmitT &&value)
Definition FormCTA.h:100
void SetSubmit(SubmitT &&value)
Definition FormCTA.h:95
AWS_AMPLIFYUIBUILDER_API FormCTA()=default
FormCTA & WithCancel(CancelT &&value)
Definition FormCTA.h:82
const FormButton & GetCancel() const
Definition FormCTA.h:74
FormCTA & WithClear(ClearT &&value)
Definition FormCTA.h:64
FormButtonsPosition GetPosition() const
Definition FormCTA.h:40
const FormButton & GetClear() const
Definition FormCTA.h:56
Aws::Utils::Json::JsonValue JsonValue