AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
ParameterConstraints.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/servicecatalog/ServiceCatalog_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace ServiceCatalog {
21namespace Model {
22
30 public:
31 AWS_SERVICECATALOG_API ParameterConstraints() = default;
32 AWS_SERVICECATALOG_API ParameterConstraints(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_SERVICECATALOG_API ParameterConstraints& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_SERVICECATALOG_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
40 inline const Aws::Vector<Aws::String>& GetAllowedValues() const { return m_allowedValues; }
41 inline bool AllowedValuesHasBeenSet() const { return m_allowedValuesHasBeenSet; }
42 template <typename AllowedValuesT = Aws::Vector<Aws::String>>
43 void SetAllowedValues(AllowedValuesT&& value) {
44 m_allowedValuesHasBeenSet = true;
45 m_allowedValues = std::forward<AllowedValuesT>(value);
46 }
47 template <typename AllowedValuesT = Aws::Vector<Aws::String>>
48 ParameterConstraints& WithAllowedValues(AllowedValuesT&& value) {
49 SetAllowedValues(std::forward<AllowedValuesT>(value));
50 return *this;
51 }
52 template <typename AllowedValuesT = Aws::String>
53 ParameterConstraints& AddAllowedValues(AllowedValuesT&& value) {
54 m_allowedValuesHasBeenSet = true;
55 m_allowedValues.emplace_back(std::forward<AllowedValuesT>(value));
56 return *this;
57 }
59
61
66 inline const Aws::String& GetAllowedPattern() const { return m_allowedPattern; }
67 inline bool AllowedPatternHasBeenSet() const { return m_allowedPatternHasBeenSet; }
68 template <typename AllowedPatternT = Aws::String>
69 void SetAllowedPattern(AllowedPatternT&& value) {
70 m_allowedPatternHasBeenSet = true;
71 m_allowedPattern = std::forward<AllowedPatternT>(value);
72 }
73 template <typename AllowedPatternT = Aws::String>
74 ParameterConstraints& WithAllowedPattern(AllowedPatternT&& value) {
75 SetAllowedPattern(std::forward<AllowedPatternT>(value));
76 return *this;
77 }
79
81
92 inline const Aws::String& GetConstraintDescription() const { return m_constraintDescription; }
93 inline bool ConstraintDescriptionHasBeenSet() const { return m_constraintDescriptionHasBeenSet; }
94 template <typename ConstraintDescriptionT = Aws::String>
95 void SetConstraintDescription(ConstraintDescriptionT&& value) {
96 m_constraintDescriptionHasBeenSet = true;
97 m_constraintDescription = std::forward<ConstraintDescriptionT>(value);
98 }
99 template <typename ConstraintDescriptionT = Aws::String>
100 ParameterConstraints& WithConstraintDescription(ConstraintDescriptionT&& value) {
101 SetConstraintDescription(std::forward<ConstraintDescriptionT>(value));
102 return *this;
103 }
105
107
111 inline const Aws::String& GetMaxLength() const { return m_maxLength; }
112 inline bool MaxLengthHasBeenSet() const { return m_maxLengthHasBeenSet; }
113 template <typename MaxLengthT = Aws::String>
114 void SetMaxLength(MaxLengthT&& value) {
115 m_maxLengthHasBeenSet = true;
116 m_maxLength = std::forward<MaxLengthT>(value);
117 }
118 template <typename MaxLengthT = Aws::String>
119 ParameterConstraints& WithMaxLength(MaxLengthT&& value) {
120 SetMaxLength(std::forward<MaxLengthT>(value));
121 return *this;
122 }
124
126
130 inline const Aws::String& GetMinLength() const { return m_minLength; }
131 inline bool MinLengthHasBeenSet() const { return m_minLengthHasBeenSet; }
132 template <typename MinLengthT = Aws::String>
133 void SetMinLength(MinLengthT&& value) {
134 m_minLengthHasBeenSet = true;
135 m_minLength = std::forward<MinLengthT>(value);
136 }
137 template <typename MinLengthT = Aws::String>
138 ParameterConstraints& WithMinLength(MinLengthT&& value) {
139 SetMinLength(std::forward<MinLengthT>(value));
140 return *this;
141 }
143
145
149 inline const Aws::String& GetMaxValue() const { return m_maxValue; }
150 inline bool MaxValueHasBeenSet() const { return m_maxValueHasBeenSet; }
151 template <typename MaxValueT = Aws::String>
152 void SetMaxValue(MaxValueT&& value) {
153 m_maxValueHasBeenSet = true;
154 m_maxValue = std::forward<MaxValueT>(value);
155 }
156 template <typename MaxValueT = Aws::String>
157 ParameterConstraints& WithMaxValue(MaxValueT&& value) {
158 SetMaxValue(std::forward<MaxValueT>(value));
159 return *this;
160 }
162
164
168 inline const Aws::String& GetMinValue() const { return m_minValue; }
169 inline bool MinValueHasBeenSet() const { return m_minValueHasBeenSet; }
170 template <typename MinValueT = Aws::String>
171 void SetMinValue(MinValueT&& value) {
172 m_minValueHasBeenSet = true;
173 m_minValue = std::forward<MinValueT>(value);
174 }
175 template <typename MinValueT = Aws::String>
176 ParameterConstraints& WithMinValue(MinValueT&& value) {
177 SetMinValue(std::forward<MinValueT>(value));
178 return *this;
179 }
181 private:
182 Aws::Vector<Aws::String> m_allowedValues;
183
184 Aws::String m_allowedPattern;
185
186 Aws::String m_constraintDescription;
187
188 Aws::String m_maxLength;
189
190 Aws::String m_minLength;
191
192 Aws::String m_maxValue;
193
194 Aws::String m_minValue;
195 bool m_allowedValuesHasBeenSet = false;
196 bool m_allowedPatternHasBeenSet = false;
197 bool m_constraintDescriptionHasBeenSet = false;
198 bool m_maxLengthHasBeenSet = false;
199 bool m_minLengthHasBeenSet = false;
200 bool m_maxValueHasBeenSet = false;
201 bool m_minValueHasBeenSet = false;
202};
203
204} // namespace Model
205} // namespace ServiceCatalog
206} // namespace Aws
ParameterConstraints & WithAllowedPattern(AllowedPatternT &&value)
AWS_SERVICECATALOG_API ParameterConstraints()=default
AWS_SERVICECATALOG_API ParameterConstraints(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ParameterConstraints & WithMinLength(MinLengthT &&value)
ParameterConstraints & WithMaxValue(MaxValueT &&value)
ParameterConstraints & AddAllowedValues(AllowedValuesT &&value)
AWS_SERVICECATALOG_API ParameterConstraints & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ParameterConstraints & WithConstraintDescription(ConstraintDescriptionT &&value)
ParameterConstraints & WithMaxLength(MaxLengthT &&value)
ParameterConstraints & WithAllowedValues(AllowedValuesT &&value)
AWS_SERVICECATALOG_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
ParameterConstraints & WithMinValue(MinValueT &&value)
const Aws::Vector< Aws::String > & GetAllowedValues() const
void SetConstraintDescription(ConstraintDescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector