AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ParameterDefinition.h
1
6#pragma once
7#include <aws/serverlessrepo/ServerlessApplicationRepository_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 ServerlessApplicationRepository
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_SERVERLESSAPPLICATIONREPOSITORY_API ParameterDefinition();
36 AWS_SERVERLESSAPPLICATIONREPOSITORY_API ParameterDefinition(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SERVERLESSAPPLICATIONREPOSITORY_API ParameterDefinition& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SERVERLESSAPPLICATIONREPOSITORY_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::String& GetAllowedPattern() const{ return m_allowedPattern; }
47 inline bool AllowedPatternHasBeenSet() const { return m_allowedPatternHasBeenSet; }
48 inline void SetAllowedPattern(const Aws::String& value) { m_allowedPatternHasBeenSet = true; m_allowedPattern = value; }
49 inline void SetAllowedPattern(Aws::String&& value) { m_allowedPatternHasBeenSet = true; m_allowedPattern = std::move(value); }
50 inline void SetAllowedPattern(const char* value) { m_allowedPatternHasBeenSet = true; m_allowedPattern.assign(value); }
51 inline ParameterDefinition& WithAllowedPattern(const Aws::String& value) { SetAllowedPattern(value); return *this;}
52 inline ParameterDefinition& WithAllowedPattern(Aws::String&& value) { SetAllowedPattern(std::move(value)); return *this;}
53 inline ParameterDefinition& WithAllowedPattern(const char* value) { SetAllowedPattern(value); return *this;}
55
57
60 inline const Aws::Vector<Aws::String>& GetAllowedValues() const{ return m_allowedValues; }
61 inline bool AllowedValuesHasBeenSet() const { return m_allowedValuesHasBeenSet; }
62 inline void SetAllowedValues(const Aws::Vector<Aws::String>& value) { m_allowedValuesHasBeenSet = true; m_allowedValues = value; }
63 inline void SetAllowedValues(Aws::Vector<Aws::String>&& value) { m_allowedValuesHasBeenSet = true; m_allowedValues = std::move(value); }
65 inline ParameterDefinition& WithAllowedValues(Aws::Vector<Aws::String>&& value) { SetAllowedValues(std::move(value)); return *this;}
66 inline ParameterDefinition& AddAllowedValues(const Aws::String& value) { m_allowedValuesHasBeenSet = true; m_allowedValues.push_back(value); return *this; }
67 inline ParameterDefinition& AddAllowedValues(Aws::String&& value) { m_allowedValuesHasBeenSet = true; m_allowedValues.push_back(std::move(value)); return *this; }
68 inline ParameterDefinition& AddAllowedValues(const char* value) { m_allowedValuesHasBeenSet = true; m_allowedValues.push_back(value); return *this; }
70
72
90 inline const Aws::String& GetConstraintDescription() const{ return m_constraintDescription; }
91 inline bool ConstraintDescriptionHasBeenSet() const { return m_constraintDescriptionHasBeenSet; }
92 inline void SetConstraintDescription(const Aws::String& value) { m_constraintDescriptionHasBeenSet = true; m_constraintDescription = value; }
93 inline void SetConstraintDescription(Aws::String&& value) { m_constraintDescriptionHasBeenSet = true; m_constraintDescription = std::move(value); }
94 inline void SetConstraintDescription(const char* value) { m_constraintDescriptionHasBeenSet = true; m_constraintDescription.assign(value); }
96 inline ParameterDefinition& WithConstraintDescription(Aws::String&& value) { SetConstraintDescription(std::move(value)); return *this;}
97 inline ParameterDefinition& WithConstraintDescription(const char* value) { SetConstraintDescription(value); return *this;}
99
101
107 inline const Aws::String& GetDefaultValue() const{ return m_defaultValue; }
108 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
109 inline void SetDefaultValue(const Aws::String& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
110 inline void SetDefaultValue(Aws::String&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::move(value); }
111 inline void SetDefaultValue(const char* value) { m_defaultValueHasBeenSet = true; m_defaultValue.assign(value); }
112 inline ParameterDefinition& WithDefaultValue(const Aws::String& value) { SetDefaultValue(value); return *this;}
113 inline ParameterDefinition& WithDefaultValue(Aws::String&& value) { SetDefaultValue(std::move(value)); return *this;}
114 inline ParameterDefinition& WithDefaultValue(const char* value) { SetDefaultValue(value); return *this;}
116
118
121 inline const Aws::String& GetDescription() const{ return m_description; }
122 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
123 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
124 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
125 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
126 inline ParameterDefinition& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
127 inline ParameterDefinition& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
128 inline ParameterDefinition& WithDescription(const char* value) { SetDescription(value); return *this;}
130
132
136 inline int GetMaxLength() const{ return m_maxLength; }
137 inline bool MaxLengthHasBeenSet() const { return m_maxLengthHasBeenSet; }
138 inline void SetMaxLength(int value) { m_maxLengthHasBeenSet = true; m_maxLength = value; }
139 inline ParameterDefinition& WithMaxLength(int value) { SetMaxLength(value); return *this;}
141
143
147 inline int GetMaxValue() const{ return m_maxValue; }
148 inline bool MaxValueHasBeenSet() const { return m_maxValueHasBeenSet; }
149 inline void SetMaxValue(int value) { m_maxValueHasBeenSet = true; m_maxValue = value; }
150 inline ParameterDefinition& WithMaxValue(int value) { SetMaxValue(value); return *this;}
152
154
158 inline int GetMinLength() const{ return m_minLength; }
159 inline bool MinLengthHasBeenSet() const { return m_minLengthHasBeenSet; }
160 inline void SetMinLength(int value) { m_minLengthHasBeenSet = true; m_minLength = value; }
161 inline ParameterDefinition& WithMinLength(int value) { SetMinLength(value); return *this;}
163
165
169 inline int GetMinValue() const{ return m_minValue; }
170 inline bool MinValueHasBeenSet() const { return m_minValueHasBeenSet; }
171 inline void SetMinValue(int value) { m_minValueHasBeenSet = true; m_minValue = value; }
172 inline ParameterDefinition& WithMinValue(int value) { SetMinValue(value); return *this;}
174
176
179 inline const Aws::String& GetName() const{ return m_name; }
180 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
181 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
182 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
183 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
184 inline ParameterDefinition& WithName(const Aws::String& value) { SetName(value); return *this;}
185 inline ParameterDefinition& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
186 inline ParameterDefinition& WithName(const char* value) { SetName(value); return *this;}
188
190
196 inline bool GetNoEcho() const{ return m_noEcho; }
197 inline bool NoEchoHasBeenSet() const { return m_noEchoHasBeenSet; }
198 inline void SetNoEcho(bool value) { m_noEchoHasBeenSet = true; m_noEcho = value; }
199 inline ParameterDefinition& WithNoEcho(bool value) { SetNoEcho(value); return *this;}
201
203
206 inline const Aws::Vector<Aws::String>& GetReferencedByResources() const{ return m_referencedByResources; }
207 inline bool ReferencedByResourcesHasBeenSet() const { return m_referencedByResourcesHasBeenSet; }
208 inline void SetReferencedByResources(const Aws::Vector<Aws::String>& value) { m_referencedByResourcesHasBeenSet = true; m_referencedByResources = value; }
209 inline void SetReferencedByResources(Aws::Vector<Aws::String>&& value) { m_referencedByResourcesHasBeenSet = true; m_referencedByResources = std::move(value); }
212 inline ParameterDefinition& AddReferencedByResources(const Aws::String& value) { m_referencedByResourcesHasBeenSet = true; m_referencedByResources.push_back(value); return *this; }
213 inline ParameterDefinition& AddReferencedByResources(Aws::String&& value) { m_referencedByResourcesHasBeenSet = true; m_referencedByResources.push_back(std::move(value)); return *this; }
214 inline ParameterDefinition& AddReferencedByResources(const char* value) { m_referencedByResourcesHasBeenSet = true; m_referencedByResources.push_back(value); return *this; }
216
218
244 inline const Aws::String& GetType() const{ return m_type; }
245 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
246 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
247 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
248 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
249 inline ParameterDefinition& WithType(const Aws::String& value) { SetType(value); return *this;}
250 inline ParameterDefinition& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
251 inline ParameterDefinition& WithType(const char* value) { SetType(value); return *this;}
253 private:
254
255 Aws::String m_allowedPattern;
256 bool m_allowedPatternHasBeenSet = false;
257
258 Aws::Vector<Aws::String> m_allowedValues;
259 bool m_allowedValuesHasBeenSet = false;
260
261 Aws::String m_constraintDescription;
262 bool m_constraintDescriptionHasBeenSet = false;
263
264 Aws::String m_defaultValue;
265 bool m_defaultValueHasBeenSet = false;
266
267 Aws::String m_description;
268 bool m_descriptionHasBeenSet = false;
269
270 int m_maxLength;
271 bool m_maxLengthHasBeenSet = false;
272
273 int m_maxValue;
274 bool m_maxValueHasBeenSet = false;
275
276 int m_minLength;
277 bool m_minLengthHasBeenSet = false;
278
279 int m_minValue;
280 bool m_minValueHasBeenSet = false;
281
282 Aws::String m_name;
283 bool m_nameHasBeenSet = false;
284
285 bool m_noEcho;
286 bool m_noEchoHasBeenSet = false;
287
288 Aws::Vector<Aws::String> m_referencedByResources;
289 bool m_referencedByResourcesHasBeenSet = false;
290
291 Aws::String m_type;
292 bool m_typeHasBeenSet = false;
293 };
294
295} // namespace Model
296} // namespace ServerlessApplicationRepository
297} // namespace Aws
ParameterDefinition & WithDefaultValue(const Aws::String &value)
ParameterDefinition & WithConstraintDescription(Aws::String &&value)
ParameterDefinition & WithReferencedByResources(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetReferencedByResources() const
ParameterDefinition & AddReferencedByResources(Aws::String &&value)
AWS_SERVERLESSAPPLICATIONREPOSITORY_API ParameterDefinition(Aws::Utils::Json::JsonView jsonValue)
ParameterDefinition & WithAllowedValues(const Aws::Vector< Aws::String > &value)
ParameterDefinition & AddReferencedByResources(const Aws::String &value)
ParameterDefinition & WithAllowedValues(Aws::Vector< Aws::String > &&value)
AWS_SERVERLESSAPPLICATIONREPOSITORY_API ParameterDefinition()
ParameterDefinition & WithConstraintDescription(const char *value)
void SetAllowedValues(const Aws::Vector< Aws::String > &value)
ParameterDefinition & WithReferencedByResources(Aws::Vector< Aws::String > &&value)
ParameterDefinition & WithDescription(const Aws::String &value)
ParameterDefinition & AddAllowedValues(const Aws::String &value)
AWS_SERVERLESSAPPLICATIONREPOSITORY_API ParameterDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
ParameterDefinition & WithConstraintDescription(const Aws::String &value)
void SetReferencedByResources(const Aws::Vector< Aws::String > &value)
ParameterDefinition & WithType(const Aws::String &value)
AWS_SERVERLESSAPPLICATIONREPOSITORY_API Aws::Utils::Json::JsonValue Jsonize() const
ParameterDefinition & WithAllowedPattern(const Aws::String &value)
ParameterDefinition & WithName(const Aws::String &value)
ParameterDefinition & WithAllowedPattern(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