AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
FieldValidationConfiguration.h
1
6#pragma once
7#include <aws/amplifyuibuilder/AmplifyUIBuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.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
30 public:
31 AWS_AMPLIFYUIBUILDER_API FieldValidationConfiguration() = default;
32 AWS_AMPLIFYUIBUILDER_API FieldValidationConfiguration(Aws::Utils::Json::JsonView jsonValue);
34 AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetType() const { return m_type; }
41 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
42 template <typename TypeT = Aws::String>
43 void SetType(TypeT&& value) {
44 m_typeHasBeenSet = true;
45 m_type = std::forward<TypeT>(value);
46 }
47 template <typename TypeT = Aws::String>
49 SetType(std::forward<TypeT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<Aws::String>& GetStrValues() const { return m_strValues; }
59 inline bool StrValuesHasBeenSet() const { return m_strValuesHasBeenSet; }
60 template <typename StrValuesT = Aws::Vector<Aws::String>>
61 void SetStrValues(StrValuesT&& value) {
62 m_strValuesHasBeenSet = true;
63 m_strValues = std::forward<StrValuesT>(value);
64 }
65 template <typename StrValuesT = Aws::Vector<Aws::String>>
67 SetStrValues(std::forward<StrValuesT>(value));
68 return *this;
69 }
70 template <typename StrValuesT = Aws::String>
72 m_strValuesHasBeenSet = true;
73 m_strValues.emplace_back(std::forward<StrValuesT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::Vector<int>& GetNumValues() const { return m_numValues; }
83 inline bool NumValuesHasBeenSet() const { return m_numValuesHasBeenSet; }
84 template <typename NumValuesT = Aws::Vector<int>>
85 void SetNumValues(NumValuesT&& value) {
86 m_numValuesHasBeenSet = true;
87 m_numValues = std::forward<NumValuesT>(value);
88 }
89 template <typename NumValuesT = Aws::Vector<int>>
91 SetNumValues(std::forward<NumValuesT>(value));
92 return *this;
93 }
95 m_numValuesHasBeenSet = true;
96 m_numValues.push_back(value);
97 return *this;
98 }
100
102
105 inline const Aws::String& GetValidationMessage() const { return m_validationMessage; }
106 inline bool ValidationMessageHasBeenSet() const { return m_validationMessageHasBeenSet; }
107 template <typename ValidationMessageT = Aws::String>
108 void SetValidationMessage(ValidationMessageT&& value) {
109 m_validationMessageHasBeenSet = true;
110 m_validationMessage = std::forward<ValidationMessageT>(value);
111 }
112 template <typename ValidationMessageT = Aws::String>
114 SetValidationMessage(std::forward<ValidationMessageT>(value));
115 return *this;
116 }
118 private:
119 Aws::String m_type;
120
121 Aws::Vector<Aws::String> m_strValues;
122
123 Aws::Vector<int> m_numValues;
124
125 Aws::String m_validationMessage;
126 bool m_typeHasBeenSet = false;
127 bool m_strValuesHasBeenSet = false;
128 bool m_numValuesHasBeenSet = false;
129 bool m_validationMessageHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace AmplifyUIBuilder
134} // namespace Aws
FieldValidationConfiguration & AddStrValues(StrValuesT &&value)
FieldValidationConfiguration & WithNumValues(NumValuesT &&value)
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_AMPLIFYUIBUILDER_API FieldValidationConfiguration(Aws::Utils::Json::JsonView jsonValue)
FieldValidationConfiguration & WithStrValues(StrValuesT &&value)
AWS_AMPLIFYUIBUILDER_API FieldValidationConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
FieldValidationConfiguration & WithValidationMessage(ValidationMessageT &&value)
AWS_AMPLIFYUIBUILDER_API FieldValidationConfiguration()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue