AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
DeleteDocumentVersionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/workdocs/WorkDocsRequest.h>
9#include <aws/workdocs/WorkDocs_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Http {
15class URI;
16} // namespace Http
17namespace WorkDocs {
18namespace Model {
19
23 public:
24 AWS_WORKDOCS_API DeleteDocumentVersionRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "DeleteDocumentVersion"; }
31
32 AWS_WORKDOCS_API Aws::String SerializePayload() const override;
33
34 AWS_WORKDOCS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
35
37
39
43 inline const Aws::String& GetAuthenticationToken() const { return m_authenticationToken; }
44 inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
45 template <typename AuthenticationTokenT = Aws::String>
46 void SetAuthenticationToken(AuthenticationTokenT&& value) {
47 m_authenticationTokenHasBeenSet = true;
48 m_authenticationToken = std::forward<AuthenticationTokenT>(value);
49 }
50 template <typename AuthenticationTokenT = Aws::String>
52 SetAuthenticationToken(std::forward<AuthenticationTokenT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetDocumentId() const { return m_documentId; }
62 inline bool DocumentIdHasBeenSet() const { return m_documentIdHasBeenSet; }
63 template <typename DocumentIdT = Aws::String>
64 void SetDocumentId(DocumentIdT&& value) {
65 m_documentIdHasBeenSet = true;
66 m_documentId = std::forward<DocumentIdT>(value);
67 }
68 template <typename DocumentIdT = Aws::String>
70 SetDocumentId(std::forward<DocumentIdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetVersionId() const { return m_versionId; }
80 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
81 template <typename VersionIdT = Aws::String>
82 void SetVersionId(VersionIdT&& value) {
83 m_versionIdHasBeenSet = true;
84 m_versionId = std::forward<VersionIdT>(value);
85 }
86 template <typename VersionIdT = Aws::String>
88 SetVersionId(std::forward<VersionIdT>(value));
89 return *this;
90 }
92
94
97 inline bool GetDeletePriorVersions() const { return m_deletePriorVersions; }
98 inline bool DeletePriorVersionsHasBeenSet() const { return m_deletePriorVersionsHasBeenSet; }
99 inline void SetDeletePriorVersions(bool value) {
100 m_deletePriorVersionsHasBeenSet = true;
101 m_deletePriorVersions = value;
102 }
105 return *this;
106 }
108 private:
109 Aws::String m_authenticationToken;
110
111 Aws::String m_documentId;
112
113 Aws::String m_versionId;
114
115 bool m_deletePriorVersions{false};
116 bool m_authenticationTokenHasBeenSet = false;
117 bool m_documentIdHasBeenSet = false;
118 bool m_versionIdHasBeenSet = false;
119 bool m_deletePriorVersionsHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace WorkDocs
124} // namespace Aws
DeleteDocumentVersionRequest & WithAuthenticationToken(AuthenticationTokenT &&value)
AWS_WORKDOCS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DeleteDocumentVersionRequest & WithDocumentId(DocumentIdT &&value)
DeleteDocumentVersionRequest & WithVersionId(VersionIdT &&value)
DeleteDocumentVersionRequest & WithDeletePriorVersions(bool value)
AWS_WORKDOCS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_WORKDOCS_API DeleteDocumentVersionRequest()=default
AWS_WORKDOCS_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String