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 <aws/core/utils/DateTime.h>
24namespace ConnectWisdomService
51 inline void SetContentArn(
const char* value) { m_contentArnHasBeenSet =
true; m_contentArn.assign(value); }
65 inline void SetContentId(
const char* value) { m_contentIdHasBeenSet =
true; m_contentId.assign(value); }
79 inline void SetContentType(
const char* value) { m_contentTypeHasBeenSet =
true; m_contentType.assign(value); }
93 inline void SetKnowledgeBaseArn(
const char* value) { m_knowledgeBaseArnHasBeenSet =
true; m_knowledgeBaseArn.assign(value); }
108 inline void SetKnowledgeBaseId(
const char* value) { m_knowledgeBaseIdHasBeenSet =
true; m_knowledgeBaseId.assign(value); }
122 inline void SetLinkOutUri(
const char* value) { m_linkOutUriHasBeenSet =
true; m_linkOutUri.assign(value); }
147 inline ContentData&
AddMetadata(
const char* key,
const char* value) { m_metadataHasBeenSet =
true; m_metadata.emplace(key, value);
return *
this; }
158 inline void SetName(
const char* value) { m_nameHasBeenSet =
true; m_name.assign(value); }
172 inline void SetRevisionId(
const char* value) { m_revisionIdHasBeenSet =
true; m_revisionId.assign(value); }
206 inline ContentData&
AddTags(
const char* key,
const char* value) { m_tagsHasBeenSet =
true; m_tags.emplace(key, value);
return *
this; }
217 inline void SetTitle(
const char* value) { m_titleHasBeenSet =
true; m_title.assign(value); }
231 inline void SetUrl(
const char* value) { m_urlHasBeenSet =
true; m_url.assign(value); }
251 bool m_contentArnHasBeenSet =
false;
254 bool m_contentIdHasBeenSet =
false;
257 bool m_contentTypeHasBeenSet =
false;
260 bool m_knowledgeBaseArnHasBeenSet =
false;
263 bool m_knowledgeBaseIdHasBeenSet =
false;
266 bool m_linkOutUriHasBeenSet =
false;
269 bool m_metadataHasBeenSet =
false;
272 bool m_nameHasBeenSet =
false;
275 bool m_revisionIdHasBeenSet =
false;
278 bool m_statusHasBeenSet =
false;
281 bool m_tagsHasBeenSet =
false;
284 bool m_titleHasBeenSet =
false;
287 bool m_urlHasBeenSet =
false;
290 bool m_urlExpiryHasBeenSet =
false;
ContentData & WithContentId(const Aws::String &value)
void SetStatus(const ContentStatus &value)
void SetContentArn(const Aws::String &value)
const Aws::String & GetKnowledgeBaseArn() const
ContentData & AddTags(const char *key, Aws::String &&value)
AWS_CONNECTWISDOMSERVICE_API ContentData()
void SetUrl(Aws::String &&value)
ContentData & WithLinkOutUri(Aws::String &&value)
ContentData & AddMetadata(Aws::String &&key, Aws::String &&value)
void SetKnowledgeBaseArn(const Aws::String &value)
void SetRevisionId(const Aws::String &value)
ContentData & AddTags(Aws::String &&key, Aws::String &&value)
void SetStatus(ContentStatus &&value)
bool KnowledgeBaseArnHasBeenSet() const
void SetKnowledgeBaseId(Aws::String &&value)
ContentData & AddTags(Aws::String &&key, const char *value)
ContentData & WithUrl(const Aws::String &value)
ContentData & WithContentId(const char *value)
ContentData & WithUrlExpiry(Aws::Utils::DateTime &&value)
ContentData & WithUrlExpiry(const Aws::Utils::DateTime &value)
ContentData & WithLinkOutUri(const Aws::String &value)
const Aws::String & GetLinkOutUri() const
void SetRevisionId(Aws::String &&value)
ContentData & AddTags(const Aws::String &key, Aws::String &&value)
ContentData & AddMetadata(Aws::String &&key, const Aws::String &value)
void SetMetadata(Aws::Map< Aws::String, Aws::String > &&value)
void SetLinkOutUri(const Aws::String &value)
AWS_CONNECTWISDOMSERVICE_API ContentData & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetContentType(Aws::String &&value)
ContentData & AddMetadata(Aws::String &&key, const char *value)
const Aws::String & GetKnowledgeBaseId() const
AWS_CONNECTWISDOMSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
bool UrlHasBeenSet() const
ContentData & WithUrl(const char *value)
bool ContentArnHasBeenSet() const
void SetUrl(const Aws::String &value)
ContentData & WithMetadata(const Aws::Map< Aws::String, Aws::String > &value)
void SetRevisionId(const char *value)
void SetTitle(Aws::String &&value)
void SetTitle(const char *value)
void SetKnowledgeBaseId(const char *value)
void SetContentType(const Aws::String &value)
void SetContentId(const Aws::String &value)
void SetName(const Aws::String &value)
AWS_CONNECTWISDOMSERVICE_API ContentData(Aws::Utils::Json::JsonView jsonValue)
void SetLinkOutUri(const char *value)
ContentData & WithStatus(const ContentStatus &value)
ContentData & WithName(Aws::String &&value)
void SetKnowledgeBaseArn(const char *value)
ContentData & WithRevisionId(Aws::String &&value)
ContentData & WithContentArn(const Aws::String &value)
ContentData & WithTitle(const char *value)
ContentData & AddTags(const Aws::String &key, const Aws::String &value)
bool UrlExpiryHasBeenSet() const
ContentData & WithUrl(Aws::String &&value)
bool ContentIdHasBeenSet() const
ContentData & WithKnowledgeBaseId(Aws::String &&value)
bool MetadataHasBeenSet() const
ContentData & WithName(const char *value)
void SetKnowledgeBaseId(const Aws::String &value)
ContentData & WithTitle(Aws::String &&value)
const Aws::String & GetName() const
bool LinkOutUriHasBeenSet() const
ContentData & WithKnowledgeBaseId(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
const Aws::String & GetRevisionId() const
ContentData & WithKnowledgeBaseId(const char *value)
bool KnowledgeBaseIdHasBeenSet() const
ContentData & AddTags(const char *key, const char *value)
ContentData & WithRevisionId(const char *value)
ContentData & WithKnowledgeBaseArn(const Aws::String &value)
void SetContentArn(const char *value)
ContentData & WithContentId(Aws::String &&value)
const Aws::String & GetContentId() const
void SetUrlExpiry(const Aws::Utils::DateTime &value)
void SetContentId(const char *value)
ContentData & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
ContentData & AddMetadata(const char *key, Aws::String &&value)
ContentData & WithStatus(ContentStatus &&value)
bool NameHasBeenSet() const
ContentData & WithContentArn(Aws::String &&value)
ContentData & WithContentType(const char *value)
ContentData & WithKnowledgeBaseArn(const char *value)
bool StatusHasBeenSet() const
bool ContentTypeHasBeenSet() const
const Aws::String & GetContentType() const
const Aws::String & GetTitle() const
void SetUrl(const char *value)
ContentData & AddMetadata(const Aws::String &key, const Aws::String &value)
void SetLinkOutUri(Aws::String &&value)
const Aws::Utils::DateTime & GetUrlExpiry() const
ContentData & AddTags(Aws::String &&key, const Aws::String &value)
const ContentStatus & GetStatus() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
ContentData & WithContentType(Aws::String &&value)
const Aws::String & GetUrl() const
void SetTitle(const Aws::String &value)
void SetMetadata(const Aws::Map< Aws::String, Aws::String > &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
ContentData & AddMetadata(const Aws::String &key, Aws::String &&value)
void SetName(const char *value)
void SetContentArn(Aws::String &&value)
ContentData & WithLinkOutUri(const char *value)
ContentData & WithTitle(const Aws::String &value)
const Aws::String & GetContentArn() const
void SetUrlExpiry(Aws::Utils::DateTime &&value)
void SetContentType(const char *value)
void SetName(Aws::String &&value)
void SetContentId(Aws::String &&value)
ContentData & WithMetadata(Aws::Map< Aws::String, Aws::String > &&value)
ContentData & WithName(const Aws::String &value)
bool TagsHasBeenSet() const
void SetKnowledgeBaseArn(Aws::String &&value)
ContentData & AddMetadata(const char *key, const char *value)
ContentData & WithKnowledgeBaseArn(Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
ContentData & WithRevisionId(const Aws::String &value)
bool RevisionIdHasBeenSet() const
ContentData & WithContentArn(const char *value)
bool TitleHasBeenSet() const
ContentData & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
ContentData & WithContentType(const 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