AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
FormCTA.h
1
6#pragma once
7#include <aws/amplifyuibuilder/AmplifyUIBuilder_EXPORTS.h>
8#include <aws/amplifyuibuilder/model/FormButtonsPosition.h>
9#include <aws/amplifyuibuilder/model/FormButton.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AmplifyUIBuilder
23{
24namespace Model
25{
26
33 class FormCTA
34 {
35 public:
36 AWS_AMPLIFYUIBUILDER_API FormCTA() = default;
37 AWS_AMPLIFYUIBUILDER_API FormCTA(Aws::Utils::Json::JsonView jsonValue);
38 AWS_AMPLIFYUIBUILDER_API FormCTA& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline FormButtonsPosition GetPosition() const { return m_position; }
47 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
48 inline void SetPosition(FormButtonsPosition value) { m_positionHasBeenSet = true; m_position = value; }
49 inline FormCTA& WithPosition(FormButtonsPosition value) { SetPosition(value); return *this;}
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) { m_clearHasBeenSet = true; m_clear = std::forward<ClearT>(value); }
60 template<typename ClearT = FormButton>
61 FormCTA& WithClear(ClearT&& value) { SetClear(std::forward<ClearT>(value)); return *this;}
63
65
68 inline const FormButton& GetCancel() const { return m_cancel; }
69 inline bool CancelHasBeenSet() const { return m_cancelHasBeenSet; }
70 template<typename CancelT = FormButton>
71 void SetCancel(CancelT&& value) { m_cancelHasBeenSet = true; m_cancel = std::forward<CancelT>(value); }
72 template<typename CancelT = FormButton>
73 FormCTA& WithCancel(CancelT&& value) { SetCancel(std::forward<CancelT>(value)); return *this;}
75
77
80 inline const FormButton& GetSubmit() const { return m_submit; }
81 inline bool SubmitHasBeenSet() const { return m_submitHasBeenSet; }
82 template<typename SubmitT = FormButton>
83 void SetSubmit(SubmitT&& value) { m_submitHasBeenSet = true; m_submit = std::forward<SubmitT>(value); }
84 template<typename SubmitT = FormButton>
85 FormCTA& WithSubmit(SubmitT&& value) { SetSubmit(std::forward<SubmitT>(value)); return *this;}
87 private:
88
90 bool m_positionHasBeenSet = false;
91
92 FormButton m_clear;
93 bool m_clearHasBeenSet = false;
94
95 FormButton m_cancel;
96 bool m_cancelHasBeenSet = false;
97
98 FormButton m_submit;
99 bool m_submitHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace AmplifyUIBuilder
104} // namespace Aws
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPosition(FormButtonsPosition value)
Definition FormCTA.h:48
FormCTA & WithPosition(FormButtonsPosition value)
Definition FormCTA.h:49
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:80
void SetCancel(CancelT &&value)
Definition FormCTA.h:71
AWS_AMPLIFYUIBUILDER_API FormCTA(Aws::Utils::Json::JsonView jsonValue)
FormCTA & WithSubmit(SubmitT &&value)
Definition FormCTA.h:85
void SetSubmit(SubmitT &&value)
Definition FormCTA.h:83
AWS_AMPLIFYUIBUILDER_API FormCTA()=default
FormCTA & WithCancel(CancelT &&value)
Definition FormCTA.h:73
const FormButton & GetCancel() const
Definition FormCTA.h:68
FormCTA & WithClear(ClearT &&value)
Definition FormCTA.h:61
FormButtonsPosition GetPosition() const
Definition FormCTA.h:46
const FormButton & GetClear() const
Definition FormCTA.h:56
Aws::Utils::Json::JsonValue JsonValue