AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
UpdateDocumentVersionRequest.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#include <aws/workdocs/model/DocumentVersionStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace WorkDocs {
16namespace Model {
17
21 public:
22 AWS_WORKDOCS_API UpdateDocumentVersionRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateDocumentVersion"; }
29
30 AWS_WORKDOCS_API Aws::String SerializePayload() const override;
31
33
35
39 inline const Aws::String& GetAuthenticationToken() const { return m_authenticationToken; }
40 inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
41 template <typename AuthenticationTokenT = Aws::String>
42 void SetAuthenticationToken(AuthenticationTokenT&& value) {
43 m_authenticationTokenHasBeenSet = true;
44 m_authenticationToken = std::forward<AuthenticationTokenT>(value);
45 }
46 template <typename AuthenticationTokenT = Aws::String>
48 SetAuthenticationToken(std::forward<AuthenticationTokenT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetDocumentId() const { return m_documentId; }
58 inline bool DocumentIdHasBeenSet() const { return m_documentIdHasBeenSet; }
59 template <typename DocumentIdT = Aws::String>
60 void SetDocumentId(DocumentIdT&& value) {
61 m_documentIdHasBeenSet = true;
62 m_documentId = std::forward<DocumentIdT>(value);
63 }
64 template <typename DocumentIdT = Aws::String>
66 SetDocumentId(std::forward<DocumentIdT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetVersionId() const { return m_versionId; }
76 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
77 template <typename VersionIdT = Aws::String>
78 void SetVersionId(VersionIdT&& value) {
79 m_versionIdHasBeenSet = true;
80 m_versionId = std::forward<VersionIdT>(value);
81 }
82 template <typename VersionIdT = Aws::String>
84 SetVersionId(std::forward<VersionIdT>(value));
85 return *this;
86 }
88
90
93 inline DocumentVersionStatus GetVersionStatus() const { return m_versionStatus; }
94 inline bool VersionStatusHasBeenSet() const { return m_versionStatusHasBeenSet; }
96 m_versionStatusHasBeenSet = true;
97 m_versionStatus = value;
98 }
100 SetVersionStatus(value);
101 return *this;
102 }
104 private:
105 Aws::String m_authenticationToken;
106
107 Aws::String m_documentId;
108
109 Aws::String m_versionId;
110
112 bool m_authenticationTokenHasBeenSet = false;
113 bool m_documentIdHasBeenSet = false;
114 bool m_versionIdHasBeenSet = false;
115 bool m_versionStatusHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace WorkDocs
120} // namespace Aws
AWS_WORKDOCS_API Aws::String SerializePayload() const override
UpdateDocumentVersionRequest & WithDocumentId(DocumentIdT &&value)
UpdateDocumentVersionRequest & WithAuthenticationToken(AuthenticationTokenT &&value)
AWS_WORKDOCS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateDocumentVersionRequest & WithVersionStatus(DocumentVersionStatus value)
UpdateDocumentVersionRequest & WithVersionId(VersionIdT &&value)
AWS_WORKDOCS_API UpdateDocumentVersionRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String