AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
52 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
53 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
54 inline ActionReviewPayloadField& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
55 inline ActionReviewPayloadField& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
56 inline ActionReviewPayloadField& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
58
60
63 inline int GetDisplayOrder() const{ return m_displayOrder; }
64 inline bool DisplayOrderHasBeenSet() const { return m_displayOrderHasBeenSet; }
65 inline void SetDisplayOrder(int value) { m_displayOrderHasBeenSet = true; m_displayOrder = value; }
66 inline ActionReviewPayloadField& WithDisplayOrder(int value) { SetDisplayOrder(value); return *this;}
68
70
76 inline const Aws::String& GetDisplayDescription() const{ return m_displayDescription; }
77 inline bool DisplayDescriptionHasBeenSet() const { return m_displayDescriptionHasBeenSet; }
78 inline void SetDisplayDescription(const Aws::String& value) { m_displayDescriptionHasBeenSet = true; m_displayDescription = value; }
79 inline void SetDisplayDescription(Aws::String&& value) { m_displayDescriptionHasBeenSet = true; m_displayDescription = std::move(value); }
80 inline void SetDisplayDescription(const char* value) { m_displayDescriptionHasBeenSet = true; m_displayDescription.assign(value); }
82 inline ActionReviewPayloadField& WithDisplayDescription(Aws::String&& value) { SetDisplayDescription(std::move(value)); return *this;}
83 inline ActionReviewPayloadField& WithDisplayDescription(const char* value) { SetDisplayDescription(value); return *this;}
85
87
90 inline const ActionPayloadFieldType& GetType() const{ return m_type; }
91 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
92 inline void SetType(const ActionPayloadFieldType& value) { m_typeHasBeenSet = true; m_type = value; }
93 inline void SetType(ActionPayloadFieldType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
94 inline ActionReviewPayloadField& WithType(const ActionPayloadFieldType& value) { SetType(value); return *this;}
95 inline ActionReviewPayloadField& WithType(ActionPayloadFieldType&& value) { SetType(std::move(value)); return *this;}
97
99
102 inline Aws::Utils::DocumentView GetValue() const{ return m_value; }
103 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
104 inline void SetValue(const Aws::Utils::Document& value) { m_valueHasBeenSet = true; m_value = value; }
105 inline void SetValue(Aws::Utils::Document&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
106 inline ActionReviewPayloadField& WithValue(const Aws::Utils::Document& value) { SetValue(value); return *this;}
107 inline ActionReviewPayloadField& WithValue(Aws::Utils::Document&& value) { SetValue(std::move(value)); return *this;}
109
111
116 inline const Aws::Vector<ActionReviewPayloadFieldAllowedValue>& GetAllowedValues() const{ return m_allowedValues; }
117 inline bool AllowedValuesHasBeenSet() const { return m_allowedValuesHasBeenSet; }
118 inline void SetAllowedValues(const Aws::Vector<ActionReviewPayloadFieldAllowedValue>& value) { m_allowedValuesHasBeenSet = true; m_allowedValues = value; }
119 inline void SetAllowedValues(Aws::Vector<ActionReviewPayloadFieldAllowedValue>&& value) { m_allowedValuesHasBeenSet = true; m_allowedValues = std::move(value); }
122 inline ActionReviewPayloadField& AddAllowedValues(const ActionReviewPayloadFieldAllowedValue& value) { m_allowedValuesHasBeenSet = true; m_allowedValues.push_back(value); return *this; }
123 inline ActionReviewPayloadField& AddAllowedValues(ActionReviewPayloadFieldAllowedValue&& value) { m_allowedValuesHasBeenSet = true; m_allowedValues.push_back(std::move(value)); return *this; }
125
127
132 inline const Aws::String& GetAllowedFormat() const{ return m_allowedFormat; }
133 inline bool AllowedFormatHasBeenSet() const { return m_allowedFormatHasBeenSet; }
134 inline void SetAllowedFormat(const Aws::String& value) { m_allowedFormatHasBeenSet = true; m_allowedFormat = value; }
135 inline void SetAllowedFormat(Aws::String&& value) { m_allowedFormatHasBeenSet = true; m_allowedFormat = std::move(value); }
136 inline void SetAllowedFormat(const char* value) { m_allowedFormatHasBeenSet = true; m_allowedFormat.assign(value); }
137 inline ActionReviewPayloadField& WithAllowedFormat(const Aws::String& value) { SetAllowedFormat(value); return *this;}
138 inline ActionReviewPayloadField& WithAllowedFormat(Aws::String&& value) { SetAllowedFormat(std::move(value)); return *this;}
139 inline ActionReviewPayloadField& WithAllowedFormat(const char* value) { SetAllowedFormat(value); return *this;}
141
143
147 inline Aws::Utils::DocumentView GetArrayItemJsonSchema() const{ return m_arrayItemJsonSchema; }
148 inline bool ArrayItemJsonSchemaHasBeenSet() const { return m_arrayItemJsonSchemaHasBeenSet; }
149 inline void SetArrayItemJsonSchema(const Aws::Utils::Document& value) { m_arrayItemJsonSchemaHasBeenSet = true; m_arrayItemJsonSchema = value; }
150 inline void SetArrayItemJsonSchema(Aws::Utils::Document&& value) { m_arrayItemJsonSchemaHasBeenSet = true; m_arrayItemJsonSchema = std::move(value); }
154
156
159 inline bool GetRequired() const{ return m_required; }
160 inline bool RequiredHasBeenSet() const { return m_requiredHasBeenSet; }
161 inline void SetRequired(bool value) { m_requiredHasBeenSet = true; m_required = value; }
162 inline ActionReviewPayloadField& WithRequired(bool value) { SetRequired(value); return *this;}
164 private:
165
166 Aws::String m_displayName;
167 bool m_displayNameHasBeenSet = false;
168
169 int m_displayOrder;
170 bool m_displayOrderHasBeenSet = false;
171
172 Aws::String m_displayDescription;
173 bool m_displayDescriptionHasBeenSet = false;
174
176 bool m_typeHasBeenSet = false;
177
178 Aws::Utils::Document m_value;
179 bool m_valueHasBeenSet = false;
180
182 bool m_allowedValuesHasBeenSet = false;
183
184 Aws::String m_allowedFormat;
185 bool m_allowedFormatHasBeenSet = false;
186
187 Aws::Utils::Document m_arrayItemJsonSchema;
188 bool m_arrayItemJsonSchemaHasBeenSet = false;
189
190 bool m_required;
191 bool m_requiredHasBeenSet = false;
192 };
193
194} // namespace Model
195} // namespace QBusiness
196} // namespace Aws
ActionReviewPayloadField & WithArrayItemJsonSchema(const Aws::Utils::Document &value)
ActionReviewPayloadField & WithDisplayDescription(const char *value)
ActionReviewPayloadField & WithRequired(bool value)
ActionReviewPayloadField & WithDisplayName(const char *value)
ActionReviewPayloadField & WithAllowedValues(const Aws::Vector< ActionReviewPayloadFieldAllowedValue > &value)
void SetArrayItemJsonSchema(Aws::Utils::Document &&value)
const Aws::Vector< ActionReviewPayloadFieldAllowedValue > & GetAllowedValues() const
ActionReviewPayloadField & WithArrayItemJsonSchema(Aws::Utils::Document &&value)
ActionReviewPayloadField & WithValue(Aws::Utils::Document &&value)
ActionReviewPayloadField & WithAllowedFormat(Aws::String &&value)
void SetAllowedValues(Aws::Vector< ActionReviewPayloadFieldAllowedValue > &&value)
ActionReviewPayloadField & WithDisplayDescription(const Aws::String &value)
ActionReviewPayloadField & AddAllowedValues(ActionReviewPayloadFieldAllowedValue &&value)
ActionReviewPayloadField & WithDisplayName(const Aws::String &value)
void SetValue(const Aws::Utils::Document &value)
ActionReviewPayloadField & WithDisplayDescription(Aws::String &&value)
ActionReviewPayloadField & WithDisplayOrder(int value)
ActionReviewPayloadField & WithAllowedValues(Aws::Vector< ActionReviewPayloadFieldAllowedValue > &&value)
const ActionPayloadFieldType & GetType() const
ActionReviewPayloadField & WithAllowedFormat(const char *value)
void SetType(const ActionPayloadFieldType &value)
ActionReviewPayloadField & WithDisplayName(Aws::String &&value)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
ActionReviewPayloadField & WithType(const ActionPayloadFieldType &value)
void SetAllowedValues(const Aws::Vector< ActionReviewPayloadFieldAllowedValue > &value)
ActionReviewPayloadField & WithValue(const Aws::Utils::Document &value)
AWS_QBUSINESS_API ActionReviewPayloadField(Aws::Utils::Json::JsonView jsonValue)
ActionReviewPayloadField & WithAllowedFormat(const Aws::String &value)
ActionReviewPayloadField & AddAllowedValues(const ActionReviewPayloadFieldAllowedValue &value)
ActionReviewPayloadField & WithType(ActionPayloadFieldType &&value)
AWS_QBUSINESS_API ActionReviewPayloadField & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetArrayItemJsonSchema(const Aws::Utils::Document &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