AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
51 inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
52 inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
55 inline DeleteDocumentVersionRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
57
59
62 inline const Aws::String& GetDocumentId() const{ return m_documentId; }
63 inline bool DocumentIdHasBeenSet() const { return m_documentIdHasBeenSet; }
64 inline void SetDocumentId(const Aws::String& value) { m_documentIdHasBeenSet = true; m_documentId = value; }
65 inline void SetDocumentId(Aws::String&& value) { m_documentIdHasBeenSet = true; m_documentId = std::move(value); }
66 inline void SetDocumentId(const char* value) { m_documentIdHasBeenSet = true; m_documentId.assign(value); }
67 inline DeleteDocumentVersionRequest& WithDocumentId(const Aws::String& value) { SetDocumentId(value); return *this;}
68 inline DeleteDocumentVersionRequest& WithDocumentId(Aws::String&& value) { SetDocumentId(std::move(value)); return *this;}
69 inline DeleteDocumentVersionRequest& WithDocumentId(const char* value) { SetDocumentId(value); return *this;}
71
73
76 inline const Aws::String& GetVersionId() const{ return m_versionId; }
77 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
78 inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
79 inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); }
80 inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
81 inline DeleteDocumentVersionRequest& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
82 inline DeleteDocumentVersionRequest& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
83 inline DeleteDocumentVersionRequest& WithVersionId(const char* value) { SetVersionId(value); return *this;}
85
87
90 inline bool GetDeletePriorVersions() const{ return m_deletePriorVersions; }
91 inline bool DeletePriorVersionsHasBeenSet() const { return m_deletePriorVersionsHasBeenSet; }
92 inline void SetDeletePriorVersions(bool value) { m_deletePriorVersionsHasBeenSet = true; m_deletePriorVersions = value; }
95 private:
96
97 Aws::String m_authenticationToken;
98 bool m_authenticationTokenHasBeenSet = false;
99
100 Aws::String m_documentId;
101 bool m_documentIdHasBeenSet = false;
102
103 Aws::String m_versionId;
104 bool m_versionIdHasBeenSet = false;
105
106 bool m_deletePriorVersions;
107 bool m_deletePriorVersionsHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace WorkDocs
112} // namespace Aws
AWS_WORKDOCS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DeleteDocumentVersionRequest & WithDocumentId(const Aws::String &value)
DeleteDocumentVersionRequest & WithAuthenticationToken(const char *value)
DeleteDocumentVersionRequest & WithAuthenticationToken(const Aws::String &value)
DeleteDocumentVersionRequest & WithDocumentId(Aws::String &&value)
DeleteDocumentVersionRequest & WithDeletePriorVersions(bool value)
AWS_WORKDOCS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
DeleteDocumentVersionRequest & WithVersionId(const char *value)
AWS_WORKDOCS_API Aws::String SerializePayload() const override
DeleteDocumentVersionRequest & WithVersionId(const Aws::String &value)
DeleteDocumentVersionRequest & WithVersionId(Aws::String &&value)
DeleteDocumentVersionRequest & WithDocumentId(const char *value)
DeleteDocumentVersionRequest & WithAuthenticationToken(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String