7#include <aws/appconfigcloudextension/AppConfigCloudExtension_EXPORTS.h>
8#include <aws/appconfigcloudextension/model/EnumConstraint.h>
9#include <aws/appconfigcloudextension/model/LengthConstraint.h>
10#include <aws/appconfigcloudextension/model/PatternConstraint.h>
11#include <aws/appconfigcloudextension/model/RangeConstraint.h>
12#include <aws/appconfigcloudextension/model/TypeConstraint.h>
23namespace AppConfigCloudExtension {
46 m_requiredHasBeenSet =
true;
61 template <
typename TypeT = TypeConstra
int>
63 m_typeHasBeenSet =
true;
64 m_type = std::forward<TypeT>(value);
66 template <
typename TypeT = TypeConstra
int>
68 SetType(std::forward<TypeT>(value));
79 template <
typename LengthT = LengthConstra
int>
81 m_lengthHasBeenSet =
true;
82 m_length = std::forward<LengthT>(value);
84 template <
typename LengthT = LengthConstra
int>
97 template <
typename RangeT = RangeConstra
int>
99 m_rangeHasBeenSet =
true;
100 m_range = std::forward<RangeT>(value);
102 template <
typename RangeT = RangeConstra
int>
104 SetRange(std::forward<RangeT>(value));
115 template <
typename PatternT = PatternConstra
int>
117 m_patternHasBeenSet =
true;
118 m_pattern = std::forward<PatternT>(value);
120 template <
typename PatternT = PatternConstra
int>
133 template <
typename EnumT = EnumConstra
int>
135 m_enumHasBeenSet =
true;
136 m_enum = std::forward<EnumT>(value);
138 template <
typename EnumT = EnumConstra
int>
140 SetEnum(std::forward<EnumT>(value));
152 m_unionHasBeenSet =
true;
161 bool m_required{
false};
163 TypeConstraint m_type;
165 LengthConstraint m_length;
167 RangeConstraint m_range;
169 PatternConstraint m_pattern;
171 EnumConstraint m_enum;
174 bool m_requiredHasBeenSet =
false;
175 bool m_typeHasBeenSet =
false;
176 bool m_lengthHasBeenSet =
false;
177 bool m_rangeHasBeenSet =
false;
178 bool m_patternHasBeenSet =
false;
179 bool m_enumHasBeenSet =
false;
180 bool m_unionHasBeenSet =
false;
bool TypeHasBeenSet() const
void SetRequired(bool value)
bool EnumHasBeenSet() const
bool LengthHasBeenSet() const
AWS_APPCONFIGCLOUDEXTENSION_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPCONFIGCLOUDEXTENSION_API Constraint & operator=(Aws::Utils::Json::JsonView jsonValue)
bool PatternHasBeenSet() const
Constraint & WithRange(RangeT &&value)
Constraint & WithUnion(bool value)
Constraint & WithRequired(bool value)
AWS_APPCONFIGCLOUDEXTENSION_API Constraint()=default
const TypeConstraint & GetType() const
void SetPattern(PatternT &&value)
Constraint & WithType(TypeT &&value)
bool RequiredHasBeenSet() const
Constraint & WithPattern(PatternT &&value)
bool UnionHasBeenSet() const
Constraint & WithEnum(EnumT &&value)
void SetLength(LengthT &&value)
const RangeConstraint & GetRange() const
Constraint & WithLength(LengthT &&value)
AWS_APPCONFIGCLOUDEXTENSION_API Constraint(Aws::Utils::Json::JsonView jsonValue)
void SetRange(RangeT &&value)
bool RangeHasBeenSet() const
void SetUnion(bool value)
const EnumConstraint & GetEnum() const
void SetEnum(EnumT &&value)
const LengthConstraint & GetLength() const
void SetType(TypeT &&value)
const PatternConstraint & GetPattern() const
Aws::Utils::Json::JsonValue JsonValue