AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SectionalElement.h
1
6#pragma once
7#include <aws/amplifyuibuilder/AmplifyUIBuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/amplifyuibuilder/model/FieldPosition.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
35 {
36 public:
37 AWS_AMPLIFYUIBUILDER_API SectionalElement() = default;
38 AWS_AMPLIFYUIBUILDER_API SectionalElement(Aws::Utils::Json::JsonView jsonValue);
39 AWS_AMPLIFYUIBUILDER_API SectionalElement& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetType() const { return m_type; }
49 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
50 template<typename TypeT = Aws::String>
51 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
52 template<typename TypeT = Aws::String>
53 SectionalElement& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
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) { m_positionHasBeenSet = true; m_position = std::forward<PositionT>(value); }
65 template<typename PositionT = FieldPosition>
66 SectionalElement& WithPosition(PositionT&& value) { SetPosition(std::forward<PositionT>(value)); return *this;}
68
70
73 inline const Aws::String& GetText() const { return m_text; }
74 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
75 template<typename TextT = Aws::String>
76 void SetText(TextT&& value) { m_textHasBeenSet = true; m_text = std::forward<TextT>(value); }
77 template<typename TextT = Aws::String>
78 SectionalElement& WithText(TextT&& value) { SetText(std::forward<TextT>(value)); return *this;}
80
82
86 inline int GetLevel() const { return m_level; }
87 inline bool LevelHasBeenSet() const { return m_levelHasBeenSet; }
88 inline void SetLevel(int value) { m_levelHasBeenSet = true; m_level = value; }
89 inline SectionalElement& WithLevel(int value) { SetLevel(value); return *this;}
91
93
97 inline const Aws::String& GetOrientation() const { return m_orientation; }
98 inline bool OrientationHasBeenSet() const { return m_orientationHasBeenSet; }
99 template<typename OrientationT = Aws::String>
100 void SetOrientation(OrientationT&& value) { m_orientationHasBeenSet = true; m_orientation = std::forward<OrientationT>(value); }
101 template<typename OrientationT = Aws::String>
102 SectionalElement& WithOrientation(OrientationT&& value) { SetOrientation(std::forward<OrientationT>(value)); return *this;}
104
106
110 inline bool GetExcluded() const { return m_excluded; }
111 inline bool ExcludedHasBeenSet() const { return m_excludedHasBeenSet; }
112 inline void SetExcluded(bool value) { m_excludedHasBeenSet = true; m_excluded = value; }
113 inline SectionalElement& WithExcluded(bool value) { SetExcluded(value); return *this;}
115 private:
116
117 Aws::String m_type;
118 bool m_typeHasBeenSet = false;
119
120 FieldPosition m_position;
121 bool m_positionHasBeenSet = false;
122
123 Aws::String m_text;
124 bool m_textHasBeenSet = false;
125
126 int m_level{0};
127 bool m_levelHasBeenSet = false;
128
129 Aws::String m_orientation;
130 bool m_orientationHasBeenSet = false;
131
132 bool m_excluded{false};
133 bool m_excludedHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace AmplifyUIBuilder
138} // 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