AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
FormButton.h
1
6#pragma once
7#include <aws/amplifyuibuilder/AmplifyUIBuilder_EXPORTS.h>
8#include <aws/amplifyuibuilder/model/FieldPosition.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
30 public:
31 AWS_AMPLIFYUIBUILDER_API FormButton() = default;
32 AWS_AMPLIFYUIBUILDER_API FormButton(Aws::Utils::Json::JsonView jsonValue);
33 AWS_AMPLIFYUIBUILDER_API FormButton& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline bool GetExcluded() const { return m_excluded; }
41 inline bool ExcludedHasBeenSet() const { return m_excludedHasBeenSet; }
42 inline void SetExcluded(bool value) {
43 m_excludedHasBeenSet = true;
44 m_excluded = value;
45 }
46 inline FormButton& WithExcluded(bool value) {
47 SetExcluded(value);
48 return *this;
49 }
51
53
56 inline const Aws::String& GetChildren() const { return m_children; }
57 inline bool ChildrenHasBeenSet() const { return m_childrenHasBeenSet; }
58 template <typename ChildrenT = Aws::String>
59 void SetChildren(ChildrenT&& value) {
60 m_childrenHasBeenSet = true;
61 m_children = std::forward<ChildrenT>(value);
62 }
63 template <typename ChildrenT = Aws::String>
64 FormButton& WithChildren(ChildrenT&& value) {
65 SetChildren(std::forward<ChildrenT>(value));
66 return *this;
67 }
69
71
74 inline const FieldPosition& GetPosition() const { return m_position; }
75 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
76 template <typename PositionT = FieldPosition>
77 void SetPosition(PositionT&& value) {
78 m_positionHasBeenSet = true;
79 m_position = std::forward<PositionT>(value);
80 }
81 template <typename PositionT = FieldPosition>
82 FormButton& WithPosition(PositionT&& value) {
83 SetPosition(std::forward<PositionT>(value));
84 return *this;
85 }
87 private:
88 bool m_excluded{false};
89
90 Aws::String m_children;
91
92 FieldPosition m_position;
93 bool m_excludedHasBeenSet = false;
94 bool m_childrenHasBeenSet = false;
95 bool m_positionHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace AmplifyUIBuilder
100} // namespace Aws
void SetPosition(PositionT &&value)
Definition FormButton.h:77
AWS_AMPLIFYUIBUILDER_API FormButton & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetChildren() const
Definition FormButton.h:56
AWS_AMPLIFYUIBUILDER_API FormButton()=default
FormButton & WithPosition(PositionT &&value)
Definition FormButton.h:82
const FieldPosition & GetPosition() const
Definition FormButton.h:74
FormButton & WithChildren(ChildrenT &&value)
Definition FormButton.h:64
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetChildren(ChildrenT &&value)
Definition FormButton.h:59
FormButton & WithExcluded(bool value)
Definition FormButton.h:46
AWS_AMPLIFYUIBUILDER_API FormButton(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue