AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
ContentAssociationData.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
31 public:
32 AWS_QCONNECT_API ContentAssociationData() = default;
35 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
42 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
43 template <typename KnowledgeBaseIdT = Aws::String>
44 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) {
45 m_knowledgeBaseIdHasBeenSet = true;
46 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
47 }
48 template <typename KnowledgeBaseIdT = Aws::String>
49 ContentAssociationData& WithKnowledgeBaseId(KnowledgeBaseIdT&& value) {
50 SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetKnowledgeBaseArn() const { return m_knowledgeBaseArn; }
60 inline bool KnowledgeBaseArnHasBeenSet() const { return m_knowledgeBaseArnHasBeenSet; }
61 template <typename KnowledgeBaseArnT = Aws::String>
62 void SetKnowledgeBaseArn(KnowledgeBaseArnT&& value) {
63 m_knowledgeBaseArnHasBeenSet = true;
64 m_knowledgeBaseArn = std::forward<KnowledgeBaseArnT>(value);
65 }
66 template <typename KnowledgeBaseArnT = Aws::String>
67 ContentAssociationData& WithKnowledgeBaseArn(KnowledgeBaseArnT&& value) {
68 SetKnowledgeBaseArn(std::forward<KnowledgeBaseArnT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetContentId() const { return m_contentId; }
78 inline bool ContentIdHasBeenSet() const { return m_contentIdHasBeenSet; }
79 template <typename ContentIdT = Aws::String>
80 void SetContentId(ContentIdT&& value) {
81 m_contentIdHasBeenSet = true;
82 m_contentId = std::forward<ContentIdT>(value);
83 }
84 template <typename ContentIdT = Aws::String>
86 SetContentId(std::forward<ContentIdT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetContentArn() const { return m_contentArn; }
96 inline bool ContentArnHasBeenSet() const { return m_contentArnHasBeenSet; }
97 template <typename ContentArnT = Aws::String>
98 void SetContentArn(ContentArnT&& value) {
99 m_contentArnHasBeenSet = true;
100 m_contentArn = std::forward<ContentArnT>(value);
101 }
102 template <typename ContentArnT = Aws::String>
104 SetContentArn(std::forward<ContentArnT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::String& GetContentAssociationId() const { return m_contentAssociationId; }
115 inline bool ContentAssociationIdHasBeenSet() const { return m_contentAssociationIdHasBeenSet; }
116 template <typename ContentAssociationIdT = Aws::String>
117 void SetContentAssociationId(ContentAssociationIdT&& value) {
118 m_contentAssociationIdHasBeenSet = true;
119 m_contentAssociationId = std::forward<ContentAssociationIdT>(value);
120 }
121 template <typename ContentAssociationIdT = Aws::String>
122 ContentAssociationData& WithContentAssociationId(ContentAssociationIdT&& value) {
123 SetContentAssociationId(std::forward<ContentAssociationIdT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::String& GetContentAssociationArn() const { return m_contentAssociationArn; }
133 inline bool ContentAssociationArnHasBeenSet() const { return m_contentAssociationArnHasBeenSet; }
134 template <typename ContentAssociationArnT = Aws::String>
135 void SetContentAssociationArn(ContentAssociationArnT&& value) {
136 m_contentAssociationArnHasBeenSet = true;
137 m_contentAssociationArn = std::forward<ContentAssociationArnT>(value);
138 }
139 template <typename ContentAssociationArnT = Aws::String>
140 ContentAssociationData& WithContentAssociationArn(ContentAssociationArnT&& value) {
141 SetContentAssociationArn(std::forward<ContentAssociationArnT>(value));
142 return *this;
143 }
145
147
150 inline ContentAssociationType GetAssociationType() const { return m_associationType; }
151 inline bool AssociationTypeHasBeenSet() const { return m_associationTypeHasBeenSet; }
153 m_associationTypeHasBeenSet = true;
154 m_associationType = value;
155 }
157 SetAssociationType(value);
158 return *this;
159 }
161
163
166 inline const ContentAssociationContents& GetAssociationData() const { return m_associationData; }
167 inline bool AssociationDataHasBeenSet() const { return m_associationDataHasBeenSet; }
168 template <typename AssociationDataT = ContentAssociationContents>
169 void SetAssociationData(AssociationDataT&& value) {
170 m_associationDataHasBeenSet = true;
171 m_associationData = std::forward<AssociationDataT>(value);
172 }
173 template <typename AssociationDataT = ContentAssociationContents>
174 ContentAssociationData& WithAssociationData(AssociationDataT&& value) {
175 SetAssociationData(std::forward<AssociationDataT>(value));
176 return *this;
177 }
179
181
184 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
185 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
186 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
187 void SetTags(TagsT&& value) {
188 m_tagsHasBeenSet = true;
189 m_tags = std::forward<TagsT>(value);
190 }
191 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
193 SetTags(std::forward<TagsT>(value));
194 return *this;
195 }
196 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
197 ContentAssociationData& AddTags(TagsKeyT&& key, TagsValueT&& value) {
198 m_tagsHasBeenSet = true;
199 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
200 return *this;
201 }
203 private:
204 Aws::String m_knowledgeBaseId;
205
206 Aws::String m_knowledgeBaseArn;
207
208 Aws::String m_contentId;
209
210 Aws::String m_contentArn;
211
212 Aws::String m_contentAssociationId;
213
214 Aws::String m_contentAssociationArn;
215
217
218 ContentAssociationContents m_associationData;
219
221 bool m_knowledgeBaseIdHasBeenSet = false;
222 bool m_knowledgeBaseArnHasBeenSet = false;
223 bool m_contentIdHasBeenSet = false;
224 bool m_contentArnHasBeenSet = false;
225 bool m_contentAssociationIdHasBeenSet = false;
226 bool m_contentAssociationArnHasBeenSet = false;
227 bool m_associationTypeHasBeenSet = false;
228 bool m_associationDataHasBeenSet = false;
229 bool m_tagsHasBeenSet = false;
230};
231
232} // namespace Model
233} // namespace QConnect
234} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_QCONNECT_API ContentAssociationData()=default
void SetContentAssociationArn(ContentAssociationArnT &&value)
ContentAssociationData & WithContentId(ContentIdT &&value)
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAssociationType(ContentAssociationType value)
ContentAssociationData & WithContentArn(ContentArnT &&value)
ContentAssociationData & WithKnowledgeBaseArn(KnowledgeBaseArnT &&value)
ContentAssociationData & WithContentAssociationId(ContentAssociationIdT &&value)
ContentAssociationData & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
ContentAssociationData & WithContentAssociationArn(ContentAssociationArnT &&value)
AWS_QCONNECT_API ContentAssociationData & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QCONNECT_API ContentAssociationData(Aws::Utils::Json::JsonView jsonValue)
ContentAssociationData & WithAssociationData(AssociationDataT &&value)
const ContentAssociationContents & GetAssociationData() const
void SetContentAssociationId(ContentAssociationIdT &&value)
void SetKnowledgeBaseArn(KnowledgeBaseArnT &&value)
ContentAssociationData & WithAssociationType(ContentAssociationType value)
ContentAssociationData & WithTags(TagsT &&value)
ContentAssociationData & AddTags(TagsKeyT &&key, TagsValueT &&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