7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/qconnect/QConnectRequest.h>
11#include <aws/qconnect/QConnect_EXPORTS.h>
12#include <aws/qconnect/model/ContentAssociationContents.h>
13#include <aws/qconnect/model/ContentAssociationType.h>
45 template <
typename ClientTokenT = Aws::String>
47 m_clientTokenHasBeenSet =
true;
48 m_clientToken = std::forward<ClientTokenT>(value);
50 template <
typename ClientTokenT = Aws::String>
63 template <
typename KnowledgeBaseIdT = Aws::String>
65 m_knowledgeBaseIdHasBeenSet =
true;
66 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
68 template <
typename KnowledgeBaseIdT = Aws::String>
81 template <
typename ContentIdT = Aws::String>
83 m_contentIdHasBeenSet =
true;
84 m_contentId = std::forward<ContentIdT>(value);
86 template <
typename ContentIdT = Aws::String>
100 m_associationTypeHasBeenSet =
true;
101 m_associationType = value;
115 template <
typename AssociationT = ContentAssociationContents>
117 m_associationHasBeenSet =
true;
118 m_association = std::forward<AssociationT>(value);
120 template <
typename AssociationT = ContentAssociationContents>
133 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
135 m_tagsHasBeenSet =
true;
136 m_tags = std::forward<TagsT>(value);
138 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
140 SetTags(std::forward<TagsT>(value));
143 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
145 m_tagsHasBeenSet =
true;
146 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
159 ContentAssociationContents m_association;
162 bool m_clientTokenHasBeenSet =
true;
163 bool m_knowledgeBaseIdHasBeenSet =
false;
164 bool m_contentIdHasBeenSet =
false;
165 bool m_associationTypeHasBeenSet =
false;
166 bool m_associationHasBeenSet =
false;
167 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