AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateCustomMetadataRequest.h
1
6#pragma once
7#include <aws/workdocs/WorkDocs_EXPORTS.h>
8#include <aws/workdocs/WorkDocsRequest.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 Http
16{
17 class URI;
18} //namespace Http
19namespace WorkDocs
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_WORKDOCS_API CreateCustomMetadataRequest();
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_WORKDOCS_API Aws::String SerializePayload() const override;
38
39 AWS_WORKDOCS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
42
43
45
49 inline const Aws::String& GetAuthenticationToken() const{ return m_authenticationToken; }
50 inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
51 inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
52 inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
53 inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
56 inline CreateCustomMetadataRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
58
60
63 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
64 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
65 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
66 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
67 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
68 inline CreateCustomMetadataRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
69 inline CreateCustomMetadataRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
70 inline CreateCustomMetadataRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
72
74
78 inline const Aws::String& GetVersionId() const{ return m_versionId; }
79 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
80 inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
81 inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); }
82 inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
83 inline CreateCustomMetadataRequest& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
84 inline CreateCustomMetadataRequest& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
85 inline CreateCustomMetadataRequest& WithVersionId(const char* value) { SetVersionId(value); return *this;}
87
89
92 inline const Aws::Map<Aws::String, Aws::String>& GetCustomMetadata() const{ return m_customMetadata; }
93 inline bool CustomMetadataHasBeenSet() const { return m_customMetadataHasBeenSet; }
94 inline void SetCustomMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_customMetadataHasBeenSet = true; m_customMetadata = value; }
95 inline void SetCustomMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_customMetadataHasBeenSet = true; m_customMetadata = std::move(value); }
98 inline CreateCustomMetadataRequest& AddCustomMetadata(const Aws::String& key, const Aws::String& value) { m_customMetadataHasBeenSet = true; m_customMetadata.emplace(key, value); return *this; }
99 inline CreateCustomMetadataRequest& AddCustomMetadata(Aws::String&& key, const Aws::String& value) { m_customMetadataHasBeenSet = true; m_customMetadata.emplace(std::move(key), value); return *this; }
100 inline CreateCustomMetadataRequest& AddCustomMetadata(const Aws::String& key, Aws::String&& value) { m_customMetadataHasBeenSet = true; m_customMetadata.emplace(key, std::move(value)); return *this; }
101 inline CreateCustomMetadataRequest& AddCustomMetadata(Aws::String&& key, Aws::String&& value) { m_customMetadataHasBeenSet = true; m_customMetadata.emplace(std::move(key), std::move(value)); return *this; }
102 inline CreateCustomMetadataRequest& AddCustomMetadata(const char* key, Aws::String&& value) { m_customMetadataHasBeenSet = true; m_customMetadata.emplace(key, std::move(value)); return *this; }
103 inline CreateCustomMetadataRequest& AddCustomMetadata(Aws::String&& key, const char* value) { m_customMetadataHasBeenSet = true; m_customMetadata.emplace(std::move(key), value); return *this; }
104 inline CreateCustomMetadataRequest& AddCustomMetadata(const char* key, const char* value) { m_customMetadataHasBeenSet = true; m_customMetadata.emplace(key, value); return *this; }
106 private:
107
108 Aws::String m_authenticationToken;
109 bool m_authenticationTokenHasBeenSet = false;
110
111 Aws::String m_resourceId;
112 bool m_resourceIdHasBeenSet = false;
113
114 Aws::String m_versionId;
115 bool m_versionIdHasBeenSet = false;
116
117 Aws::Map<Aws::String, Aws::String> m_customMetadata;
118 bool m_customMetadataHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace WorkDocs
123} // namespace Aws
AWS_WORKDOCS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_WORKDOCS_API Aws::String SerializePayload() const override
CreateCustomMetadataRequest & WithCustomMetadata(Aws::Map< Aws::String, Aws::String > &&value)
CreateCustomMetadataRequest & WithResourceId(const char *value)
CreateCustomMetadataRequest & WithCustomMetadata(const Aws::Map< Aws::String, Aws::String > &value)
CreateCustomMetadataRequest & AddCustomMetadata(Aws::String &&key, Aws::String &&value)
CreateCustomMetadataRequest & WithResourceId(Aws::String &&value)
CreateCustomMetadataRequest & WithResourceId(const Aws::String &value)
CreateCustomMetadataRequest & AddCustomMetadata(const Aws::String &key, const Aws::String &value)
CreateCustomMetadataRequest & WithVersionId(const Aws::String &value)
CreateCustomMetadataRequest & WithAuthenticationToken(const char *value)
CreateCustomMetadataRequest & WithVersionId(Aws::String &&value)
CreateCustomMetadataRequest & AddCustomMetadata(const char *key, const char *value)
CreateCustomMetadataRequest & WithAuthenticationToken(const Aws::String &value)
CreateCustomMetadataRequest & AddCustomMetadata(Aws::String &&key, const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetCustomMetadata() const
CreateCustomMetadataRequest & WithAuthenticationToken(Aws::String &&value)
CreateCustomMetadataRequest & AddCustomMetadata(Aws::String &&key, const char *value)
AWS_WORKDOCS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateCustomMetadataRequest & WithVersionId(const char *value)
void SetCustomMetadata(Aws::Map< Aws::String, Aws::String > &&value)
void SetCustomMetadata(const Aws::Map< Aws::String, Aws::String > &value)
CreateCustomMetadataRequest & AddCustomMetadata(const char *key, Aws::String &&value)
CreateCustomMetadataRequest & AddCustomMetadata(const Aws::String &key, Aws::String &&value)
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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