AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
49 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
50 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
51 inline FieldValidationConfiguration& WithType(const Aws::String& value) { SetType(value); return *this;}
52 inline FieldValidationConfiguration& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
53 inline FieldValidationConfiguration& WithType(const char* value) { SetType(value); return *this;}
55
57
60 inline const Aws::Vector<Aws::String>& GetStrValues() const{ return m_strValues; }
61 inline bool StrValuesHasBeenSet() const { return m_strValuesHasBeenSet; }
62 inline void SetStrValues(const Aws::Vector<Aws::String>& value) { m_strValuesHasBeenSet = true; m_strValues = value; }
63 inline void SetStrValues(Aws::Vector<Aws::String>&& value) { m_strValuesHasBeenSet = true; m_strValues = std::move(value); }
65 inline FieldValidationConfiguration& WithStrValues(Aws::Vector<Aws::String>&& value) { SetStrValues(std::move(value)); return *this;}
66 inline FieldValidationConfiguration& AddStrValues(const Aws::String& value) { m_strValuesHasBeenSet = true; m_strValues.push_back(value); return *this; }
67 inline FieldValidationConfiguration& AddStrValues(Aws::String&& value) { m_strValuesHasBeenSet = true; m_strValues.push_back(std::move(value)); return *this; }
68 inline FieldValidationConfiguration& AddStrValues(const char* value) { m_strValuesHasBeenSet = true; m_strValues.push_back(value); return *this; }
70
72
75 inline const Aws::Vector<int>& GetNumValues() const{ return m_numValues; }
76 inline bool NumValuesHasBeenSet() const { return m_numValuesHasBeenSet; }
77 inline void SetNumValues(const Aws::Vector<int>& value) { m_numValuesHasBeenSet = true; m_numValues = value; }
78 inline void SetNumValues(Aws::Vector<int>&& value) { m_numValuesHasBeenSet = true; m_numValues = std::move(value); }
79 inline FieldValidationConfiguration& WithNumValues(const Aws::Vector<int>& value) { SetNumValues(value); return *this;}
80 inline FieldValidationConfiguration& WithNumValues(Aws::Vector<int>&& value) { SetNumValues(std::move(value)); return *this;}
81 inline FieldValidationConfiguration& AddNumValues(int value) { m_numValuesHasBeenSet = true; m_numValues.push_back(value); return *this; }
83
85
88 inline const Aws::String& GetValidationMessage() const{ return m_validationMessage; }
89 inline bool ValidationMessageHasBeenSet() const { return m_validationMessageHasBeenSet; }
90 inline void SetValidationMessage(const Aws::String& value) { m_validationMessageHasBeenSet = true; m_validationMessage = value; }
91 inline void SetValidationMessage(Aws::String&& value) { m_validationMessageHasBeenSet = true; m_validationMessage = std::move(value); }
92 inline void SetValidationMessage(const char* value) { m_validationMessageHasBeenSet = true; m_validationMessage.assign(value); }
94 inline FieldValidationConfiguration& WithValidationMessage(Aws::String&& value) { SetValidationMessage(std::move(value)); return *this;}
95 inline FieldValidationConfiguration& WithValidationMessage(const char* value) { SetValidationMessage(value); return *this;}
97 private:
98
99 Aws::String m_type;
100 bool m_typeHasBeenSet = false;
101
102 Aws::Vector<Aws::String> m_strValues;
103 bool m_strValuesHasBeenSet = false;
104
105 Aws::Vector<int> m_numValues;
106 bool m_numValuesHasBeenSet = false;
107
108 Aws::String m_validationMessage;
109 bool m_validationMessageHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace AmplifyUIBuilder
114} // namespace Aws
FieldValidationConfiguration & WithValidationMessage(const Aws::String &value)
FieldValidationConfiguration & WithType(Aws::String &&value)
FieldValidationConfiguration & AddStrValues(const char *value)
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
FieldValidationConfiguration & AddStrValues(const Aws::String &value)
AWS_AMPLIFYUIBUILDER_API FieldValidationConfiguration(Aws::Utils::Json::JsonView jsonValue)
FieldValidationConfiguration & AddStrValues(Aws::String &&value)
AWS_AMPLIFYUIBUILDER_API FieldValidationConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
FieldValidationConfiguration & WithType(const char *value)
FieldValidationConfiguration & WithStrValues(const Aws::Vector< Aws::String > &value)
FieldValidationConfiguration & WithNumValues(Aws::Vector< int > &&value)
FieldValidationConfiguration & WithType(const Aws::String &value)
FieldValidationConfiguration & WithNumValues(const Aws::Vector< int > &value)
FieldValidationConfiguration & WithValidationMessage(const char *value)
FieldValidationConfiguration & WithStrValues(Aws::Vector< Aws::String > &&value)
FieldValidationConfiguration & WithValidationMessage(Aws::String &&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