AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
FieldConfig.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 <aws/amplifyuibuilder/model/FieldInputConfig.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/amplifyuibuilder/model/FieldValidationConfiguration.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace AmplifyUIBuilder
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_AMPLIFYUIBUILDER_API FieldConfig() = default;
40 AWS_AMPLIFYUIBUILDER_API FieldConfig(Aws::Utils::Json::JsonView jsonValue);
41 AWS_AMPLIFYUIBUILDER_API FieldConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetLabel() const { return m_label; }
50 inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
51 template<typename LabelT = Aws::String>
52 void SetLabel(LabelT&& value) { m_labelHasBeenSet = true; m_label = std::forward<LabelT>(value); }
53 template<typename LabelT = Aws::String>
54 FieldConfig& WithLabel(LabelT&& value) { SetLabel(std::forward<LabelT>(value)); return *this;}
56
58
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 FieldConfig& WithPosition(PositionT&& value) { SetPosition(std::forward<PositionT>(value)); return *this;}
68
70
73 inline bool GetExcluded() const { return m_excluded; }
74 inline bool ExcludedHasBeenSet() const { return m_excludedHasBeenSet; }
75 inline void SetExcluded(bool value) { m_excludedHasBeenSet = true; m_excluded = value; }
76 inline FieldConfig& WithExcluded(bool value) { SetExcluded(value); return *this;}
78
80
84 inline const FieldInputConfig& GetInputType() const { return m_inputType; }
85 inline bool InputTypeHasBeenSet() const { return m_inputTypeHasBeenSet; }
86 template<typename InputTypeT = FieldInputConfig>
87 void SetInputType(InputTypeT&& value) { m_inputTypeHasBeenSet = true; m_inputType = std::forward<InputTypeT>(value); }
88 template<typename InputTypeT = FieldInputConfig>
89 FieldConfig& WithInputType(InputTypeT&& value) { SetInputType(std::forward<InputTypeT>(value)); return *this;}
91
93
96 inline const Aws::Vector<FieldValidationConfiguration>& GetValidations() const { return m_validations; }
97 inline bool ValidationsHasBeenSet() const { return m_validationsHasBeenSet; }
98 template<typename ValidationsT = Aws::Vector<FieldValidationConfiguration>>
99 void SetValidations(ValidationsT&& value) { m_validationsHasBeenSet = true; m_validations = std::forward<ValidationsT>(value); }
100 template<typename ValidationsT = Aws::Vector<FieldValidationConfiguration>>
101 FieldConfig& WithValidations(ValidationsT&& value) { SetValidations(std::forward<ValidationsT>(value)); return *this;}
102 template<typename ValidationsT = FieldValidationConfiguration>
103 FieldConfig& AddValidations(ValidationsT&& value) { m_validationsHasBeenSet = true; m_validations.emplace_back(std::forward<ValidationsT>(value)); return *this; }
105 private:
106
107 Aws::String m_label;
108 bool m_labelHasBeenSet = false;
109
110 FieldPosition m_position;
111 bool m_positionHasBeenSet = false;
112
113 bool m_excluded{false};
114 bool m_excludedHasBeenSet = false;
115
116 FieldInputConfig m_inputType;
117 bool m_inputTypeHasBeenSet = false;
118
120 bool m_validationsHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace AmplifyUIBuilder
125} // namespace Aws
FieldConfig & WithInputType(InputTypeT &&value)
Definition FieldConfig.h:89
void SetValidations(ValidationsT &&value)
Definition FieldConfig.h:99
AWS_AMPLIFYUIBUILDER_API FieldConfig()=default
const Aws::String & GetLabel() const
Definition FieldConfig.h:49
AWS_AMPLIFYUIBUILDER_API FieldConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
FieldConfig & WithPosition(PositionT &&value)
Definition FieldConfig.h:66
const FieldPosition & GetPosition() const
Definition FieldConfig.h:61
FieldConfig & AddValidations(ValidationsT &&value)
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
const FieldInputConfig & GetInputType() const
Definition FieldConfig.h:84
FieldConfig & WithValidations(ValidationsT &&value)
const Aws::Vector< FieldValidationConfiguration > & GetValidations() const
Definition FieldConfig.h:96
void SetInputType(InputTypeT &&value)
Definition FieldConfig.h:87
FieldConfig & WithExcluded(bool value)
Definition FieldConfig.h:76
AWS_AMPLIFYUIBUILDER_API FieldConfig(Aws::Utils::Json::JsonView jsonValue)
FieldConfig & WithLabel(LabelT &&value)
Definition FieldConfig.h:54
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue