AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename AllowedPatternT = Aws::String>
49 void SetAllowedPattern(AllowedPatternT&& value) { m_allowedPatternHasBeenSet = true; m_allowedPattern = std::forward<AllowedPatternT>(value); }
50 template<typename AllowedPatternT = Aws::String>
51 ParameterDefinition& WithAllowedPattern(AllowedPatternT&& value) { SetAllowedPattern(std::forward<AllowedPatternT>(value)); return *this;}
53
55
58 inline const Aws::Vector<Aws::String>& GetAllowedValues() const { return m_allowedValues; }
59 inline bool AllowedValuesHasBeenSet() const { return m_allowedValuesHasBeenSet; }
60 template<typename AllowedValuesT = Aws::Vector<Aws::String>>
61 void SetAllowedValues(AllowedValuesT&& value) { m_allowedValuesHasBeenSet = true; m_allowedValues = std::forward<AllowedValuesT>(value); }
62 template<typename AllowedValuesT = Aws::Vector<Aws::String>>
63 ParameterDefinition& WithAllowedValues(AllowedValuesT&& value) { SetAllowedValues(std::forward<AllowedValuesT>(value)); return *this;}
64 template<typename AllowedValuesT = Aws::String>
65 ParameterDefinition& AddAllowedValues(AllowedValuesT&& value) { m_allowedValuesHasBeenSet = true; m_allowedValues.emplace_back(std::forward<AllowedValuesT>(value)); return *this; }
67
69
87 inline const Aws::String& GetConstraintDescription() const { return m_constraintDescription; }
88 inline bool ConstraintDescriptionHasBeenSet() const { return m_constraintDescriptionHasBeenSet; }
89 template<typename ConstraintDescriptionT = Aws::String>
90 void SetConstraintDescription(ConstraintDescriptionT&& value) { m_constraintDescriptionHasBeenSet = true; m_constraintDescription = std::forward<ConstraintDescriptionT>(value); }
91 template<typename ConstraintDescriptionT = Aws::String>
92 ParameterDefinition& WithConstraintDescription(ConstraintDescriptionT&& value) { SetConstraintDescription(std::forward<ConstraintDescriptionT>(value)); return *this;}
94
96
102 inline const Aws::String& GetDefaultValue() const { return m_defaultValue; }
103 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
104 template<typename DefaultValueT = Aws::String>
105 void SetDefaultValue(DefaultValueT&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::forward<DefaultValueT>(value); }
106 template<typename DefaultValueT = Aws::String>
107 ParameterDefinition& WithDefaultValue(DefaultValueT&& value) { SetDefaultValue(std::forward<DefaultValueT>(value)); return *this;}
109
111
114 inline const Aws::String& GetDescription() const { return m_description; }
115 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
116 template<typename DescriptionT = Aws::String>
117 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
118 template<typename DescriptionT = Aws::String>
119 ParameterDefinition& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
121
123
127 inline int GetMaxLength() const { return m_maxLength; }
128 inline bool MaxLengthHasBeenSet() const { return m_maxLengthHasBeenSet; }
129 inline void SetMaxLength(int value) { m_maxLengthHasBeenSet = true; m_maxLength = value; }
130 inline ParameterDefinition& WithMaxLength(int value) { SetMaxLength(value); return *this;}
132
134
138 inline int GetMaxValue() const { return m_maxValue; }
139 inline bool MaxValueHasBeenSet() const { return m_maxValueHasBeenSet; }
140 inline void SetMaxValue(int value) { m_maxValueHasBeenSet = true; m_maxValue = value; }
141 inline ParameterDefinition& WithMaxValue(int value) { SetMaxValue(value); return *this;}
143
145
149 inline int GetMinLength() const { return m_minLength; }
150 inline bool MinLengthHasBeenSet() const { return m_minLengthHasBeenSet; }
151 inline void SetMinLength(int value) { m_minLengthHasBeenSet = true; m_minLength = value; }
152 inline ParameterDefinition& WithMinLength(int value) { SetMinLength(value); return *this;}
154
156
160 inline int GetMinValue() const { return m_minValue; }
161 inline bool MinValueHasBeenSet() const { return m_minValueHasBeenSet; }
162 inline void SetMinValue(int value) { m_minValueHasBeenSet = true; m_minValue = value; }
163 inline ParameterDefinition& WithMinValue(int value) { SetMinValue(value); return *this;}
165
167
170 inline const Aws::String& GetName() const { return m_name; }
171 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
172 template<typename NameT = Aws::String>
173 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
174 template<typename NameT = Aws::String>
175 ParameterDefinition& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
177
179
185 inline bool GetNoEcho() const { return m_noEcho; }
186 inline bool NoEchoHasBeenSet() const { return m_noEchoHasBeenSet; }
187 inline void SetNoEcho(bool value) { m_noEchoHasBeenSet = true; m_noEcho = value; }
188 inline ParameterDefinition& WithNoEcho(bool value) { SetNoEcho(value); return *this;}
190
192
195 inline const Aws::Vector<Aws::String>& GetReferencedByResources() const { return m_referencedByResources; }
196 inline bool ReferencedByResourcesHasBeenSet() const { return m_referencedByResourcesHasBeenSet; }
197 template<typename ReferencedByResourcesT = Aws::Vector<Aws::String>>
198 void SetReferencedByResources(ReferencedByResourcesT&& value) { m_referencedByResourcesHasBeenSet = true; m_referencedByResources = std::forward<ReferencedByResourcesT>(value); }
199 template<typename ReferencedByResourcesT = Aws::Vector<Aws::String>>
200 ParameterDefinition& WithReferencedByResources(ReferencedByResourcesT&& value) { SetReferencedByResources(std::forward<ReferencedByResourcesT>(value)); return *this;}
201 template<typename ReferencedByResourcesT = Aws::String>
202 ParameterDefinition& AddReferencedByResources(ReferencedByResourcesT&& value) { m_referencedByResourcesHasBeenSet = true; m_referencedByResources.emplace_back(std::forward<ReferencedByResourcesT>(value)); return *this; }
204
206
232 inline const Aws::String& GetType() const { return m_type; }
233 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
234 template<typename TypeT = Aws::String>
235 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
236 template<typename TypeT = Aws::String>
237 ParameterDefinition& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
239 private:
240
241 Aws::String m_allowedPattern;
242 bool m_allowedPatternHasBeenSet = false;
243
244 Aws::Vector<Aws::String> m_allowedValues;
245 bool m_allowedValuesHasBeenSet = false;
246
247 Aws::String m_constraintDescription;
248 bool m_constraintDescriptionHasBeenSet = false;
249
250 Aws::String m_defaultValue;
251 bool m_defaultValueHasBeenSet = false;
252
253 Aws::String m_description;
254 bool m_descriptionHasBeenSet = false;
255
256 int m_maxLength{0};
257 bool m_maxLengthHasBeenSet = false;
258
259 int m_maxValue{0};
260 bool m_maxValueHasBeenSet = false;
261
262 int m_minLength{0};
263 bool m_minLengthHasBeenSet = false;
264
265 int m_minValue{0};
266 bool m_minValueHasBeenSet = false;
267
268 Aws::String m_name;
269 bool m_nameHasBeenSet = false;
270
271 bool m_noEcho{false};
272 bool m_noEchoHasBeenSet = false;
273
274 Aws::Vector<Aws::String> m_referencedByResources;
275 bool m_referencedByResourcesHasBeenSet = false;
276
277 Aws::String m_type;
278 bool m_typeHasBeenSet = false;
279 };
280
281} // namespace Model
282} // namespace ServerlessApplicationRepository
283} // namespace Aws
ParameterDefinition & AddAllowedValues(AllowedValuesT &&value)
const Aws::Vector< Aws::String > & GetReferencedByResources() const
ParameterDefinition & WithConstraintDescription(ConstraintDescriptionT &&value)
AWS_SERVERLESSAPPLICATIONREPOSITORY_API ParameterDefinition(Aws::Utils::Json::JsonView jsonValue)
ParameterDefinition & AddReferencedByResources(ReferencedByResourcesT &&value)
ParameterDefinition & WithAllowedValues(AllowedValuesT &&value)
AWS_SERVERLESSAPPLICATIONREPOSITORY_API ParameterDefinition()=default
ParameterDefinition & WithAllowedPattern(AllowedPatternT &&value)
AWS_SERVERLESSAPPLICATIONREPOSITORY_API ParameterDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
ParameterDefinition & WithDefaultValue(DefaultValueT &&value)
AWS_SERVERLESSAPPLICATIONREPOSITORY_API Aws::Utils::Json::JsonValue Jsonize() const
ParameterDefinition & WithReferencedByResources(ReferencedByResourcesT &&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