AWS SDK for C++

AWS SDK for C++ Version 1.11.838

Loading...
Searching...
No Matches
IterableFormItem.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/glue/Glue_EXPORTS.h>
11#include <aws/glue/model/AssetFormEntry.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Glue {
23namespace Model {
24
31 public:
32 AWS_GLUE_API IterableFormItem() = default;
36
38
41 inline const Aws::String& GetItemId() const { return m_itemId; }
42 inline bool ItemIdHasBeenSet() const { return m_itemIdHasBeenSet; }
43 template <typename ItemIdT = Aws::String>
44 void SetItemId(ItemIdT&& value) {
45 m_itemIdHasBeenSet = true;
46 m_itemId = std::forward<ItemIdT>(value);
47 }
48 template <typename ItemIdT = Aws::String>
49 IterableFormItem& WithItemId(ItemIdT&& value) {
50 SetItemId(std::forward<ItemIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetItemName() const { return m_itemName; }
60 inline bool ItemNameHasBeenSet() const { return m_itemNameHasBeenSet; }
61 template <typename ItemNameT = Aws::String>
62 void SetItemName(ItemNameT&& value) {
63 m_itemNameHasBeenSet = true;
64 m_itemName = std::forward<ItemNameT>(value);
65 }
66 template <typename ItemNameT = Aws::String>
67 IterableFormItem& WithItemName(ItemNameT&& value) {
68 SetItemName(std::forward<ItemNameT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Vector<Aws::String>& GetGlossaryTerms() const { return m_glossaryTerms; }
78 inline bool GlossaryTermsHasBeenSet() const { return m_glossaryTermsHasBeenSet; }
79 template <typename GlossaryTermsT = Aws::Vector<Aws::String>>
80 void SetGlossaryTerms(GlossaryTermsT&& value) {
81 m_glossaryTermsHasBeenSet = true;
82 m_glossaryTerms = std::forward<GlossaryTermsT>(value);
83 }
84 template <typename GlossaryTermsT = Aws::Vector<Aws::String>>
85 IterableFormItem& WithGlossaryTerms(GlossaryTermsT&& value) {
86 SetGlossaryTerms(std::forward<GlossaryTermsT>(value));
87 return *this;
88 }
89 template <typename GlossaryTermsT = Aws::String>
90 IterableFormItem& AddGlossaryTerms(GlossaryTermsT&& value) {
91 m_glossaryTermsHasBeenSet = true;
92 m_glossaryTerms.emplace_back(std::forward<GlossaryTermsT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::Map<Aws::String, AssetFormEntry>& GetForms() const { return m_forms; }
102 inline bool FormsHasBeenSet() const { return m_formsHasBeenSet; }
103 template <typename FormsT = Aws::Map<Aws::String, AssetFormEntry>>
104 void SetForms(FormsT&& value) {
105 m_formsHasBeenSet = true;
106 m_forms = std::forward<FormsT>(value);
107 }
108 template <typename FormsT = Aws::Map<Aws::String, AssetFormEntry>>
109 IterableFormItem& WithForms(FormsT&& value) {
110 SetForms(std::forward<FormsT>(value));
111 return *this;
112 }
113 template <typename FormsKeyT = Aws::String, typename FormsValueT = AssetFormEntry>
114 IterableFormItem& AddForms(FormsKeyT&& key, FormsValueT&& value) {
115 m_formsHasBeenSet = true;
116 m_forms.emplace(std::forward<FormsKeyT>(key), std::forward<FormsValueT>(value));
117 return *this;
118 }
120
122
126 inline const Aws::Map<Aws::String, AssetFormEntry>& GetAttachments() const { return m_attachments; }
127 inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; }
128 template <typename AttachmentsT = Aws::Map<Aws::String, AssetFormEntry>>
129 void SetAttachments(AttachmentsT&& value) {
130 m_attachmentsHasBeenSet = true;
131 m_attachments = std::forward<AttachmentsT>(value);
132 }
133 template <typename AttachmentsT = Aws::Map<Aws::String, AssetFormEntry>>
134 IterableFormItem& WithAttachments(AttachmentsT&& value) {
135 SetAttachments(std::forward<AttachmentsT>(value));
136 return *this;
137 }
138 template <typename AttachmentsKeyT = Aws::String, typename AttachmentsValueT = AssetFormEntry>
139 IterableFormItem& AddAttachments(AttachmentsKeyT&& key, AttachmentsValueT&& value) {
140 m_attachmentsHasBeenSet = true;
141 m_attachments.emplace(std::forward<AttachmentsKeyT>(key), std::forward<AttachmentsValueT>(value));
142 return *this;
143 }
145 private:
146 Aws::String m_itemId;
147
148 Aws::String m_itemName;
149
150 Aws::Vector<Aws::String> m_glossaryTerms;
151
153
155 bool m_itemIdHasBeenSet = false;
156 bool m_itemNameHasBeenSet = false;
157 bool m_glossaryTermsHasBeenSet = false;
158 bool m_formsHasBeenSet = false;
159 bool m_attachmentsHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace Glue
164} // namespace Aws
IterableFormItem & WithGlossaryTerms(GlossaryTermsT &&value)
AWS_GLUE_API IterableFormItem & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API IterableFormItem()=default
IterableFormItem & AddAttachments(AttachmentsKeyT &&key, AttachmentsValueT &&value)
void SetItemName(ItemNameT &&value)
void SetGlossaryTerms(GlossaryTermsT &&value)
const Aws::Map< Aws::String, AssetFormEntry > & GetAttachments() const
IterableFormItem & WithItemId(ItemIdT &&value)
IterableFormItem & WithItemName(ItemNameT &&value)
const Aws::String & GetItemName() const
const Aws::Map< Aws::String, AssetFormEntry > & GetForms() const
AWS_GLUE_API IterableFormItem(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetItemId() const
const Aws::Vector< Aws::String > & GetGlossaryTerms() const
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
IterableFormItem & AddGlossaryTerms(GlossaryTermsT &&value)
IterableFormItem & AddForms(FormsKeyT &&key, FormsValueT &&value)
IterableFormItem & WithForms(FormsT &&value)
IterableFormItem & WithAttachments(AttachmentsT &&value)
void SetAttachments(AttachmentsT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue