AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpdateDocumentVersionRequest.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/workdocs/model/DocumentVersionStatus.h>
11#include <utility>
12
13namespace Aws
14{
15namespace WorkDocs
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_WORKDOCS_API UpdateDocumentVersionRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateDocumentVersion"; }
32
33 AWS_WORKDOCS_API Aws::String SerializePayload() const override;
34
36
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) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::forward<AuthenticationTokenT>(value); }
47 template<typename AuthenticationTokenT = Aws::String>
48 UpdateDocumentVersionRequest& WithAuthenticationToken(AuthenticationTokenT&& value) { SetAuthenticationToken(std::forward<AuthenticationTokenT>(value)); return *this;}
50
52
55 inline const Aws::String& GetDocumentId() const { return m_documentId; }
56 inline bool DocumentIdHasBeenSet() const { return m_documentIdHasBeenSet; }
57 template<typename DocumentIdT = Aws::String>
58 void SetDocumentId(DocumentIdT&& value) { m_documentIdHasBeenSet = true; m_documentId = std::forward<DocumentIdT>(value); }
59 template<typename DocumentIdT = Aws::String>
60 UpdateDocumentVersionRequest& WithDocumentId(DocumentIdT&& value) { SetDocumentId(std::forward<DocumentIdT>(value)); return *this;}
62
64
67 inline const Aws::String& GetVersionId() const { return m_versionId; }
68 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
69 template<typename VersionIdT = Aws::String>
70 void SetVersionId(VersionIdT&& value) { m_versionIdHasBeenSet = true; m_versionId = std::forward<VersionIdT>(value); }
71 template<typename VersionIdT = Aws::String>
72 UpdateDocumentVersionRequest& WithVersionId(VersionIdT&& value) { SetVersionId(std::forward<VersionIdT>(value)); return *this;}
74
76
79 inline DocumentVersionStatus GetVersionStatus() const { return m_versionStatus; }
80 inline bool VersionStatusHasBeenSet() const { return m_versionStatusHasBeenSet; }
81 inline void SetVersionStatus(DocumentVersionStatus value) { m_versionStatusHasBeenSet = true; m_versionStatus = value; }
84 private:
85
86 Aws::String m_authenticationToken;
87 bool m_authenticationTokenHasBeenSet = false;
88
89 Aws::String m_documentId;
90 bool m_documentIdHasBeenSet = false;
91
92 Aws::String m_versionId;
93 bool m_versionIdHasBeenSet = false;
94
96 bool m_versionStatusHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace WorkDocs
101} // 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