AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateContentAssociationRequest.h
1
6#pragma once
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>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace QConnect
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_QCONNECT_API CreateContentAssociationRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateContentAssociation"; }
35
36 AWS_QCONNECT_API Aws::String SerializePayload() const override;
37
38
40
47 inline const Aws::String& GetClientToken() const { return m_clientToken; }
48 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
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>
52 CreateContentAssociationRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
54
56
59 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
60 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
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>
64 CreateContentAssociationRequest& WithKnowledgeBaseId(KnowledgeBaseIdT&& value) { SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value)); return *this;}
66
68
71 inline const Aws::String& GetContentId() const { return m_contentId; }
72 inline bool ContentIdHasBeenSet() const { return m_contentIdHasBeenSet; }
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>
76 CreateContentAssociationRequest& WithContentId(ContentIdT&& value) { SetContentId(std::forward<ContentIdT>(value)); return *this;}
78
80
83 inline ContentAssociationType GetAssociationType() const { return m_associationType; }
84 inline bool AssociationTypeHasBeenSet() const { return m_associationTypeHasBeenSet; }
85 inline void SetAssociationType(ContentAssociationType value) { m_associationTypeHasBeenSet = true; m_associationType = value; }
88
90
93 inline const ContentAssociationContents& GetAssociation() const { return m_association; }
94 inline bool AssociationHasBeenSet() const { return m_associationHasBeenSet; }
95 template<typename AssociationT = ContentAssociationContents>
96 void SetAssociation(AssociationT&& value) { m_associationHasBeenSet = true; m_association = std::forward<AssociationT>(value); }
97 template<typename AssociationT = ContentAssociationContents>
98 CreateContentAssociationRequest& WithAssociation(AssociationT&& value) { SetAssociation(std::forward<AssociationT>(value)); return *this;}
100
102
105 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
106 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
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>>
110 CreateContentAssociationRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
111 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
112 CreateContentAssociationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
113 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
114 }
116 private:
117
119 bool m_clientTokenHasBeenSet = true;
120
121 Aws::String m_knowledgeBaseId;
122 bool m_knowledgeBaseIdHasBeenSet = false;
123
124 Aws::String m_contentId;
125 bool m_contentIdHasBeenSet = false;
126
128 bool m_associationTypeHasBeenSet = false;
129
130 ContentAssociationContents m_association;
131 bool m_associationHasBeenSet = false;
132
134 bool m_tagsHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace QConnect
139} // namespace Aws
CreateContentAssociationRequest & WithTags(TagsT &&value)
CreateContentAssociationRequest & WithAssociationType(ContentAssociationType value)
CreateContentAssociationRequest & WithContentId(ContentIdT &&value)
CreateContentAssociationRequest & WithAssociation(AssociationT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateContentAssociationRequest & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
AWS_QCONNECT_API Aws::String SerializePayload() const override
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