AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
46 inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
47 inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
50 inline UpdateDocumentVersionRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
52
54
57 inline const Aws::String& GetDocumentId() const{ return m_documentId; }
58 inline bool DocumentIdHasBeenSet() const { return m_documentIdHasBeenSet; }
59 inline void SetDocumentId(const Aws::String& value) { m_documentIdHasBeenSet = true; m_documentId = value; }
60 inline void SetDocumentId(Aws::String&& value) { m_documentIdHasBeenSet = true; m_documentId = std::move(value); }
61 inline void SetDocumentId(const char* value) { m_documentIdHasBeenSet = true; m_documentId.assign(value); }
62 inline UpdateDocumentVersionRequest& WithDocumentId(const Aws::String& value) { SetDocumentId(value); return *this;}
63 inline UpdateDocumentVersionRequest& WithDocumentId(Aws::String&& value) { SetDocumentId(std::move(value)); return *this;}
64 inline UpdateDocumentVersionRequest& WithDocumentId(const char* value) { SetDocumentId(value); return *this;}
66
68
71 inline const Aws::String& GetVersionId() const{ return m_versionId; }
72 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
73 inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
74 inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); }
75 inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
76 inline UpdateDocumentVersionRequest& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
77 inline UpdateDocumentVersionRequest& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
78 inline UpdateDocumentVersionRequest& WithVersionId(const char* value) { SetVersionId(value); return *this;}
80
82
85 inline const DocumentVersionStatus& GetVersionStatus() const{ return m_versionStatus; }
86 inline bool VersionStatusHasBeenSet() const { return m_versionStatusHasBeenSet; }
87 inline void SetVersionStatus(const DocumentVersionStatus& value) { m_versionStatusHasBeenSet = true; m_versionStatus = value; }
88 inline void SetVersionStatus(DocumentVersionStatus&& value) { m_versionStatusHasBeenSet = true; m_versionStatus = std::move(value); }
90 inline UpdateDocumentVersionRequest& WithVersionStatus(DocumentVersionStatus&& value) { SetVersionStatus(std::move(value)); return *this;}
92 private:
93
94 Aws::String m_authenticationToken;
95 bool m_authenticationTokenHasBeenSet = false;
96
97 Aws::String m_documentId;
98 bool m_documentIdHasBeenSet = false;
99
100 Aws::String m_versionId;
101 bool m_versionIdHasBeenSet = false;
102
103 DocumentVersionStatus m_versionStatus;
104 bool m_versionStatusHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace WorkDocs
109} // namespace Aws
UpdateDocumentVersionRequest & WithAuthenticationToken(Aws::String &&value)
UpdateDocumentVersionRequest & WithVersionStatus(const DocumentVersionStatus &value)
UpdateDocumentVersionRequest & WithVersionStatus(DocumentVersionStatus &&value)
void SetVersionStatus(const DocumentVersionStatus &value)
AWS_WORKDOCS_API Aws::String SerializePayload() const override
UpdateDocumentVersionRequest & WithDocumentId(Aws::String &&value)
UpdateDocumentVersionRequest & WithVersionId(const Aws::String &value)
UpdateDocumentVersionRequest & WithDocumentId(const Aws::String &value)
UpdateDocumentVersionRequest & WithVersionId(const char *value)
UpdateDocumentVersionRequest & WithAuthenticationToken(const Aws::String &value)
AWS_WORKDOCS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateDocumentVersionRequest & WithVersionId(Aws::String &&value)
UpdateDocumentVersionRequest & WithAuthenticationToken(const char *value)
UpdateDocumentVersionRequest & WithDocumentId(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String