AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
ActionReviewPayloadField.h
1
6#pragma once
7#include <aws/core/utils/Document.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/qbusiness/QBusiness_EXPORTS.h>
11#include <aws/qbusiness/model/ActionPayloadFieldType.h>
12#include <aws/qbusiness/model/ActionReviewPayloadFieldAllowedValue.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace QBusiness {
24namespace Model {
25
33 public:
34 AWS_QBUSINESS_API ActionReviewPayloadField() = default;
37 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetDisplayName() const { return m_displayName; }
44 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
45 template <typename DisplayNameT = Aws::String>
46 void SetDisplayName(DisplayNameT&& value) {
47 m_displayNameHasBeenSet = true;
48 m_displayName = std::forward<DisplayNameT>(value);
49 }
50 template <typename DisplayNameT = Aws::String>
52 SetDisplayName(std::forward<DisplayNameT>(value));
53 return *this;
54 }
56
58
61 inline int GetDisplayOrder() const { return m_displayOrder; }
62 inline bool DisplayOrderHasBeenSet() const { return m_displayOrderHasBeenSet; }
63 inline void SetDisplayOrder(int value) {
64 m_displayOrderHasBeenSet = true;
65 m_displayOrder = value;
66 }
68 SetDisplayOrder(value);
69 return *this;
70 }
72
74
80 inline const Aws::String& GetDisplayDescription() const { return m_displayDescription; }
81 inline bool DisplayDescriptionHasBeenSet() const { return m_displayDescriptionHasBeenSet; }
82 template <typename DisplayDescriptionT = Aws::String>
83 void SetDisplayDescription(DisplayDescriptionT&& value) {
84 m_displayDescriptionHasBeenSet = true;
85 m_displayDescription = std::forward<DisplayDescriptionT>(value);
86 }
87 template <typename DisplayDescriptionT = Aws::String>
88 ActionReviewPayloadField& WithDisplayDescription(DisplayDescriptionT&& value) {
89 SetDisplayDescription(std::forward<DisplayDescriptionT>(value));
90 return *this;
91 }
93
95
98 inline ActionPayloadFieldType GetType() const { return m_type; }
99 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
100 inline void SetType(ActionPayloadFieldType value) {
101 m_typeHasBeenSet = true;
102 m_type = value;
103 }
105 SetType(value);
106 return *this;
107 }
109
111
114 inline Aws::Utils::DocumentView GetValue() const { return m_value; }
115 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
116 template <typename ValueT = Aws::Utils::Document>
117 void SetValue(ValueT&& value) {
118 m_valueHasBeenSet = true;
119 m_value = std::forward<ValueT>(value);
120 }
121 template <typename ValueT = Aws::Utils::Document>
123 SetValue(std::forward<ValueT>(value));
124 return *this;
125 }
127
129
134 inline const Aws::Vector<ActionReviewPayloadFieldAllowedValue>& GetAllowedValues() const { return m_allowedValues; }
135 inline bool AllowedValuesHasBeenSet() const { return m_allowedValuesHasBeenSet; }
136 template <typename AllowedValuesT = Aws::Vector<ActionReviewPayloadFieldAllowedValue>>
137 void SetAllowedValues(AllowedValuesT&& value) {
138 m_allowedValuesHasBeenSet = true;
139 m_allowedValues = std::forward<AllowedValuesT>(value);
140 }
141 template <typename AllowedValuesT = Aws::Vector<ActionReviewPayloadFieldAllowedValue>>
143 SetAllowedValues(std::forward<AllowedValuesT>(value));
144 return *this;
145 }
146 template <typename AllowedValuesT = ActionReviewPayloadFieldAllowedValue>
148 m_allowedValuesHasBeenSet = true;
149 m_allowedValues.emplace_back(std::forward<AllowedValuesT>(value));
150 return *this;
151 }
153
155
160 inline const Aws::String& GetAllowedFormat() const { return m_allowedFormat; }
161 inline bool AllowedFormatHasBeenSet() const { return m_allowedFormatHasBeenSet; }
162 template <typename AllowedFormatT = Aws::String>
163 void SetAllowedFormat(AllowedFormatT&& value) {
164 m_allowedFormatHasBeenSet = true;
165 m_allowedFormat = std::forward<AllowedFormatT>(value);
166 }
167 template <typename AllowedFormatT = Aws::String>
169 SetAllowedFormat(std::forward<AllowedFormatT>(value));
170 return *this;
171 }
173
175
179 inline Aws::Utils::DocumentView GetArrayItemJsonSchema() const { return m_arrayItemJsonSchema; }
180 inline bool ArrayItemJsonSchemaHasBeenSet() const { return m_arrayItemJsonSchemaHasBeenSet; }
181 template <typename ArrayItemJsonSchemaT = Aws::Utils::Document>
182 void SetArrayItemJsonSchema(ArrayItemJsonSchemaT&& value) {
183 m_arrayItemJsonSchemaHasBeenSet = true;
184 m_arrayItemJsonSchema = std::forward<ArrayItemJsonSchemaT>(value);
185 }
186 template <typename ArrayItemJsonSchemaT = Aws::Utils::Document>
187 ActionReviewPayloadField& WithArrayItemJsonSchema(ArrayItemJsonSchemaT&& value) {
188 SetArrayItemJsonSchema(std::forward<ArrayItemJsonSchemaT>(value));
189 return *this;
190 }
192
194
197 inline bool GetRequired() const { return m_required; }
198 inline bool RequiredHasBeenSet() const { return m_requiredHasBeenSet; }
199 inline void SetRequired(bool value) {
200 m_requiredHasBeenSet = true;
201 m_required = value;
202 }
204 SetRequired(value);
205 return *this;
206 }
208 private:
209 Aws::String m_displayName;
210
211 int m_displayOrder{0};
212
213 Aws::String m_displayDescription;
214
216
217 Aws::Utils::Document m_value;
218
220
221 Aws::String m_allowedFormat;
222
223 Aws::Utils::Document m_arrayItemJsonSchema;
224
225 bool m_required{false};
226 bool m_displayNameHasBeenSet = false;
227 bool m_displayOrderHasBeenSet = false;
228 bool m_displayDescriptionHasBeenSet = false;
229 bool m_typeHasBeenSet = false;
230 bool m_valueHasBeenSet = false;
231 bool m_allowedValuesHasBeenSet = false;
232 bool m_allowedFormatHasBeenSet = false;
233 bool m_arrayItemJsonSchemaHasBeenSet = false;
234 bool m_requiredHasBeenSet = false;
235};
236
237} // namespace Model
238} // namespace QBusiness
239} // namespace Aws
ActionReviewPayloadField & WithType(ActionPayloadFieldType value)
ActionReviewPayloadField & WithRequired(bool value)
const Aws::Vector< ActionReviewPayloadFieldAllowedValue > & GetAllowedValues() const
ActionReviewPayloadField & WithValue(ValueT &&value)
ActionReviewPayloadField & WithDisplayOrder(int value)
ActionReviewPayloadField & WithArrayItemJsonSchema(ArrayItemJsonSchemaT &&value)
ActionReviewPayloadField & WithAllowedFormat(AllowedFormatT &&value)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
ActionReviewPayloadField & AddAllowedValues(AllowedValuesT &&value)
ActionReviewPayloadField & WithDisplayName(DisplayNameT &&value)
AWS_QBUSINESS_API ActionReviewPayloadField()=default
AWS_QBUSINESS_API ActionReviewPayloadField(Aws::Utils::Json::JsonView jsonValue)
void SetDisplayDescription(DisplayDescriptionT &&value)
AWS_QBUSINESS_API ActionReviewPayloadField & operator=(Aws::Utils::Json::JsonView jsonValue)
ActionReviewPayloadField & WithAllowedValues(AllowedValuesT &&value)
void SetArrayItemJsonSchema(ArrayItemJsonSchemaT &&value)
ActionReviewPayloadField & WithDisplayDescription(DisplayDescriptionT &&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