AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ParameterConstraints.h
1
6#pragma once
7#include <aws/servicecatalog/ServiceCatalog_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.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 ServiceCatalog
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SERVICECATALOG_API ParameterConstraints();
37 AWS_SERVICECATALOG_API ParameterConstraints(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SERVICECATALOG_API ParameterConstraints& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SERVICECATALOG_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Vector<Aws::String>& GetAllowedValues() const{ return m_allowedValues; }
47 inline bool AllowedValuesHasBeenSet() const { return m_allowedValuesHasBeenSet; }
48 inline void SetAllowedValues(const Aws::Vector<Aws::String>& value) { m_allowedValuesHasBeenSet = true; m_allowedValues = value; }
49 inline void SetAllowedValues(Aws::Vector<Aws::String>&& value) { m_allowedValuesHasBeenSet = true; m_allowedValues = std::move(value); }
51 inline ParameterConstraints& WithAllowedValues(Aws::Vector<Aws::String>&& value) { SetAllowedValues(std::move(value)); return *this;}
52 inline ParameterConstraints& AddAllowedValues(const Aws::String& value) { m_allowedValuesHasBeenSet = true; m_allowedValues.push_back(value); return *this; }
53 inline ParameterConstraints& AddAllowedValues(Aws::String&& value) { m_allowedValuesHasBeenSet = true; m_allowedValues.push_back(std::move(value)); return *this; }
54 inline ParameterConstraints& AddAllowedValues(const char* value) { m_allowedValuesHasBeenSet = true; m_allowedValues.push_back(value); return *this; }
56
58
63 inline const Aws::String& GetAllowedPattern() const{ return m_allowedPattern; }
64 inline bool AllowedPatternHasBeenSet() const { return m_allowedPatternHasBeenSet; }
65 inline void SetAllowedPattern(const Aws::String& value) { m_allowedPatternHasBeenSet = true; m_allowedPattern = value; }
66 inline void SetAllowedPattern(Aws::String&& value) { m_allowedPatternHasBeenSet = true; m_allowedPattern = std::move(value); }
67 inline void SetAllowedPattern(const char* value) { m_allowedPatternHasBeenSet = true; m_allowedPattern.assign(value); }
68 inline ParameterConstraints& WithAllowedPattern(const Aws::String& value) { SetAllowedPattern(value); return *this;}
69 inline ParameterConstraints& WithAllowedPattern(Aws::String&& value) { SetAllowedPattern(std::move(value)); return *this;}
70 inline ParameterConstraints& WithAllowedPattern(const char* value) { SetAllowedPattern(value); return *this;}
72
74
85 inline const Aws::String& GetConstraintDescription() const{ return m_constraintDescription; }
86 inline bool ConstraintDescriptionHasBeenSet() const { return m_constraintDescriptionHasBeenSet; }
87 inline void SetConstraintDescription(const Aws::String& value) { m_constraintDescriptionHasBeenSet = true; m_constraintDescription = value; }
88 inline void SetConstraintDescription(Aws::String&& value) { m_constraintDescriptionHasBeenSet = true; m_constraintDescription = std::move(value); }
89 inline void SetConstraintDescription(const char* value) { m_constraintDescriptionHasBeenSet = true; m_constraintDescription.assign(value); }
91 inline ParameterConstraints& WithConstraintDescription(Aws::String&& value) { SetConstraintDescription(std::move(value)); return *this;}
92 inline ParameterConstraints& WithConstraintDescription(const char* value) { SetConstraintDescription(value); return *this;}
94
96
100 inline const Aws::String& GetMaxLength() const{ return m_maxLength; }
101 inline bool MaxLengthHasBeenSet() const { return m_maxLengthHasBeenSet; }
102 inline void SetMaxLength(const Aws::String& value) { m_maxLengthHasBeenSet = true; m_maxLength = value; }
103 inline void SetMaxLength(Aws::String&& value) { m_maxLengthHasBeenSet = true; m_maxLength = std::move(value); }
104 inline void SetMaxLength(const char* value) { m_maxLengthHasBeenSet = true; m_maxLength.assign(value); }
105 inline ParameterConstraints& WithMaxLength(const Aws::String& value) { SetMaxLength(value); return *this;}
106 inline ParameterConstraints& WithMaxLength(Aws::String&& value) { SetMaxLength(std::move(value)); return *this;}
107 inline ParameterConstraints& WithMaxLength(const char* value) { SetMaxLength(value); return *this;}
109
111
115 inline const Aws::String& GetMinLength() const{ return m_minLength; }
116 inline bool MinLengthHasBeenSet() const { return m_minLengthHasBeenSet; }
117 inline void SetMinLength(const Aws::String& value) { m_minLengthHasBeenSet = true; m_minLength = value; }
118 inline void SetMinLength(Aws::String&& value) { m_minLengthHasBeenSet = true; m_minLength = std::move(value); }
119 inline void SetMinLength(const char* value) { m_minLengthHasBeenSet = true; m_minLength.assign(value); }
120 inline ParameterConstraints& WithMinLength(const Aws::String& value) { SetMinLength(value); return *this;}
121 inline ParameterConstraints& WithMinLength(Aws::String&& value) { SetMinLength(std::move(value)); return *this;}
122 inline ParameterConstraints& WithMinLength(const char* value) { SetMinLength(value); return *this;}
124
126
130 inline const Aws::String& GetMaxValue() const{ return m_maxValue; }
131 inline bool MaxValueHasBeenSet() const { return m_maxValueHasBeenSet; }
132 inline void SetMaxValue(const Aws::String& value) { m_maxValueHasBeenSet = true; m_maxValue = value; }
133 inline void SetMaxValue(Aws::String&& value) { m_maxValueHasBeenSet = true; m_maxValue = std::move(value); }
134 inline void SetMaxValue(const char* value) { m_maxValueHasBeenSet = true; m_maxValue.assign(value); }
135 inline ParameterConstraints& WithMaxValue(const Aws::String& value) { SetMaxValue(value); return *this;}
136 inline ParameterConstraints& WithMaxValue(Aws::String&& value) { SetMaxValue(std::move(value)); return *this;}
137 inline ParameterConstraints& WithMaxValue(const char* value) { SetMaxValue(value); return *this;}
139
141
145 inline const Aws::String& GetMinValue() const{ return m_minValue; }
146 inline bool MinValueHasBeenSet() const { return m_minValueHasBeenSet; }
147 inline void SetMinValue(const Aws::String& value) { m_minValueHasBeenSet = true; m_minValue = value; }
148 inline void SetMinValue(Aws::String&& value) { m_minValueHasBeenSet = true; m_minValue = std::move(value); }
149 inline void SetMinValue(const char* value) { m_minValueHasBeenSet = true; m_minValue.assign(value); }
150 inline ParameterConstraints& WithMinValue(const Aws::String& value) { SetMinValue(value); return *this;}
151 inline ParameterConstraints& WithMinValue(Aws::String&& value) { SetMinValue(std::move(value)); return *this;}
152 inline ParameterConstraints& WithMinValue(const char* value) { SetMinValue(value); return *this;}
154 private:
155
156 Aws::Vector<Aws::String> m_allowedValues;
157 bool m_allowedValuesHasBeenSet = false;
158
159 Aws::String m_allowedPattern;
160 bool m_allowedPatternHasBeenSet = false;
161
162 Aws::String m_constraintDescription;
163 bool m_constraintDescriptionHasBeenSet = false;
164
165 Aws::String m_maxLength;
166 bool m_maxLengthHasBeenSet = false;
167
168 Aws::String m_minLength;
169 bool m_minLengthHasBeenSet = false;
170
171 Aws::String m_maxValue;
172 bool m_maxValueHasBeenSet = false;
173
174 Aws::String m_minValue;
175 bool m_minValueHasBeenSet = false;
176 };
177
178} // namespace Model
179} // namespace ServiceCatalog
180} // namespace Aws
ParameterConstraints & WithAllowedPattern(Aws::String &&value)
ParameterConstraints & WithMaxLength(const Aws::String &value)
void SetAllowedValues(const Aws::Vector< Aws::String > &value)
AWS_SERVICECATALOG_API ParameterConstraints & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAllowedValues(Aws::Vector< Aws::String > &&value)
ParameterConstraints & WithMinValue(Aws::String &&value)
ParameterConstraints & AddAllowedValues(const Aws::String &value)
ParameterConstraints & WithMaxValue(const Aws::String &value)
ParameterConstraints & WithConstraintDescription(const Aws::String &value)
ParameterConstraints & WithMinValue(const Aws::String &value)
ParameterConstraints & WithMaxLength(Aws::String &&value)
AWS_SERVICECATALOG_API ParameterConstraints(Aws::Utils::Json::JsonView jsonValue)
ParameterConstraints & WithMaxLength(const char *value)
ParameterConstraints & WithMaxValue(const char *value)
ParameterConstraints & WithMaxValue(Aws::String &&value)
AWS_SERVICECATALOG_API Aws::Utils::Json::JsonValue Jsonize() const
ParameterConstraints & WithAllowedValues(const Aws::Vector< Aws::String > &value)
ParameterConstraints & WithAllowedPattern(const Aws::String &value)
ParameterConstraints & WithAllowedPattern(const char *value)
void SetConstraintDescription(const Aws::String &value)
ParameterConstraints & AddAllowedValues(Aws::String &&value)
ParameterConstraints & AddAllowedValues(const char *value)
ParameterConstraints & WithAllowedValues(Aws::Vector< Aws::String > &&value)
ParameterConstraints & WithConstraintDescription(const char *value)
ParameterConstraints & WithMinValue(const char *value)
ParameterConstraints & WithMinLength(const Aws::String &value)
ParameterConstraints & WithMinLength(const char *value)
ParameterConstraints & WithConstraintDescription(Aws::String &&value)
const Aws::Vector< Aws::String > & GetAllowedValues() const
ParameterConstraints & WithMinLength(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