AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ActionReviewPayloadField.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/qbusiness/model/ActionPayloadFieldType.h>
10#include <aws/core/utils/Document.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/qbusiness/model/ActionReviewPayloadFieldAllowedValue.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace QBusiness
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_QBUSINESS_API ActionReviewPayloadField() = default;
42 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetDisplayName() const { return m_displayName; }
50 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
51 template<typename DisplayNameT = Aws::String>
52 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
53 template<typename DisplayNameT = Aws::String>
54 ActionReviewPayloadField& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
56
58
61 inline int GetDisplayOrder() const { return m_displayOrder; }
62 inline bool DisplayOrderHasBeenSet() const { return m_displayOrderHasBeenSet; }
63 inline void SetDisplayOrder(int value) { m_displayOrderHasBeenSet = true; m_displayOrder = value; }
64 inline ActionReviewPayloadField& WithDisplayOrder(int value) { SetDisplayOrder(value); return *this;}
66
68
74 inline const Aws::String& GetDisplayDescription() const { return m_displayDescription; }
75 inline bool DisplayDescriptionHasBeenSet() const { return m_displayDescriptionHasBeenSet; }
76 template<typename DisplayDescriptionT = Aws::String>
77 void SetDisplayDescription(DisplayDescriptionT&& value) { m_displayDescriptionHasBeenSet = true; m_displayDescription = std::forward<DisplayDescriptionT>(value); }
78 template<typename DisplayDescriptionT = Aws::String>
79 ActionReviewPayloadField& WithDisplayDescription(DisplayDescriptionT&& value) { SetDisplayDescription(std::forward<DisplayDescriptionT>(value)); return *this;}
81
83
86 inline ActionPayloadFieldType GetType() const { return m_type; }
87 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
88 inline void SetType(ActionPayloadFieldType value) { m_typeHasBeenSet = true; m_type = value; }
89 inline ActionReviewPayloadField& WithType(ActionPayloadFieldType value) { SetType(value); return *this;}
91
93
96 inline Aws::Utils::DocumentView GetValue() const { return m_value; }
97 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
98 template<typename ValueT = Aws::Utils::Document>
99 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
100 template<typename ValueT = Aws::Utils::Document>
101 ActionReviewPayloadField& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
103
105
110 inline const Aws::Vector<ActionReviewPayloadFieldAllowedValue>& GetAllowedValues() const { return m_allowedValues; }
111 inline bool AllowedValuesHasBeenSet() const { return m_allowedValuesHasBeenSet; }
112 template<typename AllowedValuesT = Aws::Vector<ActionReviewPayloadFieldAllowedValue>>
113 void SetAllowedValues(AllowedValuesT&& value) { m_allowedValuesHasBeenSet = true; m_allowedValues = std::forward<AllowedValuesT>(value); }
114 template<typename AllowedValuesT = Aws::Vector<ActionReviewPayloadFieldAllowedValue>>
115 ActionReviewPayloadField& WithAllowedValues(AllowedValuesT&& value) { SetAllowedValues(std::forward<AllowedValuesT>(value)); return *this;}
116 template<typename AllowedValuesT = ActionReviewPayloadFieldAllowedValue>
117 ActionReviewPayloadField& AddAllowedValues(AllowedValuesT&& value) { m_allowedValuesHasBeenSet = true; m_allowedValues.emplace_back(std::forward<AllowedValuesT>(value)); return *this; }
119
121
126 inline const Aws::String& GetAllowedFormat() const { return m_allowedFormat; }
127 inline bool AllowedFormatHasBeenSet() const { return m_allowedFormatHasBeenSet; }
128 template<typename AllowedFormatT = Aws::String>
129 void SetAllowedFormat(AllowedFormatT&& value) { m_allowedFormatHasBeenSet = true; m_allowedFormat = std::forward<AllowedFormatT>(value); }
130 template<typename AllowedFormatT = Aws::String>
131 ActionReviewPayloadField& WithAllowedFormat(AllowedFormatT&& value) { SetAllowedFormat(std::forward<AllowedFormatT>(value)); return *this;}
133
135
139 inline Aws::Utils::DocumentView GetArrayItemJsonSchema() const { return m_arrayItemJsonSchema; }
140 inline bool ArrayItemJsonSchemaHasBeenSet() const { return m_arrayItemJsonSchemaHasBeenSet; }
141 template<typename ArrayItemJsonSchemaT = Aws::Utils::Document>
142 void SetArrayItemJsonSchema(ArrayItemJsonSchemaT&& value) { m_arrayItemJsonSchemaHasBeenSet = true; m_arrayItemJsonSchema = std::forward<ArrayItemJsonSchemaT>(value); }
143 template<typename ArrayItemJsonSchemaT = Aws::Utils::Document>
144 ActionReviewPayloadField& WithArrayItemJsonSchema(ArrayItemJsonSchemaT&& value) { SetArrayItemJsonSchema(std::forward<ArrayItemJsonSchemaT>(value)); return *this;}
146
148
151 inline bool GetRequired() const { return m_required; }
152 inline bool RequiredHasBeenSet() const { return m_requiredHasBeenSet; }
153 inline void SetRequired(bool value) { m_requiredHasBeenSet = true; m_required = value; }
154 inline ActionReviewPayloadField& WithRequired(bool value) { SetRequired(value); return *this;}
156 private:
157
158 Aws::String m_displayName;
159 bool m_displayNameHasBeenSet = false;
160
161 int m_displayOrder{0};
162 bool m_displayOrderHasBeenSet = false;
163
164 Aws::String m_displayDescription;
165 bool m_displayDescriptionHasBeenSet = false;
166
168 bool m_typeHasBeenSet = false;
169
170 Aws::Utils::Document m_value;
171 bool m_valueHasBeenSet = false;
172
174 bool m_allowedValuesHasBeenSet = false;
175
176 Aws::String m_allowedFormat;
177 bool m_allowedFormatHasBeenSet = false;
178
179 Aws::Utils::Document m_arrayItemJsonSchema;
180 bool m_arrayItemJsonSchemaHasBeenSet = false;
181
182 bool m_required{false};
183 bool m_requiredHasBeenSet = false;
184 };
185
186} // namespace Model
187} // namespace QBusiness
188} // 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