AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateContentRequest.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/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace QConnect
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_QCONNECT_API CreateContentRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateContent"; }
33
34 AWS_QCONNECT_API Aws::String SerializePayload() const override;
35
36
38
45 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
46 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
47 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
48 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
49 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
50 inline CreateContentRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
51 inline CreateContentRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
52 inline CreateContentRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
54
56
61 inline const Aws::String& GetKnowledgeBaseId() const{ return m_knowledgeBaseId; }
62 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
63 inline void SetKnowledgeBaseId(const Aws::String& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = value; }
64 inline void SetKnowledgeBaseId(Aws::String&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::move(value); }
65 inline void SetKnowledgeBaseId(const char* value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId.assign(value); }
66 inline CreateContentRequest& WithKnowledgeBaseId(const Aws::String& value) { SetKnowledgeBaseId(value); return *this;}
67 inline CreateContentRequest& WithKnowledgeBaseId(Aws::String&& value) { SetKnowledgeBaseId(std::move(value)); return *this;}
68 inline CreateContentRequest& WithKnowledgeBaseId(const char* value) { SetKnowledgeBaseId(value); return *this;}
70
72
78 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const{ return m_metadata; }
79 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
80 inline void SetMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_metadataHasBeenSet = true; m_metadata = value; }
81 inline void SetMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); }
83 inline CreateContentRequest& WithMetadata(Aws::Map<Aws::String, Aws::String>&& value) { SetMetadata(std::move(value)); return *this;}
84 inline CreateContentRequest& AddMetadata(const Aws::String& key, const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; }
85 inline CreateContentRequest& AddMetadata(Aws::String&& key, const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; }
86 inline CreateContentRequest& AddMetadata(const Aws::String& key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; }
87 inline CreateContentRequest& AddMetadata(Aws::String&& key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), std::move(value)); return *this; }
88 inline CreateContentRequest& AddMetadata(const char* key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; }
89 inline CreateContentRequest& AddMetadata(Aws::String&& key, const char* value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; }
90 inline CreateContentRequest& AddMetadata(const char* key, const char* value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; }
92
94
101 inline const Aws::String& GetName() const{ return m_name; }
102 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
103 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
104 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
105 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
106 inline CreateContentRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
107 inline CreateContentRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
108 inline CreateContentRequest& WithName(const char* value) { SetName(value); return *this;}
110
112
116 inline const Aws::String& GetOverrideLinkOutUri() const{ return m_overrideLinkOutUri; }
117 inline bool OverrideLinkOutUriHasBeenSet() const { return m_overrideLinkOutUriHasBeenSet; }
118 inline void SetOverrideLinkOutUri(const Aws::String& value) { m_overrideLinkOutUriHasBeenSet = true; m_overrideLinkOutUri = value; }
119 inline void SetOverrideLinkOutUri(Aws::String&& value) { m_overrideLinkOutUriHasBeenSet = true; m_overrideLinkOutUri = std::move(value); }
120 inline void SetOverrideLinkOutUri(const char* value) { m_overrideLinkOutUriHasBeenSet = true; m_overrideLinkOutUri.assign(value); }
122 inline CreateContentRequest& WithOverrideLinkOutUri(Aws::String&& value) { SetOverrideLinkOutUri(std::move(value)); return *this;}
123 inline CreateContentRequest& WithOverrideLinkOutUri(const char* value) { SetOverrideLinkOutUri(value); return *this;}
125
127
130 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
131 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
132 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
133 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
134 inline CreateContentRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
135 inline CreateContentRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
136 inline CreateContentRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
137 inline CreateContentRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
138 inline CreateContentRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
139 inline CreateContentRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
140 inline CreateContentRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
141 inline CreateContentRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
142 inline CreateContentRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
144
146
149 inline const Aws::String& GetTitle() const{ return m_title; }
150 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
151 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
152 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
153 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
154 inline CreateContentRequest& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
155 inline CreateContentRequest& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
156 inline CreateContentRequest& WithTitle(const char* value) { SetTitle(value); return *this;}
158
160
164 inline const Aws::String& GetUploadId() const{ return m_uploadId; }
165 inline bool UploadIdHasBeenSet() const { return m_uploadIdHasBeenSet; }
166 inline void SetUploadId(const Aws::String& value) { m_uploadIdHasBeenSet = true; m_uploadId = value; }
167 inline void SetUploadId(Aws::String&& value) { m_uploadIdHasBeenSet = true; m_uploadId = std::move(value); }
168 inline void SetUploadId(const char* value) { m_uploadIdHasBeenSet = true; m_uploadId.assign(value); }
169 inline CreateContentRequest& WithUploadId(const Aws::String& value) { SetUploadId(value); return *this;}
170 inline CreateContentRequest& WithUploadId(Aws::String&& value) { SetUploadId(std::move(value)); return *this;}
171 inline CreateContentRequest& WithUploadId(const char* value) { SetUploadId(value); return *this;}
173 private:
174
175 Aws::String m_clientToken;
176 bool m_clientTokenHasBeenSet = false;
177
178 Aws::String m_knowledgeBaseId;
179 bool m_knowledgeBaseIdHasBeenSet = false;
180
182 bool m_metadataHasBeenSet = false;
183
184 Aws::String m_name;
185 bool m_nameHasBeenSet = false;
186
187 Aws::String m_overrideLinkOutUri;
188 bool m_overrideLinkOutUriHasBeenSet = false;
189
191 bool m_tagsHasBeenSet = false;
192
193 Aws::String m_title;
194 bool m_titleHasBeenSet = false;
195
196 Aws::String m_uploadId;
197 bool m_uploadIdHasBeenSet = false;
198 };
199
200} // namespace Model
201} // namespace QConnect
202} // namespace Aws
CreateContentRequest & AddMetadata(const char *key, Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateContentRequest & AddMetadata(const Aws::String &key, const Aws::String &value)
CreateContentRequest & WithUploadId(Aws::String &&value)
CreateContentRequest & WithKnowledgeBaseId(const Aws::String &value)
CreateContentRequest & WithKnowledgeBaseId(Aws::String &&value)
void SetClientToken(const Aws::String &value)
CreateContentRequest & WithKnowledgeBaseId(const char *value)
AWS_QCONNECT_API Aws::String SerializePayload() const override
CreateContentRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateContentRequest & WithName(const Aws::String &value)
CreateContentRequest & AddMetadata(Aws::String &&key, const Aws::String &value)
CreateContentRequest & AddMetadata(const char *key, const char *value)
CreateContentRequest & AddTags(Aws::String &&key, Aws::String &&value)
void SetMetadata(const Aws::Map< Aws::String, Aws::String > &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateContentRequest & WithClientToken(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateContentRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateContentRequest & WithName(const char *value)
CreateContentRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetKnowledgeBaseId(const Aws::String &value)
CreateContentRequest & AddMetadata(Aws::String &&key, const char *value)
CreateContentRequest & AddTags(const char *key, const char *value)
void SetMetadata(Aws::Map< Aws::String, Aws::String > &&value)
CreateContentRequest & WithTitle(const Aws::String &value)
void SetOverrideLinkOutUri(const Aws::String &value)
CreateContentRequest & WithName(Aws::String &&value)
CreateContentRequest & AddTags(const char *key, Aws::String &&value)
CreateContentRequest & WithUploadId(const Aws::String &value)
CreateContentRequest & AddMetadata(Aws::String &&key, Aws::String &&value)
CreateContentRequest & AddMetadata(const Aws::String &key, Aws::String &&value)
CreateContentRequest & WithOverrideLinkOutUri(const Aws::String &value)
CreateContentRequest & WithTitle(Aws::String &&value)
CreateContentRequest & WithOverrideLinkOutUri(Aws::String &&value)
CreateContentRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateContentRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateContentRequest & WithOverrideLinkOutUri(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateContentRequest & WithMetadata(Aws::Map< Aws::String, Aws::String > &&value)
CreateContentRequest & WithClientToken(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
CreateContentRequest & WithMetadata(const Aws::Map< Aws::String, Aws::String > &value)
CreateContentRequest & AddTags(Aws::String &&key, const char *value)
CreateContentRequest & WithTitle(const char *value)
CreateContentRequest & WithClientToken(const char *value)
CreateContentRequest & WithUploadId(const char *value)
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