AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateContentAssociationRequest.h
1
6#pragma once
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>
14
15#include <utility>
16
17namespace Aws {
18namespace QConnect {
19namespace Model {
20
24 public:
25 AWS_QCONNECT_API CreateContentAssociationRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateContentAssociation"; }
32
33 AWS_QCONNECT_API Aws::String SerializePayload() const override;
34
36
43 inline const Aws::String& GetClientToken() const { return m_clientToken; }
44 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
45 template <typename ClientTokenT = Aws::String>
46 void SetClientToken(ClientTokenT&& value) {
47 m_clientTokenHasBeenSet = true;
48 m_clientToken = std::forward<ClientTokenT>(value);
49 }
50 template <typename ClientTokenT = Aws::String>
52 SetClientToken(std::forward<ClientTokenT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
62 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
63 template <typename KnowledgeBaseIdT = Aws::String>
64 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) {
65 m_knowledgeBaseIdHasBeenSet = true;
66 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
67 }
68 template <typename KnowledgeBaseIdT = Aws::String>
70 SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetContentId() const { return m_contentId; }
80 inline bool ContentIdHasBeenSet() const { return m_contentIdHasBeenSet; }
81 template <typename ContentIdT = Aws::String>
82 void SetContentId(ContentIdT&& value) {
83 m_contentIdHasBeenSet = true;
84 m_contentId = std::forward<ContentIdT>(value);
85 }
86 template <typename ContentIdT = Aws::String>
88 SetContentId(std::forward<ContentIdT>(value));
89 return *this;
90 }
92
94
97 inline ContentAssociationType GetAssociationType() const { return m_associationType; }
98 inline bool AssociationTypeHasBeenSet() const { return m_associationTypeHasBeenSet; }
100 m_associationTypeHasBeenSet = true;
101 m_associationType = value;
102 }
104 SetAssociationType(value);
105 return *this;
106 }
108
110
113 inline const ContentAssociationContents& GetAssociation() const { return m_association; }
114 inline bool AssociationHasBeenSet() const { return m_associationHasBeenSet; }
115 template <typename AssociationT = ContentAssociationContents>
116 void SetAssociation(AssociationT&& value) {
117 m_associationHasBeenSet = true;
118 m_association = std::forward<AssociationT>(value);
119 }
120 template <typename AssociationT = ContentAssociationContents>
122 SetAssociation(std::forward<AssociationT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
132 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
133 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
134 void SetTags(TagsT&& value) {
135 m_tagsHasBeenSet = true;
136 m_tags = std::forward<TagsT>(value);
137 }
138 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
140 SetTags(std::forward<TagsT>(value));
141 return *this;
142 }
143 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
144 CreateContentAssociationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
145 m_tagsHasBeenSet = true;
146 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
147 return *this;
148 }
150 private:
152
153 Aws::String m_knowledgeBaseId;
154
155 Aws::String m_contentId;
156
158
159 ContentAssociationContents m_association;
160
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;
168};
169
170} // namespace Model
171} // namespace QConnect
172} // 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