AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ContentSummary.h
1
6#pragma once
7#include <aws/wisdom/ConnectWisdomService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/wisdom/model/ContentStatus.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ConnectWisdomService
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_CONNECTWISDOMSERVICE_API ContentSummary();
37 AWS_CONNECTWISDOMSERVICE_API ContentSummary(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CONNECTWISDOMSERVICE_API ContentSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CONNECTWISDOMSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetContentArn() const{ return m_contentArn; }
47 inline bool ContentArnHasBeenSet() const { return m_contentArnHasBeenSet; }
48 inline void SetContentArn(const Aws::String& value) { m_contentArnHasBeenSet = true; m_contentArn = value; }
49 inline void SetContentArn(Aws::String&& value) { m_contentArnHasBeenSet = true; m_contentArn = std::move(value); }
50 inline void SetContentArn(const char* value) { m_contentArnHasBeenSet = true; m_contentArn.assign(value); }
51 inline ContentSummary& WithContentArn(const Aws::String& value) { SetContentArn(value); return *this;}
52 inline ContentSummary& WithContentArn(Aws::String&& value) { SetContentArn(std::move(value)); return *this;}
53 inline ContentSummary& WithContentArn(const char* value) { SetContentArn(value); return *this;}
55
57
60 inline const Aws::String& GetContentId() const{ return m_contentId; }
61 inline bool ContentIdHasBeenSet() const { return m_contentIdHasBeenSet; }
62 inline void SetContentId(const Aws::String& value) { m_contentIdHasBeenSet = true; m_contentId = value; }
63 inline void SetContentId(Aws::String&& value) { m_contentIdHasBeenSet = true; m_contentId = std::move(value); }
64 inline void SetContentId(const char* value) { m_contentIdHasBeenSet = true; m_contentId.assign(value); }
65 inline ContentSummary& WithContentId(const Aws::String& value) { SetContentId(value); return *this;}
66 inline ContentSummary& WithContentId(Aws::String&& value) { SetContentId(std::move(value)); return *this;}
67 inline ContentSummary& WithContentId(const char* value) { SetContentId(value); return *this;}
69
71
74 inline const Aws::String& GetContentType() const{ return m_contentType; }
75 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
76 inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
77 inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); }
78 inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); }
79 inline ContentSummary& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
80 inline ContentSummary& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
81 inline ContentSummary& WithContentType(const char* value) { SetContentType(value); return *this;}
83
85
88 inline const Aws::String& GetKnowledgeBaseArn() const{ return m_knowledgeBaseArn; }
89 inline bool KnowledgeBaseArnHasBeenSet() const { return m_knowledgeBaseArnHasBeenSet; }
90 inline void SetKnowledgeBaseArn(const Aws::String& value) { m_knowledgeBaseArnHasBeenSet = true; m_knowledgeBaseArn = value; }
91 inline void SetKnowledgeBaseArn(Aws::String&& value) { m_knowledgeBaseArnHasBeenSet = true; m_knowledgeBaseArn = std::move(value); }
92 inline void SetKnowledgeBaseArn(const char* value) { m_knowledgeBaseArnHasBeenSet = true; m_knowledgeBaseArn.assign(value); }
93 inline ContentSummary& WithKnowledgeBaseArn(const Aws::String& value) { SetKnowledgeBaseArn(value); return *this;}
94 inline ContentSummary& WithKnowledgeBaseArn(Aws::String&& value) { SetKnowledgeBaseArn(std::move(value)); return *this;}
95 inline ContentSummary& WithKnowledgeBaseArn(const char* value) { SetKnowledgeBaseArn(value); return *this;}
97
99
103 inline const Aws::String& GetKnowledgeBaseId() const{ return m_knowledgeBaseId; }
104 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
105 inline void SetKnowledgeBaseId(const Aws::String& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = value; }
106 inline void SetKnowledgeBaseId(Aws::String&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::move(value); }
107 inline void SetKnowledgeBaseId(const char* value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId.assign(value); }
108 inline ContentSummary& WithKnowledgeBaseId(const Aws::String& value) { SetKnowledgeBaseId(value); return *this;}
109 inline ContentSummary& WithKnowledgeBaseId(Aws::String&& value) { SetKnowledgeBaseId(std::move(value)); return *this;}
110 inline ContentSummary& WithKnowledgeBaseId(const char* value) { SetKnowledgeBaseId(value); return *this;}
112
114
120 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const{ return m_metadata; }
121 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
122 inline void SetMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_metadataHasBeenSet = true; m_metadata = value; }
123 inline void SetMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); }
124 inline ContentSummary& WithMetadata(const Aws::Map<Aws::String, Aws::String>& value) { SetMetadata(value); return *this;}
125 inline ContentSummary& WithMetadata(Aws::Map<Aws::String, Aws::String>&& value) { SetMetadata(std::move(value)); return *this;}
126 inline ContentSummary& AddMetadata(const Aws::String& key, const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; }
127 inline ContentSummary& AddMetadata(Aws::String&& key, const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; }
128 inline ContentSummary& AddMetadata(const Aws::String& key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; }
129 inline ContentSummary& AddMetadata(Aws::String&& key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), std::move(value)); return *this; }
130 inline ContentSummary& AddMetadata(const char* key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; }
131 inline ContentSummary& AddMetadata(Aws::String&& key, const char* value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; }
132 inline ContentSummary& AddMetadata(const char* key, const char* value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; }
134
136
139 inline const Aws::String& GetName() const{ return m_name; }
140 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
141 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
142 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
143 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
144 inline ContentSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
145 inline ContentSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
146 inline ContentSummary& WithName(const char* value) { SetName(value); return *this;}
148
150
153 inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
154 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
155 inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
156 inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
157 inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
158 inline ContentSummary& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
159 inline ContentSummary& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
160 inline ContentSummary& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
162
164
167 inline const ContentStatus& GetStatus() const{ return m_status; }
168 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
169 inline void SetStatus(const ContentStatus& value) { m_statusHasBeenSet = true; m_status = value; }
170 inline void SetStatus(ContentStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
171 inline ContentSummary& WithStatus(const ContentStatus& value) { SetStatus(value); return *this;}
172 inline ContentSummary& WithStatus(ContentStatus&& value) { SetStatus(std::move(value)); return *this;}
174
176
179 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
180 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
181 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
182 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
183 inline ContentSummary& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
184 inline ContentSummary& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
185 inline ContentSummary& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
186 inline ContentSummary& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
187 inline ContentSummary& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
188 inline ContentSummary& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
189 inline ContentSummary& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
190 inline ContentSummary& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
191 inline ContentSummary& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
193
195
198 inline const Aws::String& GetTitle() const{ return m_title; }
199 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
200 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
201 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
202 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
203 inline ContentSummary& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
204 inline ContentSummary& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
205 inline ContentSummary& WithTitle(const char* value) { SetTitle(value); return *this;}
207 private:
208
209 Aws::String m_contentArn;
210 bool m_contentArnHasBeenSet = false;
211
212 Aws::String m_contentId;
213 bool m_contentIdHasBeenSet = false;
214
215 Aws::String m_contentType;
216 bool m_contentTypeHasBeenSet = false;
217
218 Aws::String m_knowledgeBaseArn;
219 bool m_knowledgeBaseArnHasBeenSet = false;
220
221 Aws::String m_knowledgeBaseId;
222 bool m_knowledgeBaseIdHasBeenSet = false;
223
225 bool m_metadataHasBeenSet = false;
226
227 Aws::String m_name;
228 bool m_nameHasBeenSet = false;
229
230 Aws::String m_revisionId;
231 bool m_revisionIdHasBeenSet = false;
232
233 ContentStatus m_status;
234 bool m_statusHasBeenSet = false;
235
237 bool m_tagsHasBeenSet = false;
238
239 Aws::String m_title;
240 bool m_titleHasBeenSet = false;
241 };
242
243} // namespace Model
244} // namespace ConnectWisdomService
245} // namespace Aws
ContentSummary & AddTags(const char *key, const char *value)
void SetKnowledgeBaseArn(const Aws::String &value)
ContentSummary & WithContentType(Aws::String &&value)
ContentSummary & WithRevisionId(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
ContentSummary & AddMetadata(const Aws::String &key, const Aws::String &value)
ContentSummary & WithName(const Aws::String &value)
AWS_CONNECTWISDOMSERVICE_API ContentSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ContentSummary & AddMetadata(Aws::String &&key, const Aws::String &value)
ContentSummary & AddMetadata(Aws::String &&key, Aws::String &&value)
ContentSummary & WithTitle(const Aws::String &value)
AWS_CONNECTWISDOMSERVICE_API ContentSummary()
ContentSummary & WithContentId(Aws::String &&value)
ContentSummary & AddTags(Aws::String &&key, const char *value)
ContentSummary & AddTags(const Aws::String &key, const Aws::String &value)
ContentSummary & WithKnowledgeBaseId(const char *value)
ContentSummary & WithContentArn(Aws::String &&value)
void SetMetadata(const Aws::Map< Aws::String, Aws::String > &value)
ContentSummary & WithRevisionId(Aws::String &&value)
void SetMetadata(Aws::Map< Aws::String, Aws::String > &&value)
void SetKnowledgeBaseId(const Aws::String &value)
ContentSummary & WithContentArn(const Aws::String &value)
ContentSummary & WithStatus(ContentStatus &&value)
ContentSummary & WithContentType(const char *value)
ContentSummary & WithKnowledgeBaseArn(const Aws::String &value)
AWS_CONNECTWISDOMSERVICE_API ContentSummary(Aws::Utils::Json::JsonView jsonValue)
ContentSummary & WithKnowledgeBaseId(const Aws::String &value)
ContentSummary & AddMetadata(const char *key, const char *value)
ContentSummary & WithKnowledgeBaseArn(Aws::String &&value)
ContentSummary & WithTitle(const char *value)
ContentSummary & AddTags(Aws::String &&key, Aws::String &&value)
ContentSummary & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
ContentSummary & WithName(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
void SetContentArn(const Aws::String &value)
ContentSummary & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
ContentSummary & WithContentId(const char *value)
ContentSummary & WithContentArn(const char *value)
void SetStatus(const ContentStatus &value)
void SetContentType(const Aws::String &value)
ContentSummary & AddTags(Aws::String &&key, const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
ContentSummary & WithKnowledgeBaseId(Aws::String &&value)
ContentSummary & AddMetadata(const Aws::String &key, Aws::String &&value)
ContentSummary & AddTags(const Aws::String &key, Aws::String &&value)
ContentSummary & AddMetadata(const char *key, Aws::String &&value)
ContentSummary & WithStatus(const ContentStatus &value)
ContentSummary & WithKnowledgeBaseArn(const char *value)
ContentSummary & WithRevisionId(const Aws::String &value)
void SetContentId(const Aws::String &value)
AWS_CONNECTWISDOMSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ContentSummary & WithMetadata(const Aws::Map< Aws::String, Aws::String > &value)
ContentSummary & AddMetadata(Aws::String &&key, const char *value)
ContentSummary & WithTitle(Aws::String &&value)
ContentSummary & WithName(Aws::String &&value)
ContentSummary & WithContentId(const Aws::String &value)
ContentSummary & AddTags(const char *key, Aws::String &&value)
ContentSummary & WithContentType(const Aws::String &value)
ContentSummary & WithMetadata(Aws::Map< Aws::String, Aws::String > &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&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