AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CreateCustomMetadataRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/workdocs/WorkDocsRequest.h>
10#include <aws/workdocs/WorkDocs_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace WorkDocs {
19namespace Model {
20
24 public:
25 AWS_WORKDOCS_API CreateCustomMetadataRequest() = 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 "CreateCustomMetadata"; }
32
33 AWS_WORKDOCS_API Aws::String SerializePayload() const override;
34
35 AWS_WORKDOCS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
36
38
40
44 inline const Aws::String& GetAuthenticationToken() const { return m_authenticationToken; }
45 inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
46 template <typename AuthenticationTokenT = Aws::String>
47 void SetAuthenticationToken(AuthenticationTokenT&& value) {
48 m_authenticationTokenHasBeenSet = true;
49 m_authenticationToken = std::forward<AuthenticationTokenT>(value);
50 }
51 template <typename AuthenticationTokenT = Aws::String>
53 SetAuthenticationToken(std::forward<AuthenticationTokenT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetResourceId() const { return m_resourceId; }
63 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
64 template <typename ResourceIdT = Aws::String>
65 void SetResourceId(ResourceIdT&& value) {
66 m_resourceIdHasBeenSet = true;
67 m_resourceId = std::forward<ResourceIdT>(value);
68 }
69 template <typename ResourceIdT = Aws::String>
71 SetResourceId(std::forward<ResourceIdT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::String& GetVersionId() const { return m_versionId; }
82 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
83 template <typename VersionIdT = Aws::String>
84 void SetVersionId(VersionIdT&& value) {
85 m_versionIdHasBeenSet = true;
86 m_versionId = std::forward<VersionIdT>(value);
87 }
88 template <typename VersionIdT = Aws::String>
90 SetVersionId(std::forward<VersionIdT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::Map<Aws::String, Aws::String>& GetCustomMetadata() const { return m_customMetadata; }
100 inline bool CustomMetadataHasBeenSet() const { return m_customMetadataHasBeenSet; }
101 template <typename CustomMetadataT = Aws::Map<Aws::String, Aws::String>>
102 void SetCustomMetadata(CustomMetadataT&& value) {
103 m_customMetadataHasBeenSet = true;
104 m_customMetadata = std::forward<CustomMetadataT>(value);
105 }
106 template <typename CustomMetadataT = Aws::Map<Aws::String, Aws::String>>
108 SetCustomMetadata(std::forward<CustomMetadataT>(value));
109 return *this;
110 }
111 template <typename CustomMetadataKeyT = Aws::String, typename CustomMetadataValueT = Aws::String>
112 CreateCustomMetadataRequest& AddCustomMetadata(CustomMetadataKeyT&& key, CustomMetadataValueT&& value) {
113 m_customMetadataHasBeenSet = true;
114 m_customMetadata.emplace(std::forward<CustomMetadataKeyT>(key), std::forward<CustomMetadataValueT>(value));
115 return *this;
116 }
118 private:
119 Aws::String m_authenticationToken;
120
121 Aws::String m_resourceId;
122
123 Aws::String m_versionId;
124
125 Aws::Map<Aws::String, Aws::String> m_customMetadata;
126 bool m_authenticationTokenHasBeenSet = false;
127 bool m_resourceIdHasBeenSet = false;
128 bool m_versionIdHasBeenSet = false;
129 bool m_customMetadataHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace WorkDocs
134} // namespace Aws
CreateCustomMetadataRequest & WithCustomMetadata(CustomMetadataT &&value)
AWS_WORKDOCS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_WORKDOCS_API Aws::String SerializePayload() const override
AWS_WORKDOCS_API CreateCustomMetadataRequest()=default
CreateCustomMetadataRequest & WithVersionId(VersionIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomMetadata() const
CreateCustomMetadataRequest & WithResourceId(ResourceIdT &&value)
AWS_WORKDOCS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateCustomMetadataRequest & WithAuthenticationToken(AuthenticationTokenT &&value)
CreateCustomMetadataRequest & AddCustomMetadata(CustomMetadataKeyT &&key, CustomMetadataValueT &&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