AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const FormButtonsPosition& GetPosition() const{ return m_position; }
47 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
48 inline void SetPosition(const FormButtonsPosition& value) { m_positionHasBeenSet = true; m_position = value; }
49 inline void SetPosition(FormButtonsPosition&& value) { m_positionHasBeenSet = true; m_position = std::move(value); }
50 inline FormCTA& WithPosition(const FormButtonsPosition& value) { SetPosition(value); return *this;}
51 inline FormCTA& WithPosition(FormButtonsPosition&& value) { SetPosition(std::move(value)); return *this;}
53
55
58 inline const FormButton& GetClear() const{ return m_clear; }
59 inline bool ClearHasBeenSet() const { return m_clearHasBeenSet; }
60 inline void SetClear(const FormButton& value) { m_clearHasBeenSet = true; m_clear = value; }
61 inline void SetClear(FormButton&& value) { m_clearHasBeenSet = true; m_clear = std::move(value); }
62 inline FormCTA& WithClear(const FormButton& value) { SetClear(value); return *this;}
63 inline FormCTA& WithClear(FormButton&& value) { SetClear(std::move(value)); return *this;}
65
67
70 inline const FormButton& GetCancel() const{ return m_cancel; }
71 inline bool CancelHasBeenSet() const { return m_cancelHasBeenSet; }
72 inline void SetCancel(const FormButton& value) { m_cancelHasBeenSet = true; m_cancel = value; }
73 inline void SetCancel(FormButton&& value) { m_cancelHasBeenSet = true; m_cancel = std::move(value); }
74 inline FormCTA& WithCancel(const FormButton& value) { SetCancel(value); return *this;}
75 inline FormCTA& WithCancel(FormButton&& value) { SetCancel(std::move(value)); return *this;}
77
79
82 inline const FormButton& GetSubmit() const{ return m_submit; }
83 inline bool SubmitHasBeenSet() const { return m_submitHasBeenSet; }
84 inline void SetSubmit(const FormButton& value) { m_submitHasBeenSet = true; m_submit = value; }
85 inline void SetSubmit(FormButton&& value) { m_submitHasBeenSet = true; m_submit = std::move(value); }
86 inline FormCTA& WithSubmit(const FormButton& value) { SetSubmit(value); return *this;}
87 inline FormCTA& WithSubmit(FormButton&& value) { SetSubmit(std::move(value)); return *this;}
89 private:
90
91 FormButtonsPosition m_position;
92 bool m_positionHasBeenSet = false;
93
94 FormButton m_clear;
95 bool m_clearHasBeenSet = false;
96
97 FormButton m_cancel;
98 bool m_cancelHasBeenSet = false;
99
100 FormButton m_submit;
101 bool m_submitHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace AmplifyUIBuilder
106} // namespace Aws
const FormButtonsPosition & GetPosition() const
Definition FormCTA.h:46
FormCTA & WithClear(FormButton &&value)
Definition FormCTA.h:63
FormCTA & WithCancel(FormButton &&value)
Definition FormCTA.h:75
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
FormCTA & WithSubmit(FormButton &&value)
Definition FormCTA.h:87
AWS_AMPLIFYUIBUILDER_API FormCTA & operator=(Aws::Utils::Json::JsonView jsonValue)
const FormButton & GetSubmit() const
Definition FormCTA.h:82
void SetClear(const FormButton &value)
Definition FormCTA.h:60
FormCTA & WithCancel(const FormButton &value)
Definition FormCTA.h:74
AWS_AMPLIFYUIBUILDER_API FormCTA(Aws::Utils::Json::JsonView jsonValue)
void SetPosition(FormButtonsPosition &&value)
Definition FormCTA.h:49
AWS_AMPLIFYUIBUILDER_API FormCTA()
void SetSubmit(const FormButton &value)
Definition FormCTA.h:84
void SetCancel(const FormButton &value)
Definition FormCTA.h:72
void SetSubmit(FormButton &&value)
Definition FormCTA.h:85
void SetCancel(FormButton &&value)
Definition FormCTA.h:73
void SetClear(FormButton &&value)
Definition FormCTA.h:61
FormCTA & WithPosition(FormButtonsPosition &&value)
Definition FormCTA.h:51
void SetPosition(const FormButtonsPosition &value)
Definition FormCTA.h:48
FormCTA & WithPosition(const FormButtonsPosition &value)
Definition FormCTA.h:50
FormCTA & WithSubmit(const FormButton &value)
Definition FormCTA.h:86
const FormButton & GetCancel() const
Definition FormCTA.h:70
const FormButton & GetClear() const
Definition FormCTA.h:58
FormCTA & WithClear(const FormButton &value)
Definition FormCTA.h:62
Aws::Utils::Json::JsonValue JsonValue