AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#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
34 {
35 public:
36 AWS_AMPLIFYUIBUILDER_API FieldValidationConfiguration() = default;
37 AWS_AMPLIFYUIBUILDER_API FieldValidationConfiguration(Aws::Utils::Json::JsonView jsonValue);
39 AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetType() const { return m_type; }
47 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
48 template<typename TypeT = Aws::String>
49 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
50 template<typename TypeT = Aws::String>
51 FieldValidationConfiguration& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
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) { m_strValuesHasBeenSet = true; m_strValues = std::forward<StrValuesT>(value); }
62 template<typename StrValuesT = Aws::Vector<Aws::String>>
63 FieldValidationConfiguration& WithStrValues(StrValuesT&& value) { SetStrValues(std::forward<StrValuesT>(value)); return *this;}
64 template<typename StrValuesT = Aws::String>
65 FieldValidationConfiguration& AddStrValues(StrValuesT&& value) { m_strValuesHasBeenSet = true; m_strValues.emplace_back(std::forward<StrValuesT>(value)); return *this; }
67
69
72 inline const Aws::Vector<int>& GetNumValues() const { return m_numValues; }
73 inline bool NumValuesHasBeenSet() const { return m_numValuesHasBeenSet; }
74 template<typename NumValuesT = Aws::Vector<int>>
75 void SetNumValues(NumValuesT&& value) { m_numValuesHasBeenSet = true; m_numValues = std::forward<NumValuesT>(value); }
76 template<typename NumValuesT = Aws::Vector<int>>
77 FieldValidationConfiguration& WithNumValues(NumValuesT&& value) { SetNumValues(std::forward<NumValuesT>(value)); return *this;}
78 inline FieldValidationConfiguration& AddNumValues(int value) { m_numValuesHasBeenSet = true; m_numValues.push_back(value); return *this; }
80
82
85 inline const Aws::String& GetValidationMessage() const { return m_validationMessage; }
86 inline bool ValidationMessageHasBeenSet() const { return m_validationMessageHasBeenSet; }
87 template<typename ValidationMessageT = Aws::String>
88 void SetValidationMessage(ValidationMessageT&& value) { m_validationMessageHasBeenSet = true; m_validationMessage = std::forward<ValidationMessageT>(value); }
89 template<typename ValidationMessageT = Aws::String>
90 FieldValidationConfiguration& WithValidationMessage(ValidationMessageT&& value) { SetValidationMessage(std::forward<ValidationMessageT>(value)); return *this;}
92 private:
93
94 Aws::String m_type;
95 bool m_typeHasBeenSet = false;
96
97 Aws::Vector<Aws::String> m_strValues;
98 bool m_strValuesHasBeenSet = false;
99
100 Aws::Vector<int> m_numValues;
101 bool m_numValuesHasBeenSet = false;
102
103 Aws::String m_validationMessage;
104 bool m_validationMessageHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace AmplifyUIBuilder
109} // 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