AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateContentRequest.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
13namespace Aws
14{
15namespace QConnect
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_QCONNECT_API UpdateContentRequest();
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 "UpdateContent"; }
32
33 AWS_QCONNECT_API Aws::String SerializePayload() const override;
34
35
37
41 inline const Aws::String& GetContentId() const{ return m_contentId; }
42 inline bool ContentIdHasBeenSet() const { return m_contentIdHasBeenSet; }
43 inline void SetContentId(const Aws::String& value) { m_contentIdHasBeenSet = true; m_contentId = value; }
44 inline void SetContentId(Aws::String&& value) { m_contentIdHasBeenSet = true; m_contentId = std::move(value); }
45 inline void SetContentId(const char* value) { m_contentIdHasBeenSet = true; m_contentId.assign(value); }
46 inline UpdateContentRequest& WithContentId(const Aws::String& value) { SetContentId(value); return *this;}
47 inline UpdateContentRequest& WithContentId(Aws::String&& value) { SetContentId(std::move(value)); return *this;}
48 inline UpdateContentRequest& WithContentId(const char* value) { SetContentId(value); return *this;}
50
52
56 inline const Aws::String& GetKnowledgeBaseId() const{ return m_knowledgeBaseId; }
57 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
58 inline void SetKnowledgeBaseId(const Aws::String& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = value; }
59 inline void SetKnowledgeBaseId(Aws::String&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::move(value); }
60 inline void SetKnowledgeBaseId(const char* value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId.assign(value); }
61 inline UpdateContentRequest& WithKnowledgeBaseId(const Aws::String& value) { SetKnowledgeBaseId(value); return *this;}
62 inline UpdateContentRequest& WithKnowledgeBaseId(Aws::String&& value) { SetKnowledgeBaseId(std::move(value)); return *this;}
63 inline UpdateContentRequest& WithKnowledgeBaseId(const char* value) { SetKnowledgeBaseId(value); return *this;}
65
67
73 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const{ return m_metadata; }
74 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
75 inline void SetMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_metadataHasBeenSet = true; m_metadata = value; }
76 inline void SetMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); }
78 inline UpdateContentRequest& WithMetadata(Aws::Map<Aws::String, Aws::String>&& value) { SetMetadata(std::move(value)); return *this;}
79 inline UpdateContentRequest& AddMetadata(const Aws::String& key, const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; }
80 inline UpdateContentRequest& AddMetadata(Aws::String&& key, const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; }
81 inline UpdateContentRequest& AddMetadata(const Aws::String& key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; }
82 inline UpdateContentRequest& AddMetadata(Aws::String&& key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), std::move(value)); return *this; }
83 inline UpdateContentRequest& AddMetadata(const char* key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; }
84 inline UpdateContentRequest& AddMetadata(Aws::String&& key, const char* value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; }
85 inline UpdateContentRequest& AddMetadata(const char* key, const char* value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; }
87
89
95 inline const Aws::String& GetOverrideLinkOutUri() const{ return m_overrideLinkOutUri; }
96 inline bool OverrideLinkOutUriHasBeenSet() const { return m_overrideLinkOutUriHasBeenSet; }
97 inline void SetOverrideLinkOutUri(const Aws::String& value) { m_overrideLinkOutUriHasBeenSet = true; m_overrideLinkOutUri = value; }
98 inline void SetOverrideLinkOutUri(Aws::String&& value) { m_overrideLinkOutUriHasBeenSet = true; m_overrideLinkOutUri = std::move(value); }
99 inline void SetOverrideLinkOutUri(const char* value) { m_overrideLinkOutUriHasBeenSet = true; m_overrideLinkOutUri.assign(value); }
101 inline UpdateContentRequest& WithOverrideLinkOutUri(Aws::String&& value) { SetOverrideLinkOutUri(std::move(value)); return *this;}
102 inline UpdateContentRequest& WithOverrideLinkOutUri(const char* value) { SetOverrideLinkOutUri(value); return *this;}
104
106
109 inline bool GetRemoveOverrideLinkOutUri() const{ return m_removeOverrideLinkOutUri; }
110 inline bool RemoveOverrideLinkOutUriHasBeenSet() const { return m_removeOverrideLinkOutUriHasBeenSet; }
111 inline void SetRemoveOverrideLinkOutUri(bool value) { m_removeOverrideLinkOutUriHasBeenSet = true; m_removeOverrideLinkOutUri = value; }
114
116
124 inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
125 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
126 inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
127 inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
128 inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
129 inline UpdateContentRequest& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
130 inline UpdateContentRequest& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
131 inline UpdateContentRequest& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
133
135
138 inline const Aws::String& GetTitle() const{ return m_title; }
139 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
140 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
141 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
142 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
143 inline UpdateContentRequest& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
144 inline UpdateContentRequest& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
145 inline UpdateContentRequest& WithTitle(const char* value) { SetTitle(value); return *this;}
147
149
154 inline const Aws::String& GetUploadId() const{ return m_uploadId; }
155 inline bool UploadIdHasBeenSet() const { return m_uploadIdHasBeenSet; }
156 inline void SetUploadId(const Aws::String& value) { m_uploadIdHasBeenSet = true; m_uploadId = value; }
157 inline void SetUploadId(Aws::String&& value) { m_uploadIdHasBeenSet = true; m_uploadId = std::move(value); }
158 inline void SetUploadId(const char* value) { m_uploadIdHasBeenSet = true; m_uploadId.assign(value); }
159 inline UpdateContentRequest& WithUploadId(const Aws::String& value) { SetUploadId(value); return *this;}
160 inline UpdateContentRequest& WithUploadId(Aws::String&& value) { SetUploadId(std::move(value)); return *this;}
161 inline UpdateContentRequest& WithUploadId(const char* value) { SetUploadId(value); return *this;}
163 private:
164
165 Aws::String m_contentId;
166 bool m_contentIdHasBeenSet = false;
167
168 Aws::String m_knowledgeBaseId;
169 bool m_knowledgeBaseIdHasBeenSet = false;
170
172 bool m_metadataHasBeenSet = false;
173
174 Aws::String m_overrideLinkOutUri;
175 bool m_overrideLinkOutUriHasBeenSet = false;
176
177 bool m_removeOverrideLinkOutUri;
178 bool m_removeOverrideLinkOutUriHasBeenSet = false;
179
180 Aws::String m_revisionId;
181 bool m_revisionIdHasBeenSet = false;
182
183 Aws::String m_title;
184 bool m_titleHasBeenSet = false;
185
186 Aws::String m_uploadId;
187 bool m_uploadIdHasBeenSet = false;
188 };
189
190} // namespace Model
191} // namespace QConnect
192} // namespace Aws
UpdateContentRequest & WithUploadId(const char *value)
UpdateContentRequest & WithMetadata(const Aws::Map< Aws::String, Aws::String > &value)
UpdateContentRequest & WithOverrideLinkOutUri(const Aws::String &value)
UpdateContentRequest & WithRemoveOverrideLinkOutUri(bool value)
void SetKnowledgeBaseId(const Aws::String &value)
void SetMetadata(Aws::Map< Aws::String, Aws::String > &&value)
UpdateContentRequest & WithContentId(Aws::String &&value)
UpdateContentRequest & WithTitle(Aws::String &&value)
UpdateContentRequest & WithKnowledgeBaseId(const char *value)
void SetOverrideLinkOutUri(const Aws::String &value)
UpdateContentRequest & WithKnowledgeBaseId(const Aws::String &value)
UpdateContentRequest & WithOverrideLinkOutUri(Aws::String &&value)
void SetMetadata(const Aws::Map< Aws::String, Aws::String > &value)
UpdateContentRequest & WithRevisionId(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
UpdateContentRequest & WithUploadId(Aws::String &&value)
UpdateContentRequest & WithRevisionId(const Aws::String &value)
UpdateContentRequest & WithContentId(const char *value)
UpdateContentRequest & AddMetadata(const Aws::String &key, Aws::String &&value)
virtual const char * GetServiceRequestName() const override
UpdateContentRequest & WithRevisionId(Aws::String &&value)
UpdateContentRequest & AddMetadata(Aws::String &&key, Aws::String &&value)
UpdateContentRequest & WithMetadata(Aws::Map< Aws::String, Aws::String > &&value)
UpdateContentRequest & WithOverrideLinkOutUri(const char *value)
UpdateContentRequest & WithContentId(const Aws::String &value)
UpdateContentRequest & WithUploadId(const Aws::String &value)
UpdateContentRequest & WithTitle(const char *value)
UpdateContentRequest & AddMetadata(const char *key, Aws::String &&value)
UpdateContentRequest & WithKnowledgeBaseId(Aws::String &&value)
UpdateContentRequest & AddMetadata(const Aws::String &key, const Aws::String &value)
const Aws::String & GetOverrideLinkOutUri() const
AWS_QCONNECT_API Aws::String SerializePayload() const override
void SetContentId(const Aws::String &value)
UpdateContentRequest & AddMetadata(Aws::String &&key, const char *value)
UpdateContentRequest & AddMetadata(const char *key, const char *value)
UpdateContentRequest & WithTitle(const Aws::String &value)
UpdateContentRequest & AddMetadata(Aws::String &&key, const Aws::String &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