AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetLabel(const Aws::String& value) { m_labelHasBeenSet = true; m_label = value; }
52 inline void SetLabel(Aws::String&& value) { m_labelHasBeenSet = true; m_label = std::move(value); }
53 inline void SetLabel(const char* value) { m_labelHasBeenSet = true; m_label.assign(value); }
54 inline FieldConfig& WithLabel(const Aws::String& value) { SetLabel(value); return *this;}
55 inline FieldConfig& WithLabel(Aws::String&& value) { SetLabel(std::move(value)); return *this;}
56 inline FieldConfig& WithLabel(const char* value) { SetLabel(value); return *this;}
58
60
63 inline const FieldPosition& GetPosition() const{ return m_position; }
64 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
65 inline void SetPosition(const FieldPosition& value) { m_positionHasBeenSet = true; m_position = value; }
66 inline void SetPosition(FieldPosition&& value) { m_positionHasBeenSet = true; m_position = std::move(value); }
67 inline FieldConfig& WithPosition(const FieldPosition& value) { SetPosition(value); return *this;}
68 inline FieldConfig& WithPosition(FieldPosition&& value) { SetPosition(std::move(value)); return *this;}
70
72
75 inline bool GetExcluded() const{ return m_excluded; }
76 inline bool ExcludedHasBeenSet() const { return m_excludedHasBeenSet; }
77 inline void SetExcluded(bool value) { m_excludedHasBeenSet = true; m_excluded = value; }
78 inline FieldConfig& WithExcluded(bool value) { SetExcluded(value); return *this;}
80
82
86 inline const FieldInputConfig& GetInputType() const{ return m_inputType; }
87 inline bool InputTypeHasBeenSet() const { return m_inputTypeHasBeenSet; }
88 inline void SetInputType(const FieldInputConfig& value) { m_inputTypeHasBeenSet = true; m_inputType = value; }
89 inline void SetInputType(FieldInputConfig&& value) { m_inputTypeHasBeenSet = true; m_inputType = std::move(value); }
90 inline FieldConfig& WithInputType(const FieldInputConfig& value) { SetInputType(value); return *this;}
91 inline FieldConfig& WithInputType(FieldInputConfig&& value) { SetInputType(std::move(value)); return *this;}
93
95
98 inline const Aws::Vector<FieldValidationConfiguration>& GetValidations() const{ return m_validations; }
99 inline bool ValidationsHasBeenSet() const { return m_validationsHasBeenSet; }
100 inline void SetValidations(const Aws::Vector<FieldValidationConfiguration>& value) { m_validationsHasBeenSet = true; m_validations = value; }
101 inline void SetValidations(Aws::Vector<FieldValidationConfiguration>&& value) { m_validationsHasBeenSet = true; m_validations = std::move(value); }
103 inline FieldConfig& WithValidations(Aws::Vector<FieldValidationConfiguration>&& value) { SetValidations(std::move(value)); return *this;}
104 inline FieldConfig& AddValidations(const FieldValidationConfiguration& value) { m_validationsHasBeenSet = true; m_validations.push_back(value); return *this; }
105 inline FieldConfig& AddValidations(FieldValidationConfiguration&& value) { m_validationsHasBeenSet = true; m_validations.push_back(std::move(value)); return *this; }
107 private:
108
109 Aws::String m_label;
110 bool m_labelHasBeenSet = false;
111
112 FieldPosition m_position;
113 bool m_positionHasBeenSet = false;
114
115 bool m_excluded;
116 bool m_excludedHasBeenSet = false;
117
118 FieldInputConfig m_inputType;
119 bool m_inputTypeHasBeenSet = false;
120
122 bool m_validationsHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace AmplifyUIBuilder
127} // namespace Aws
void SetInputType(const FieldInputConfig &value)
Definition FieldConfig.h:88
FieldConfig & WithInputType(FieldInputConfig &&value)
Definition FieldConfig.h:91
void SetLabel(Aws::String &&value)
Definition FieldConfig.h:52
FieldConfig & WithValidations(Aws::Vector< FieldValidationConfiguration > &&value)
void SetValidations(const Aws::Vector< FieldValidationConfiguration > &value)
const Aws::String & GetLabel() const
Definition FieldConfig.h:49
AWS_AMPLIFYUIBUILDER_API FieldConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const FieldPosition & GetPosition() const
Definition FieldConfig.h:63
FieldConfig & WithLabel(const char *value)
Definition FieldConfig.h:56
FieldConfig & AddValidations(FieldValidationConfiguration &&value)
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
FieldConfig & WithInputType(const FieldInputConfig &value)
Definition FieldConfig.h:90
void SetPosition(const FieldPosition &value)
Definition FieldConfig.h:65
const FieldInputConfig & GetInputType() const
Definition FieldConfig.h:86
AWS_AMPLIFYUIBUILDER_API FieldConfig()
FieldConfig & WithPosition(const FieldPosition &value)
Definition FieldConfig.h:67
FieldConfig & WithPosition(FieldPosition &&value)
Definition FieldConfig.h:68
void SetPosition(FieldPosition &&value)
Definition FieldConfig.h:66
void SetValidations(Aws::Vector< FieldValidationConfiguration > &&value)
FieldConfig & WithLabel(Aws::String &&value)
Definition FieldConfig.h:55
const Aws::Vector< FieldValidationConfiguration > & GetValidations() const
Definition FieldConfig.h:98
void SetLabel(const Aws::String &value)
Definition FieldConfig.h:51
FieldConfig & WithLabel(const Aws::String &value)
Definition FieldConfig.h:54
FieldConfig & WithExcluded(bool value)
Definition FieldConfig.h:78
AWS_AMPLIFYUIBUILDER_API FieldConfig(Aws::Utils::Json::JsonView jsonValue)
FieldConfig & WithValidations(const Aws::Vector< FieldValidationConfiguration > &value)
void SetInputType(FieldInputConfig &&value)
Definition FieldConfig.h:89
FieldConfig & AddValidations(const FieldValidationConfiguration &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue