AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
SectionalElement.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
31 public:
32 AWS_AMPLIFYUIBUILDER_API SectionalElement() = default;
33 AWS_AMPLIFYUIBUILDER_API SectionalElement(Aws::Utils::Json::JsonView jsonValue);
34 AWS_AMPLIFYUIBUILDER_API SectionalElement& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetType() const { return m_type; }
43 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
44 template <typename TypeT = Aws::String>
45 void SetType(TypeT&& value) {
46 m_typeHasBeenSet = true;
47 m_type = std::forward<TypeT>(value);
48 }
49 template <typename TypeT = Aws::String>
50 SectionalElement& WithType(TypeT&& value) {
51 SetType(std::forward<TypeT>(value));
52 return *this;
53 }
55
57
61 inline const FieldPosition& GetPosition() const { return m_position; }
62 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
63 template <typename PositionT = FieldPosition>
64 void SetPosition(PositionT&& value) {
65 m_positionHasBeenSet = true;
66 m_position = std::forward<PositionT>(value);
67 }
68 template <typename PositionT = FieldPosition>
69 SectionalElement& WithPosition(PositionT&& value) {
70 SetPosition(std::forward<PositionT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetText() const { return m_text; }
80 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
81 template <typename TextT = Aws::String>
82 void SetText(TextT&& value) {
83 m_textHasBeenSet = true;
84 m_text = std::forward<TextT>(value);
85 }
86 template <typename TextT = Aws::String>
87 SectionalElement& WithText(TextT&& value) {
88 SetText(std::forward<TextT>(value));
89 return *this;
90 }
92
94
98 inline int GetLevel() const { return m_level; }
99 inline bool LevelHasBeenSet() const { return m_levelHasBeenSet; }
100 inline void SetLevel(int value) {
101 m_levelHasBeenSet = true;
102 m_level = value;
103 }
104 inline SectionalElement& WithLevel(int value) {
105 SetLevel(value);
106 return *this;
107 }
109
111
115 inline const Aws::String& GetOrientation() const { return m_orientation; }
116 inline bool OrientationHasBeenSet() const { return m_orientationHasBeenSet; }
117 template <typename OrientationT = Aws::String>
118 void SetOrientation(OrientationT&& value) {
119 m_orientationHasBeenSet = true;
120 m_orientation = std::forward<OrientationT>(value);
121 }
122 template <typename OrientationT = Aws::String>
123 SectionalElement& WithOrientation(OrientationT&& value) {
124 SetOrientation(std::forward<OrientationT>(value));
125 return *this;
126 }
128
130
134 inline bool GetExcluded() const { return m_excluded; }
135 inline bool ExcludedHasBeenSet() const { return m_excludedHasBeenSet; }
136 inline void SetExcluded(bool value) {
137 m_excludedHasBeenSet = true;
138 m_excluded = value;
139 }
140 inline SectionalElement& WithExcluded(bool value) {
141 SetExcluded(value);
142 return *this;
143 }
145 private:
146 Aws::String m_type;
147
148 FieldPosition m_position;
149
150 Aws::String m_text;
151
152 int m_level{0};
153
154 Aws::String m_orientation;
155
156 bool m_excluded{false};
157 bool m_typeHasBeenSet = false;
158 bool m_positionHasBeenSet = false;
159 bool m_textHasBeenSet = false;
160 bool m_levelHasBeenSet = false;
161 bool m_orientationHasBeenSet = false;
162 bool m_excludedHasBeenSet = false;
163};
164
165} // namespace Model
166} // namespace AmplifyUIBuilder
167} // namespace Aws
SectionalElement & WithPosition(PositionT &&value)
SectionalElement & WithText(TextT &&value)
SectionalElement & WithType(TypeT &&value)
AWS_AMPLIFYUIBUILDER_API SectionalElement()=default
AWS_AMPLIFYUIBUILDER_API SectionalElement(Aws::Utils::Json::JsonView jsonValue)
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
SectionalElement & WithOrientation(OrientationT &&value)
AWS_AMPLIFYUIBUILDER_API SectionalElement & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue