AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DeleteCustomMetadataRequest.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/AWSVector.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 DeleteCustomMetadataRequest() = default;
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 "DeleteCustomMetadata"; }
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 template<typename AuthenticationTokenT = Aws::String>
52 void SetAuthenticationToken(AuthenticationTokenT&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::forward<AuthenticationTokenT>(value); }
53 template<typename AuthenticationTokenT = Aws::String>
54 DeleteCustomMetadataRequest& WithAuthenticationToken(AuthenticationTokenT&& value) { SetAuthenticationToken(std::forward<AuthenticationTokenT>(value)); return *this;}
56
58
61 inline const Aws::String& GetResourceId() const { return m_resourceId; }
62 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
63 template<typename ResourceIdT = Aws::String>
64 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
65 template<typename ResourceIdT = Aws::String>
66 DeleteCustomMetadataRequest& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
68
70
74 inline const Aws::String& GetVersionId() const { return m_versionId; }
75 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
76 template<typename VersionIdT = Aws::String>
77 void SetVersionId(VersionIdT&& value) { m_versionIdHasBeenSet = true; m_versionId = std::forward<VersionIdT>(value); }
78 template<typename VersionIdT = Aws::String>
79 DeleteCustomMetadataRequest& WithVersionId(VersionIdT&& value) { SetVersionId(std::forward<VersionIdT>(value)); return *this;}
81
83
86 inline const Aws::Vector<Aws::String>& GetKeys() const { return m_keys; }
87 inline bool KeysHasBeenSet() const { return m_keysHasBeenSet; }
88 template<typename KeysT = Aws::Vector<Aws::String>>
89 void SetKeys(KeysT&& value) { m_keysHasBeenSet = true; m_keys = std::forward<KeysT>(value); }
90 template<typename KeysT = Aws::Vector<Aws::String>>
91 DeleteCustomMetadataRequest& WithKeys(KeysT&& value) { SetKeys(std::forward<KeysT>(value)); return *this;}
92 template<typename KeysT = Aws::String>
93 DeleteCustomMetadataRequest& AddKeys(KeysT&& value) { m_keysHasBeenSet = true; m_keys.emplace_back(std::forward<KeysT>(value)); return *this; }
95
97
101 inline bool GetDeleteAll() const { return m_deleteAll; }
102 inline bool DeleteAllHasBeenSet() const { return m_deleteAllHasBeenSet; }
103 inline void SetDeleteAll(bool value) { m_deleteAllHasBeenSet = true; m_deleteAll = value; }
104 inline DeleteCustomMetadataRequest& WithDeleteAll(bool value) { SetDeleteAll(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
118 bool m_keysHasBeenSet = false;
119
120 bool m_deleteAll{false};
121 bool m_deleteAllHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace WorkDocs
126} // namespace Aws
const Aws::Vector< Aws::String > & GetKeys() const
AWS_WORKDOCS_API Aws::String SerializePayload() const override
AWS_WORKDOCS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DeleteCustomMetadataRequest & WithDeleteAll(bool value)
DeleteCustomMetadataRequest & WithResourceId(ResourceIdT &&value)
DeleteCustomMetadataRequest & WithAuthenticationToken(AuthenticationTokenT &&value)
DeleteCustomMetadataRequest & WithVersionId(VersionIdT &&value)
AWS_WORKDOCS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
DeleteCustomMetadataRequest & AddKeys(KeysT &&value)
virtual const char * GetServiceRequestName() const override
DeleteCustomMetadataRequest & WithKeys(KeysT &&value)
AWS_WORKDOCS_API DeleteCustomMetadataRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector