7#include <aws/qconnect/QConnect_EXPORTS.h>
8#include <aws/qconnect/QConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/qconnect/model/ContentAssociationType.h>
11#include <aws/qconnect/model/ContentAssociationContents.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/core/utils/UUID.h>
49 template<
typename ClientTokenT = Aws::String>
50 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet =
true; m_clientToken = std::forward<ClientTokenT>(value); }
51 template<
typename ClientTokenT = Aws::String>
61 template<
typename KnowledgeBaseIdT = Aws::String>
62 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) { m_knowledgeBaseIdHasBeenSet =
true; m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value); }
63 template<
typename KnowledgeBaseIdT = Aws::String>
73 template<
typename ContentIdT = Aws::String>
74 void SetContentId(ContentIdT&& value) { m_contentIdHasBeenSet =
true; m_contentId = std::forward<ContentIdT>(value); }
75 template<
typename ContentIdT = Aws::String>
95 template<
typename AssociationT = ContentAssociationContents>
96 void SetAssociation(AssociationT&& value) { m_associationHasBeenSet =
true; m_association = std::forward<AssociationT>(value); }
97 template<
typename AssociationT = ContentAssociationContents>
107 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
108 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
109 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
111 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
113 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
119 bool m_clientTokenHasBeenSet =
true;
122 bool m_knowledgeBaseIdHasBeenSet =
false;
125 bool m_contentIdHasBeenSet =
false;
128 bool m_associationTypeHasBeenSet =
false;
130 ContentAssociationContents m_association;
131 bool m_associationHasBeenSet =
false;
134 bool m_tagsHasBeenSet =
false;
const ContentAssociationContents & GetAssociation() const
void SetClientToken(ClientTokenT &&value)
void SetAssociation(AssociationT &&value)
CreateContentAssociationRequest & WithTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
ContentAssociationType GetAssociationType() const
bool AssociationTypeHasBeenSet() const
CreateContentAssociationRequest & WithAssociationType(ContentAssociationType value)
const Aws::String & GetKnowledgeBaseId() const
CreateContentAssociationRequest & WithContentId(ContentIdT &&value)
bool AssociationHasBeenSet() const
void SetContentId(ContentIdT &&value)
void SetAssociationType(ContentAssociationType value)
bool KnowledgeBaseIdHasBeenSet() const
const Aws::String & GetContentId() const
CreateContentAssociationRequest & WithAssociation(AssociationT &&value)
bool ClientTokenHasBeenSet() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
bool TagsHasBeenSet() const
CreateContentAssociationRequest & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
void SetTags(TagsT &&value)
void SetKnowledgeBaseId(KnowledgeBaseIdT &&value)
AWS_QCONNECT_API Aws::String SerializePayload() const override
const Aws::String & GetClientToken() const
bool ContentIdHasBeenSet() const
CreateContentAssociationRequest & WithClientToken(ClientTokenT &&value)
AWS_QCONNECT_API CreateContentAssociationRequest()=default
CreateContentAssociationRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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