AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DeleteDocumentVersionRequest.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 <utility>
11
12namespace Aws
13{
14namespace Http
15{
16 class URI;
17} //namespace Http
18namespace WorkDocs
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_WORKDOCS_API DeleteDocumentVersionRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "DeleteDocumentVersion"; }
35
36 AWS_WORKDOCS_API Aws::String SerializePayload() const override;
37
38 AWS_WORKDOCS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39
41
42
44
48 inline const Aws::String& GetAuthenticationToken() const { return m_authenticationToken; }
49 inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
50 template<typename AuthenticationTokenT = Aws::String>
51 void SetAuthenticationToken(AuthenticationTokenT&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::forward<AuthenticationTokenT>(value); }
52 template<typename AuthenticationTokenT = Aws::String>
53 DeleteDocumentVersionRequest& WithAuthenticationToken(AuthenticationTokenT&& value) { SetAuthenticationToken(std::forward<AuthenticationTokenT>(value)); return *this;}
55
57
60 inline const Aws::String& GetDocumentId() const { return m_documentId; }
61 inline bool DocumentIdHasBeenSet() const { return m_documentIdHasBeenSet; }
62 template<typename DocumentIdT = Aws::String>
63 void SetDocumentId(DocumentIdT&& value) { m_documentIdHasBeenSet = true; m_documentId = std::forward<DocumentIdT>(value); }
64 template<typename DocumentIdT = Aws::String>
65 DeleteDocumentVersionRequest& WithDocumentId(DocumentIdT&& value) { SetDocumentId(std::forward<DocumentIdT>(value)); return *this;}
67
69
72 inline const Aws::String& GetVersionId() const { return m_versionId; }
73 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
74 template<typename VersionIdT = Aws::String>
75 void SetVersionId(VersionIdT&& value) { m_versionIdHasBeenSet = true; m_versionId = std::forward<VersionIdT>(value); }
76 template<typename VersionIdT = Aws::String>
77 DeleteDocumentVersionRequest& WithVersionId(VersionIdT&& value) { SetVersionId(std::forward<VersionIdT>(value)); return *this;}
79
81
84 inline bool GetDeletePriorVersions() const { return m_deletePriorVersions; }
85 inline bool DeletePriorVersionsHasBeenSet() const { return m_deletePriorVersionsHasBeenSet; }
86 inline void SetDeletePriorVersions(bool value) { m_deletePriorVersionsHasBeenSet = true; m_deletePriorVersions = value; }
89 private:
90
91 Aws::String m_authenticationToken;
92 bool m_authenticationTokenHasBeenSet = false;
93
94 Aws::String m_documentId;
95 bool m_documentIdHasBeenSet = false;
96
97 Aws::String m_versionId;
98 bool m_versionIdHasBeenSet = false;
99
100 bool m_deletePriorVersions{false};
101 bool m_deletePriorVersionsHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace WorkDocs
106} // 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