AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
ContentAssociationSummary.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/qconnect/QConnect_EXPORTS.h>
10#include <aws/qconnect/model/ContentAssociationContents.h>
11#include <aws/qconnect/model/ContentAssociationType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace QConnect {
23namespace Model {
24
32 public:
33 AWS_QCONNECT_API ContentAssociationSummary() = default;
36 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
43 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
44 template <typename KnowledgeBaseIdT = Aws::String>
45 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) {
46 m_knowledgeBaseIdHasBeenSet = true;
47 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
48 }
49 template <typename KnowledgeBaseIdT = Aws::String>
51 SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetKnowledgeBaseArn() const { return m_knowledgeBaseArn; }
61 inline bool KnowledgeBaseArnHasBeenSet() const { return m_knowledgeBaseArnHasBeenSet; }
62 template <typename KnowledgeBaseArnT = Aws::String>
63 void SetKnowledgeBaseArn(KnowledgeBaseArnT&& value) {
64 m_knowledgeBaseArnHasBeenSet = true;
65 m_knowledgeBaseArn = std::forward<KnowledgeBaseArnT>(value);
66 }
67 template <typename KnowledgeBaseArnT = Aws::String>
68 ContentAssociationSummary& WithKnowledgeBaseArn(KnowledgeBaseArnT&& value) {
69 SetKnowledgeBaseArn(std::forward<KnowledgeBaseArnT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetContentId() const { return m_contentId; }
79 inline bool ContentIdHasBeenSet() const { return m_contentIdHasBeenSet; }
80 template <typename ContentIdT = Aws::String>
81 void SetContentId(ContentIdT&& value) {
82 m_contentIdHasBeenSet = true;
83 m_contentId = std::forward<ContentIdT>(value);
84 }
85 template <typename ContentIdT = Aws::String>
87 SetContentId(std::forward<ContentIdT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetContentArn() const { return m_contentArn; }
97 inline bool ContentArnHasBeenSet() const { return m_contentArnHasBeenSet; }
98 template <typename ContentArnT = Aws::String>
99 void SetContentArn(ContentArnT&& value) {
100 m_contentArnHasBeenSet = true;
101 m_contentArn = std::forward<ContentArnT>(value);
102 }
103 template <typename ContentArnT = Aws::String>
105 SetContentArn(std::forward<ContentArnT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::String& GetContentAssociationId() const { return m_contentAssociationId; }
116 inline bool ContentAssociationIdHasBeenSet() const { return m_contentAssociationIdHasBeenSet; }
117 template <typename ContentAssociationIdT = Aws::String>
118 void SetContentAssociationId(ContentAssociationIdT&& value) {
119 m_contentAssociationIdHasBeenSet = true;
120 m_contentAssociationId = std::forward<ContentAssociationIdT>(value);
121 }
122 template <typename ContentAssociationIdT = Aws::String>
123 ContentAssociationSummary& WithContentAssociationId(ContentAssociationIdT&& value) {
124 SetContentAssociationId(std::forward<ContentAssociationIdT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::String& GetContentAssociationArn() const { return m_contentAssociationArn; }
134 inline bool ContentAssociationArnHasBeenSet() const { return m_contentAssociationArnHasBeenSet; }
135 template <typename ContentAssociationArnT = Aws::String>
136 void SetContentAssociationArn(ContentAssociationArnT&& value) {
137 m_contentAssociationArnHasBeenSet = true;
138 m_contentAssociationArn = std::forward<ContentAssociationArnT>(value);
139 }
140 template <typename ContentAssociationArnT = Aws::String>
141 ContentAssociationSummary& WithContentAssociationArn(ContentAssociationArnT&& value) {
142 SetContentAssociationArn(std::forward<ContentAssociationArnT>(value));
143 return *this;
144 }
146
148
151 inline ContentAssociationType GetAssociationType() const { return m_associationType; }
152 inline bool AssociationTypeHasBeenSet() const { return m_associationTypeHasBeenSet; }
154 m_associationTypeHasBeenSet = true;
155 m_associationType = value;
156 }
158 SetAssociationType(value);
159 return *this;
160 }
162
164
167 inline const ContentAssociationContents& GetAssociationData() const { return m_associationData; }
168 inline bool AssociationDataHasBeenSet() const { return m_associationDataHasBeenSet; }
169 template <typename AssociationDataT = ContentAssociationContents>
170 void SetAssociationData(AssociationDataT&& value) {
171 m_associationDataHasBeenSet = true;
172 m_associationData = std::forward<AssociationDataT>(value);
173 }
174 template <typename AssociationDataT = ContentAssociationContents>
176 SetAssociationData(std::forward<AssociationDataT>(value));
177 return *this;
178 }
180
182
185 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
186 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
187 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
188 void SetTags(TagsT&& value) {
189 m_tagsHasBeenSet = true;
190 m_tags = std::forward<TagsT>(value);
191 }
192 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
194 SetTags(std::forward<TagsT>(value));
195 return *this;
196 }
197 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
198 ContentAssociationSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
199 m_tagsHasBeenSet = true;
200 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
201 return *this;
202 }
204 private:
205 Aws::String m_knowledgeBaseId;
206
207 Aws::String m_knowledgeBaseArn;
208
209 Aws::String m_contentId;
210
211 Aws::String m_contentArn;
212
213 Aws::String m_contentAssociationId;
214
215 Aws::String m_contentAssociationArn;
216
218
219 ContentAssociationContents m_associationData;
220
222 bool m_knowledgeBaseIdHasBeenSet = false;
223 bool m_knowledgeBaseArnHasBeenSet = false;
224 bool m_contentIdHasBeenSet = false;
225 bool m_contentArnHasBeenSet = false;
226 bool m_contentAssociationIdHasBeenSet = false;
227 bool m_contentAssociationArnHasBeenSet = false;
228 bool m_associationTypeHasBeenSet = false;
229 bool m_associationDataHasBeenSet = false;
230 bool m_tagsHasBeenSet = false;
231};
232
233} // namespace Model
234} // namespace QConnect
235} // namespace Aws
ContentAssociationSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_QCONNECT_API ContentAssociationSummary()=default
void SetContentAssociationArn(ContentAssociationArnT &&value)
const ContentAssociationContents & GetAssociationData() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
ContentAssociationSummary & WithContentAssociationId(ContentAssociationIdT &&value)
ContentAssociationSummary & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
ContentAssociationSummary & WithTags(TagsT &&value)
void SetContentAssociationId(ContentAssociationIdT &&value)
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
ContentAssociationSummary & WithAssociationType(ContentAssociationType value)
ContentAssociationSummary & WithKnowledgeBaseArn(KnowledgeBaseArnT &&value)
ContentAssociationSummary & WithContentArn(ContentArnT &&value)
ContentAssociationSummary & WithAssociationData(AssociationDataT &&value)
AWS_QCONNECT_API ContentAssociationSummary(Aws::Utils::Json::JsonView jsonValue)
ContentAssociationSummary & WithContentAssociationArn(ContentAssociationArnT &&value)
AWS_QCONNECT_API ContentAssociationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ContentAssociationSummary & WithContentId(ContentIdT &&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
Aws::Utils::Json::JsonValue JsonValue