AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
FormStyle.h
1
6#pragma once
7#include <aws/amplifyuibuilder/AmplifyUIBuilder_EXPORTS.h>
8#include <aws/amplifyuibuilder/model/FormStyleConfig.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace AmplifyUIBuilder {
20namespace Model {
21
28class FormStyle {
29 public:
30 AWS_AMPLIFYUIBUILDER_API FormStyle() = default;
31 AWS_AMPLIFYUIBUILDER_API FormStyle(Aws::Utils::Json::JsonView jsonValue);
32 AWS_AMPLIFYUIBUILDER_API FormStyle& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const FormStyleConfig& GetHorizontalGap() const { return m_horizontalGap; }
40 inline bool HorizontalGapHasBeenSet() const { return m_horizontalGapHasBeenSet; }
41 template <typename HorizontalGapT = FormStyleConfig>
42 void SetHorizontalGap(HorizontalGapT&& value) {
43 m_horizontalGapHasBeenSet = true;
44 m_horizontalGap = std::forward<HorizontalGapT>(value);
45 }
46 template <typename HorizontalGapT = FormStyleConfig>
47 FormStyle& WithHorizontalGap(HorizontalGapT&& value) {
48 SetHorizontalGap(std::forward<HorizontalGapT>(value));
49 return *this;
50 }
52
54
57 inline const FormStyleConfig& GetVerticalGap() const { return m_verticalGap; }
58 inline bool VerticalGapHasBeenSet() const { return m_verticalGapHasBeenSet; }
59 template <typename VerticalGapT = FormStyleConfig>
60 void SetVerticalGap(VerticalGapT&& value) {
61 m_verticalGapHasBeenSet = true;
62 m_verticalGap = std::forward<VerticalGapT>(value);
63 }
64 template <typename VerticalGapT = FormStyleConfig>
65 FormStyle& WithVerticalGap(VerticalGapT&& value) {
66 SetVerticalGap(std::forward<VerticalGapT>(value));
67 return *this;
68 }
70
72
75 inline const FormStyleConfig& GetOuterPadding() const { return m_outerPadding; }
76 inline bool OuterPaddingHasBeenSet() const { return m_outerPaddingHasBeenSet; }
77 template <typename OuterPaddingT = FormStyleConfig>
78 void SetOuterPadding(OuterPaddingT&& value) {
79 m_outerPaddingHasBeenSet = true;
80 m_outerPadding = std::forward<OuterPaddingT>(value);
81 }
82 template <typename OuterPaddingT = FormStyleConfig>
83 FormStyle& WithOuterPadding(OuterPaddingT&& value) {
84 SetOuterPadding(std::forward<OuterPaddingT>(value));
85 return *this;
86 }
88 private:
89 FormStyleConfig m_horizontalGap;
90
91 FormStyleConfig m_verticalGap;
92
93 FormStyleConfig m_outerPadding;
94 bool m_horizontalGapHasBeenSet = false;
95 bool m_verticalGapHasBeenSet = false;
96 bool m_outerPaddingHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace AmplifyUIBuilder
101} // namespace Aws
AWS_AMPLIFYUIBUILDER_API FormStyle()=default
const FormStyleConfig & GetOuterPadding() const
Definition FormStyle.h:75
void SetOuterPadding(OuterPaddingT &&value)
Definition FormStyle.h:78
FormStyle & WithHorizontalGap(HorizontalGapT &&value)
Definition FormStyle.h:47
const FormStyleConfig & GetHorizontalGap() const
Definition FormStyle.h:39
const FormStyleConfig & GetVerticalGap() const
Definition FormStyle.h:57
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
FormStyle & WithOuterPadding(OuterPaddingT &&value)
Definition FormStyle.h:83
AWS_AMPLIFYUIBUILDER_API FormStyle & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetHorizontalGap(HorizontalGapT &&value)
Definition FormStyle.h:42
AWS_AMPLIFYUIBUILDER_API FormStyle(Aws::Utils::Json::JsonView jsonValue)
FormStyle & WithVerticalGap(VerticalGapT &&value)
Definition FormStyle.h:65
void SetVerticalGap(VerticalGapT &&value)
Definition FormStyle.h:60
Aws::Utils::Json::JsonValue JsonValue