AWS SDK for C++  1.9.124
AWS SDK for C++
CreateCustomMetadataRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Http
16 {
17  class URI;
18 } //namespace Http
19 namespace WorkDocs
20 {
21 namespace Model
22 {
23 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "CreateCustomMetadata"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40 
42 
43 
48  inline const Aws::String& GetAuthenticationToken() const{ return m_authenticationToken; }
49 
54  inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
55 
60  inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
61 
66  inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
67 
72  inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
73 
78  inline CreateCustomMetadataRequest& WithAuthenticationToken(const Aws::String& value) { SetAuthenticationToken(value); return *this;}
79 
84  inline CreateCustomMetadataRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;}
85 
90  inline CreateCustomMetadataRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
91 
92 
96  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
97 
101  inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
102 
106  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
107 
111  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
112 
116  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
117 
121  inline CreateCustomMetadataRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
122 
126  inline CreateCustomMetadataRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
127 
131  inline CreateCustomMetadataRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
132 
133 
138  inline const Aws::String& GetVersionId() const{ return m_versionId; }
139 
144  inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
145 
150  inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
151 
156  inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); }
157 
162  inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
163 
168  inline CreateCustomMetadataRequest& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
169 
174  inline CreateCustomMetadataRequest& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
175 
180  inline CreateCustomMetadataRequest& WithVersionId(const char* value) { SetVersionId(value); return *this;}
181 
182 
186  inline const Aws::Map<Aws::String, Aws::String>& GetCustomMetadata() const{ return m_customMetadata; }
187 
191  inline bool CustomMetadataHasBeenSet() const { return m_customMetadataHasBeenSet; }
192 
196  inline void SetCustomMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_customMetadataHasBeenSet = true; m_customMetadata = value; }
197 
201  inline void SetCustomMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_customMetadataHasBeenSet = true; m_customMetadata = std::move(value); }
202 
206  inline CreateCustomMetadataRequest& WithCustomMetadata(const Aws::Map<Aws::String, Aws::String>& value) { SetCustomMetadata(value); return *this;}
207 
211  inline CreateCustomMetadataRequest& WithCustomMetadata(Aws::Map<Aws::String, Aws::String>&& value) { SetCustomMetadata(std::move(value)); return *this;}
212 
216  inline CreateCustomMetadataRequest& AddCustomMetadata(const Aws::String& key, const Aws::String& value) { m_customMetadataHasBeenSet = true; m_customMetadata.emplace(key, value); return *this; }
217 
221  inline CreateCustomMetadataRequest& AddCustomMetadata(Aws::String&& key, const Aws::String& value) { m_customMetadataHasBeenSet = true; m_customMetadata.emplace(std::move(key), value); return *this; }
222 
226  inline CreateCustomMetadataRequest& AddCustomMetadata(const Aws::String& key, Aws::String&& value) { m_customMetadataHasBeenSet = true; m_customMetadata.emplace(key, std::move(value)); return *this; }
227 
231  inline CreateCustomMetadataRequest& AddCustomMetadata(Aws::String&& key, Aws::String&& value) { m_customMetadataHasBeenSet = true; m_customMetadata.emplace(std::move(key), std::move(value)); return *this; }
232 
236  inline CreateCustomMetadataRequest& AddCustomMetadata(const char* key, Aws::String&& value) { m_customMetadataHasBeenSet = true; m_customMetadata.emplace(key, std::move(value)); return *this; }
237 
241  inline CreateCustomMetadataRequest& AddCustomMetadata(Aws::String&& key, const char* value) { m_customMetadataHasBeenSet = true; m_customMetadata.emplace(std::move(key), value); return *this; }
242 
246  inline CreateCustomMetadataRequest& AddCustomMetadata(const char* key, const char* value) { m_customMetadataHasBeenSet = true; m_customMetadata.emplace(key, value); return *this; }
247 
248  private:
249 
250  Aws::String m_authenticationToken;
251  bool m_authenticationTokenHasBeenSet;
252 
253  Aws::String m_resourceId;
254  bool m_resourceIdHasBeenSet;
255 
256  Aws::String m_versionId;
257  bool m_versionIdHasBeenSet;
258 
259  Aws::Map<Aws::String, Aws::String> m_customMetadata;
260  bool m_customMetadataHasBeenSet;
261  };
262 
263 } // namespace Model
264 } // namespace WorkDocs
265 } // namespace Aws
Aws::WorkDocs::Model::CreateCustomMetadataRequest::AuthenticationTokenHasBeenSet
bool AuthenticationTokenHasBeenSet() const
Definition: CreateCustomMetadataRequest.h:54
Aws::Http::URI
Definition: URI.h:32
Aws::WorkDocs::Model::CreateCustomMetadataRequest::SetVersionId
void SetVersionId(Aws::String &&value)
Definition: CreateCustomMetadataRequest.h:156
Aws::WorkDocs::Model::CreateCustomMetadataRequest::SetVersionId
void SetVersionId(const char *value)
Definition: CreateCustomMetadataRequest.h:162
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::WorkDocs::WorkDocsRequest
Definition: WorkDocsRequest.h:17
Aws::WorkDocs::Model::CreateCustomMetadataRequest::WithCustomMetadata
CreateCustomMetadataRequest & WithCustomMetadata(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateCustomMetadataRequest.h:211
Aws::WorkDocs::Model::CreateCustomMetadataRequest::WithVersionId
CreateCustomMetadataRequest & WithVersionId(Aws::String &&value)
Definition: CreateCustomMetadataRequest.h:174
Aws::WorkDocs::Model::CreateCustomMetadataRequest::SetAuthenticationToken
void SetAuthenticationToken(const char *value)
Definition: CreateCustomMetadataRequest.h:72
Aws::WorkDocs::Model::CreateCustomMetadataRequest::GetVersionId
const Aws::String & GetVersionId() const
Definition: CreateCustomMetadataRequest.h:138
Aws::WorkDocs::Model::CreateCustomMetadataRequest::AddCustomMetadata
CreateCustomMetadataRequest & AddCustomMetadata(Aws::String &&key, const char *value)
Definition: CreateCustomMetadataRequest.h:241
Aws::WorkDocs::Model::CreateCustomMetadataRequest::WithVersionId
CreateCustomMetadataRequest & WithVersionId(const Aws::String &value)
Definition: CreateCustomMetadataRequest.h:168
Aws::WorkDocs::Model::CreateCustomMetadataRequest
Definition: CreateCustomMetadataRequest.h:27
Aws::WorkDocs::Model::CreateCustomMetadataRequest::SetVersionId
void SetVersionId(const Aws::String &value)
Definition: CreateCustomMetadataRequest.h:150
Aws::WorkDocs::Model::CreateCustomMetadataRequest::SetCustomMetadata
void SetCustomMetadata(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateCustomMetadataRequest.h:201
Aws::WorkDocs::Model::CreateCustomMetadataRequest::SetResourceId
void SetResourceId(const Aws::String &value)
Definition: CreateCustomMetadataRequest.h:106
Aws::WorkDocs::Model::CreateCustomMetadataRequest::SetCustomMetadata
void SetCustomMetadata(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateCustomMetadataRequest.h:196
Aws::WorkDocs::Model::CreateCustomMetadataRequest::WithVersionId
CreateCustomMetadataRequest & WithVersionId(const char *value)
Definition: CreateCustomMetadataRequest.h:180
Aws::WorkDocs::Model::CreateCustomMetadataRequest::GetResourceId
const Aws::String & GetResourceId() const
Definition: CreateCustomMetadataRequest.h:96
Aws::WorkDocs::Model::CreateCustomMetadataRequest::AddCustomMetadata
CreateCustomMetadataRequest & AddCustomMetadata(const char *key, const char *value)
Definition: CreateCustomMetadataRequest.h:246
Aws::WorkDocs::Model::CreateCustomMetadataRequest::SetResourceId
void SetResourceId(const char *value)
Definition: CreateCustomMetadataRequest.h:116
Aws::WorkDocs::Model::CreateCustomMetadataRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::WorkDocs::Model::CreateCustomMetadataRequest::SetResourceId
void SetResourceId(Aws::String &&value)
Definition: CreateCustomMetadataRequest.h:111
Aws::WorkDocs::Model::CreateCustomMetadataRequest::AddCustomMetadata
CreateCustomMetadataRequest & AddCustomMetadata(Aws::String &&key, const Aws::String &value)
Definition: CreateCustomMetadataRequest.h:221
Aws::WorkDocs::Model::CreateCustomMetadataRequest::GetCustomMetadata
const Aws::Map< Aws::String, Aws::String > & GetCustomMetadata() const
Definition: CreateCustomMetadataRequest.h:186
Aws::WorkDocs::Model::CreateCustomMetadataRequest::WithResourceId
CreateCustomMetadataRequest & WithResourceId(const Aws::String &value)
Definition: CreateCustomMetadataRequest.h:121
Aws::WorkDocs::Model::CreateCustomMetadataRequest::AddCustomMetadata
CreateCustomMetadataRequest & AddCustomMetadata(Aws::String &&key, Aws::String &&value)
Definition: CreateCustomMetadataRequest.h:231
Aws::WorkDocs::Model::CreateCustomMetadataRequest::SerializePayload
Aws::String SerializePayload() const override
WorkDocs_EXPORTS.h
AWSString.h
Aws::WorkDocs::Model::CreateCustomMetadataRequest::WithResourceId
CreateCustomMetadataRequest & WithResourceId(const char *value)
Definition: CreateCustomMetadataRequest.h:131
Aws::WorkDocs::Model::CreateCustomMetadataRequest::WithAuthenticationToken
CreateCustomMetadataRequest & WithAuthenticationToken(const Aws::String &value)
Definition: CreateCustomMetadataRequest.h:78
Aws::WorkDocs::Model::CreateCustomMetadataRequest::CustomMetadataHasBeenSet
bool CustomMetadataHasBeenSet() const
Definition: CreateCustomMetadataRequest.h:191
Aws::WorkDocs::Model::CreateCustomMetadataRequest::AddCustomMetadata
CreateCustomMetadataRequest & AddCustomMetadata(const Aws::String &key, const Aws::String &value)
Definition: CreateCustomMetadataRequest.h:216
Aws::WorkDocs::Model::CreateCustomMetadataRequest::WithCustomMetadata
CreateCustomMetadataRequest & WithCustomMetadata(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateCustomMetadataRequest.h:206
Aws::WorkDocs::Model::CreateCustomMetadataRequest::WithAuthenticationToken
CreateCustomMetadataRequest & WithAuthenticationToken(const char *value)
Definition: CreateCustomMetadataRequest.h:90
Aws::WorkDocs::Model::CreateCustomMetadataRequest::GetAuthenticationToken
const Aws::String & GetAuthenticationToken() const
Definition: CreateCustomMetadataRequest.h:48
Aws::WorkDocs::Model::CreateCustomMetadataRequest::SetAuthenticationToken
void SetAuthenticationToken(const Aws::String &value)
Definition: CreateCustomMetadataRequest.h:60
Aws::WorkDocs::Model::CreateCustomMetadataRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateCustomMetadataRequest.h:35
Aws::WorkDocs::Model::CreateCustomMetadataRequest::ResourceIdHasBeenSet
bool ResourceIdHasBeenSet() const
Definition: CreateCustomMetadataRequest.h:101
AWS_WORKDOCS_API
#define AWS_WORKDOCS_API
Definition: WorkDocs_EXPORTS.h:28
Aws::WorkDocs::Model::CreateCustomMetadataRequest::WithAuthenticationToken
CreateCustomMetadataRequest & WithAuthenticationToken(Aws::String &&value)
Definition: CreateCustomMetadataRequest.h:84
Aws
Definition: AccessManagementClient.h:15
Aws::WorkDocs::Model::CreateCustomMetadataRequest::VersionIdHasBeenSet
bool VersionIdHasBeenSet() const
Definition: CreateCustomMetadataRequest.h:144
WorkDocsRequest.h
Aws::WorkDocs::Model::CreateCustomMetadataRequest::AddCustomMetadata
CreateCustomMetadataRequest & AddCustomMetadata(const Aws::String &key, Aws::String &&value)
Definition: CreateCustomMetadataRequest.h:226
Aws::WorkDocs::Model::CreateCustomMetadataRequest::SetAuthenticationToken
void SetAuthenticationToken(Aws::String &&value)
Definition: CreateCustomMetadataRequest.h:66
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WorkDocs::Model::CreateCustomMetadataRequest::CreateCustomMetadataRequest
CreateCustomMetadataRequest()
Aws::WorkDocs::Model::CreateCustomMetadataRequest::AddCustomMetadata
CreateCustomMetadataRequest & AddCustomMetadata(const char *key, Aws::String &&value)
Definition: CreateCustomMetadataRequest.h:236
AWSMap.h
Aws::WorkDocs::Model::CreateCustomMetadataRequest::WithResourceId
CreateCustomMetadataRequest & WithResourceId(Aws::String &&value)
Definition: CreateCustomMetadataRequest.h:126
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::WorkDocs::Model::CreateCustomMetadataRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override