7#include <aws/qconnect/QConnect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/qconnect/model/ContentStatus.h>
11#include <aws/core/utils/DateTime.h>
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); }
107 inline void SetKnowledgeBaseId(
const char* value) { m_knowledgeBaseIdHasBeenSet =
true; m_knowledgeBaseId.assign(value); }
121 inline void SetLinkOutUri(
const char* value) { m_linkOutUriHasBeenSet =
true; m_linkOutUri.assign(value); }
146 inline ContentData&
AddMetadata(
const char* key,
const char* value) { m_metadataHasBeenSet =
true; m_metadata.emplace(key, value);
return *
this; }
157 inline void SetName(
const char* value) { m_nameHasBeenSet =
true; m_name.assign(value); }
171 inline void SetRevisionId(
const char* value) { m_revisionIdHasBeenSet =
true; m_revisionId.assign(value); }
205 inline ContentData&
AddTags(
const char* key,
const char* value) { m_tagsHasBeenSet =
true; m_tags.emplace(key, value);
return *
this; }
216 inline void SetTitle(
const char* value) { m_titleHasBeenSet =
true; m_title.assign(value); }
230 inline void SetUrl(
const char* value) { m_urlHasBeenSet =
true; m_url.assign(value); }
250 bool m_contentArnHasBeenSet =
false;
253 bool m_contentIdHasBeenSet =
false;
256 bool m_contentTypeHasBeenSet =
false;
259 bool m_knowledgeBaseArnHasBeenSet =
false;
262 bool m_knowledgeBaseIdHasBeenSet =
false;
265 bool m_linkOutUriHasBeenSet =
false;
268 bool m_metadataHasBeenSet =
false;
271 bool m_nameHasBeenSet =
false;
274 bool m_revisionIdHasBeenSet =
false;
277 bool m_statusHasBeenSet =
false;
280 bool m_tagsHasBeenSet =
false;
283 bool m_titleHasBeenSet =
false;
286 bool m_urlHasBeenSet =
false;
289 bool m_urlExpiryHasBeenSet =
false;
ContentData & WithTitle(Aws::String &&value)
void SetUrl(const Aws::String &value)
const ContentStatus & GetStatus() const
ContentData & WithUrl(Aws::String &&value)
ContentData & AddMetadata(const char *key, const char *value)
bool ContentIdHasBeenSet() const
AWS_QCONNECT_API ContentData()
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetKnowledgeBaseArn(const Aws::String &value)
const Aws::Utils::DateTime & GetUrlExpiry() const
void SetContentType(Aws::String &&value)
void SetContentArn(Aws::String &&value)
ContentData & WithTitle(const char *value)
void SetUrl(Aws::String &&value)
ContentData & WithStatus(const ContentStatus &value)
const Aws::String & GetKnowledgeBaseId() const
void SetContentId(const char *value)
ContentData & WithName(Aws::String &&value)
ContentData & WithLinkOutUri(const Aws::String &value)
bool ContentArnHasBeenSet() const
ContentData & WithContentArn(const Aws::String &value)
void SetMetadata(Aws::Map< Aws::String, Aws::String > &&value)
bool UrlExpiryHasBeenSet() const
bool RevisionIdHasBeenSet() const
ContentData & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::String & GetRevisionId() const
bool TitleHasBeenSet() const
bool NameHasBeenSet() const
void SetTitle(Aws::String &&value)
void SetStatus(ContentStatus &&value)
ContentData & WithUrlExpiry(Aws::Utils::DateTime &&value)
ContentData & WithUrl(const char *value)
ContentData & WithKnowledgeBaseId(Aws::String &&value)
ContentData & WithRevisionId(const char *value)
ContentData & WithContentId(const Aws::String &value)
ContentData & WithStatus(ContentStatus &&value)
ContentData & AddMetadata(const Aws::String &key, const Aws::String &value)
void SetKnowledgeBaseId(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
ContentData & WithContentArn(const char *value)
ContentData & WithContentId(const char *value)
void SetContentType(const char *value)
ContentData & WithContentId(Aws::String &&value)
AWS_QCONNECT_API ContentData & operator=(Aws::Utils::Json::JsonView jsonValue)
bool KnowledgeBaseIdHasBeenSet() const
bool UrlHasBeenSet() const
const Aws::String & GetLinkOutUri() const
ContentData & WithRevisionId(Aws::String &&value)
void SetStatus(const ContentStatus &value)
const Aws::String & GetKnowledgeBaseArn() const
void SetKnowledgeBaseId(Aws::String &&value)
ContentData & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetLinkOutUri(const char *value)
ContentData & WithMetadata(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::String & GetTitle() const
ContentData & WithKnowledgeBaseArn(const Aws::String &value)
void SetLinkOutUri(Aws::String &&value)
ContentData & WithLinkOutUri(Aws::String &&value)
bool TagsHasBeenSet() const
bool LinkOutUriHasBeenSet() const
void SetKnowledgeBaseArn(Aws::String &&value)
ContentData & WithKnowledgeBaseId(const Aws::String &value)
ContentData & WithRevisionId(const Aws::String &value)
const Aws::String & GetName() const
ContentData & AddMetadata(const char *key, Aws::String &&value)
AWS_QCONNECT_API ContentData(Aws::Utils::Json::JsonView jsonValue)
ContentData & WithKnowledgeBaseArn(Aws::String &&value)
ContentData & WithUrlExpiry(const Aws::Utils::DateTime &value)
void SetContentArn(const Aws::String &value)
ContentData & WithTitle(const Aws::String &value)
void SetName(const Aws::String &value)
ContentData & WithLinkOutUri(const char *value)
ContentData & AddTags(Aws::String &&key, const Aws::String &value)
ContentData & WithContentType(const Aws::String &value)
void SetContentId(const Aws::String &value)
ContentData & WithContentType(const char *value)
void SetName(Aws::String &&value)
void SetKnowledgeBaseArn(const char *value)
void SetTitle(const char *value)
ContentData & AddTags(const Aws::String &key, const Aws::String &value)
ContentData & AddTags(const char *key, const char *value)
void SetKnowledgeBaseId(const Aws::String &value)
bool ContentTypeHasBeenSet() const
bool StatusHasBeenSet() const
void SetRevisionId(const char *value)
void SetRevisionId(const Aws::String &value)
void SetContentArn(const char *value)
ContentData & WithName(const Aws::String &value)
ContentData & WithContentType(Aws::String &&value)
const Aws::String & GetContentId() const
void SetUrlExpiry(const Aws::Utils::DateTime &value)
const Aws::String & GetContentArn() const
void SetUrl(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
ContentData & AddMetadata(Aws::String &&key, Aws::String &&value)
ContentData & AddTags(Aws::String &&key, const char *value)
const Aws::String & GetUrl() const
ContentData & AddTags(const Aws::String &key, Aws::String &&value)
void SetTitle(const Aws::String &value)
void SetName(const char *value)
void SetRevisionId(Aws::String &&value)
bool MetadataHasBeenSet() const
ContentData & AddMetadata(Aws::String &&key, const Aws::String &value)
void SetMetadata(const Aws::Map< Aws::String, Aws::String > &value)
void SetUrlExpiry(Aws::Utils::DateTime &&value)
ContentData & WithMetadata(Aws::Map< Aws::String, Aws::String > &&value)
ContentData & WithName(const char *value)
ContentData & AddMetadata(const Aws::String &key, Aws::String &&value)
void SetLinkOutUri(const Aws::String &value)
ContentData & WithUrl(const Aws::String &value)
ContentData & AddMetadata(Aws::String &&key, const char *value)
ContentData & WithKnowledgeBaseArn(const char *value)
ContentData & AddTags(const char *key, Aws::String &&value)
void SetContentType(const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetContentId(Aws::String &&value)
ContentData & WithKnowledgeBaseId(const char *value)
const Aws::String & GetContentType() const
ContentData & WithContentArn(Aws::String &&value)
ContentData & AddTags(Aws::String &&key, Aws::String &&value)
bool KnowledgeBaseArnHasBeenSet() const
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