AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename AllowedValuesT = Aws::Vector<Aws::String>>
49 void SetAllowedValues(AllowedValuesT&& value) { m_allowedValuesHasBeenSet = true; m_allowedValues = std::forward<AllowedValuesT>(value); }
50 template<typename AllowedValuesT = Aws::Vector<Aws::String>>
51 ParameterConstraints& WithAllowedValues(AllowedValuesT&& value) { SetAllowedValues(std::forward<AllowedValuesT>(value)); return *this;}
52 template<typename AllowedValuesT = Aws::String>
53 ParameterConstraints& AddAllowedValues(AllowedValuesT&& value) { m_allowedValuesHasBeenSet = true; m_allowedValues.emplace_back(std::forward<AllowedValuesT>(value)); return *this; }
55
57
62 inline const Aws::String& GetAllowedPattern() const { return m_allowedPattern; }
63 inline bool AllowedPatternHasBeenSet() const { return m_allowedPatternHasBeenSet; }
64 template<typename AllowedPatternT = Aws::String>
65 void SetAllowedPattern(AllowedPatternT&& value) { m_allowedPatternHasBeenSet = true; m_allowedPattern = std::forward<AllowedPatternT>(value); }
66 template<typename AllowedPatternT = Aws::String>
67 ParameterConstraints& WithAllowedPattern(AllowedPatternT&& value) { SetAllowedPattern(std::forward<AllowedPatternT>(value)); return *this;}
69
71
82 inline const Aws::String& GetConstraintDescription() const { return m_constraintDescription; }
83 inline bool ConstraintDescriptionHasBeenSet() const { return m_constraintDescriptionHasBeenSet; }
84 template<typename ConstraintDescriptionT = Aws::String>
85 void SetConstraintDescription(ConstraintDescriptionT&& value) { m_constraintDescriptionHasBeenSet = true; m_constraintDescription = std::forward<ConstraintDescriptionT>(value); }
86 template<typename ConstraintDescriptionT = Aws::String>
87 ParameterConstraints& WithConstraintDescription(ConstraintDescriptionT&& value) { SetConstraintDescription(std::forward<ConstraintDescriptionT>(value)); return *this;}
89
91
95 inline const Aws::String& GetMaxLength() const { return m_maxLength; }
96 inline bool MaxLengthHasBeenSet() const { return m_maxLengthHasBeenSet; }
97 template<typename MaxLengthT = Aws::String>
98 void SetMaxLength(MaxLengthT&& value) { m_maxLengthHasBeenSet = true; m_maxLength = std::forward<MaxLengthT>(value); }
99 template<typename MaxLengthT = Aws::String>
100 ParameterConstraints& WithMaxLength(MaxLengthT&& value) { SetMaxLength(std::forward<MaxLengthT>(value)); return *this;}
102
104
108 inline const Aws::String& GetMinLength() const { return m_minLength; }
109 inline bool MinLengthHasBeenSet() const { return m_minLengthHasBeenSet; }
110 template<typename MinLengthT = Aws::String>
111 void SetMinLength(MinLengthT&& value) { m_minLengthHasBeenSet = true; m_minLength = std::forward<MinLengthT>(value); }
112 template<typename MinLengthT = Aws::String>
113 ParameterConstraints& WithMinLength(MinLengthT&& value) { SetMinLength(std::forward<MinLengthT>(value)); return *this;}
115
117
121 inline const Aws::String& GetMaxValue() const { return m_maxValue; }
122 inline bool MaxValueHasBeenSet() const { return m_maxValueHasBeenSet; }
123 template<typename MaxValueT = Aws::String>
124 void SetMaxValue(MaxValueT&& value) { m_maxValueHasBeenSet = true; m_maxValue = std::forward<MaxValueT>(value); }
125 template<typename MaxValueT = Aws::String>
126 ParameterConstraints& WithMaxValue(MaxValueT&& value) { SetMaxValue(std::forward<MaxValueT>(value)); return *this;}
128
130
134 inline const Aws::String& GetMinValue() const { return m_minValue; }
135 inline bool MinValueHasBeenSet() const { return m_minValueHasBeenSet; }
136 template<typename MinValueT = Aws::String>
137 void SetMinValue(MinValueT&& value) { m_minValueHasBeenSet = true; m_minValue = std::forward<MinValueT>(value); }
138 template<typename MinValueT = Aws::String>
139 ParameterConstraints& WithMinValue(MinValueT&& value) { SetMinValue(std::forward<MinValueT>(value)); return *this;}
141 private:
142
143 Aws::Vector<Aws::String> m_allowedValues;
144 bool m_allowedValuesHasBeenSet = false;
145
146 Aws::String m_allowedPattern;
147 bool m_allowedPatternHasBeenSet = false;
148
149 Aws::String m_constraintDescription;
150 bool m_constraintDescriptionHasBeenSet = false;
151
152 Aws::String m_maxLength;
153 bool m_maxLengthHasBeenSet = false;
154
155 Aws::String m_minLength;
156 bool m_minLengthHasBeenSet = false;
157
158 Aws::String m_maxValue;
159 bool m_maxValueHasBeenSet = false;
160
161 Aws::String m_minValue;
162 bool m_minValueHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace ServiceCatalog
167} // namespace Aws
AWS_SERVICECATALOG_API ParameterConstraints & operator=(Aws::Utils::Json::JsonView jsonValue)
ParameterConstraints & WithAllowedPattern(AllowedPatternT &&value)
AWS_SERVICECATALOG_API ParameterConstraints()=default
ParameterConstraints & WithMinLength(MinLengthT &&value)
AWS_SERVICECATALOG_API ParameterConstraints(Aws::Utils::Json::JsonView jsonValue)
ParameterConstraints & WithMaxValue(MaxValueT &&value)
AWS_SERVICECATALOG_API Aws::Utils::Json::JsonValue Jsonize() const
ParameterConstraints & AddAllowedValues(AllowedValuesT &&value)
ParameterConstraints & WithConstraintDescription(ConstraintDescriptionT &&value)
ParameterConstraints & WithMaxLength(MaxLengthT &&value)
ParameterConstraints & WithAllowedValues(AllowedValuesT &&value)
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
Aws::Utils::Json::JsonValue JsonValue