AWS SDK for C++  1.9.129
AWS SDK for C++
UpdateDocumentVersionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace WorkDocs
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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::String SerializePayload() const override;
34 
36 
37 
42  inline const Aws::String& GetAuthenticationToken() const{ return m_authenticationToken; }
43 
48  inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
49 
54  inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
55 
60  inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
61 
66  inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
67 
72  inline UpdateDocumentVersionRequest& WithAuthenticationToken(const Aws::String& value) { SetAuthenticationToken(value); return *this;}
73 
78  inline UpdateDocumentVersionRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;}
79 
84  inline UpdateDocumentVersionRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
85 
86 
90  inline const Aws::String& GetDocumentId() const{ return m_documentId; }
91 
95  inline bool DocumentIdHasBeenSet() const { return m_documentIdHasBeenSet; }
96 
100  inline void SetDocumentId(const Aws::String& value) { m_documentIdHasBeenSet = true; m_documentId = value; }
101 
105  inline void SetDocumentId(Aws::String&& value) { m_documentIdHasBeenSet = true; m_documentId = std::move(value); }
106 
110  inline void SetDocumentId(const char* value) { m_documentIdHasBeenSet = true; m_documentId.assign(value); }
111 
115  inline UpdateDocumentVersionRequest& WithDocumentId(const Aws::String& value) { SetDocumentId(value); return *this;}
116 
120  inline UpdateDocumentVersionRequest& WithDocumentId(Aws::String&& value) { SetDocumentId(std::move(value)); return *this;}
121 
125  inline UpdateDocumentVersionRequest& WithDocumentId(const char* value) { SetDocumentId(value); return *this;}
126 
127 
131  inline const Aws::String& GetVersionId() const{ return m_versionId; }
132 
136  inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
137 
141  inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
142 
146  inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); }
147 
151  inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
152 
156  inline UpdateDocumentVersionRequest& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
157 
161  inline UpdateDocumentVersionRequest& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
162 
166  inline UpdateDocumentVersionRequest& WithVersionId(const char* value) { SetVersionId(value); return *this;}
167 
168 
172  inline const DocumentVersionStatus& GetVersionStatus() const{ return m_versionStatus; }
173 
177  inline bool VersionStatusHasBeenSet() const { return m_versionStatusHasBeenSet; }
178 
182  inline void SetVersionStatus(const DocumentVersionStatus& value) { m_versionStatusHasBeenSet = true; m_versionStatus = value; }
183 
187  inline void SetVersionStatus(DocumentVersionStatus&& value) { m_versionStatusHasBeenSet = true; m_versionStatus = std::move(value); }
188 
192  inline UpdateDocumentVersionRequest& WithVersionStatus(const DocumentVersionStatus& value) { SetVersionStatus(value); return *this;}
193 
197  inline UpdateDocumentVersionRequest& WithVersionStatus(DocumentVersionStatus&& value) { SetVersionStatus(std::move(value)); return *this;}
198 
199  private:
200 
201  Aws::String m_authenticationToken;
202  bool m_authenticationTokenHasBeenSet;
203 
204  Aws::String m_documentId;
205  bool m_documentIdHasBeenSet;
206 
207  Aws::String m_versionId;
208  bool m_versionIdHasBeenSet;
209 
210  DocumentVersionStatus m_versionStatus;
211  bool m_versionStatusHasBeenSet;
212  };
213 
214 } // namespace Model
215 } // namespace WorkDocs
216 } // namespace Aws
Aws::WorkDocs::Model::UpdateDocumentVersionRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::WorkDocs::Model::DocumentVersionStatus
DocumentVersionStatus
Definition: DocumentVersionStatus.h:17
DocumentVersionStatus.h
Aws::WorkDocs::Model::UpdateDocumentVersionRequest::UpdateDocumentVersionRequest
UpdateDocumentVersionRequest()
Aws::WorkDocs::Model::UpdateDocumentVersionRequest::VersionIdHasBeenSet
bool VersionIdHasBeenSet() const
Definition: UpdateDocumentVersionRequest.h:136
Aws::WorkDocs::Model::UpdateDocumentVersionRequest::GetVersionId
const Aws::String & GetVersionId() const
Definition: UpdateDocumentVersionRequest.h:131
Aws::WorkDocs::WorkDocsRequest
Definition: WorkDocsRequest.h:17
Aws::WorkDocs::Model::UpdateDocumentVersionRequest::WithVersionId
UpdateDocumentVersionRequest & WithVersionId(const char *value)
Definition: UpdateDocumentVersionRequest.h:166
Aws::WorkDocs::Model::UpdateDocumentVersionRequest
Definition: UpdateDocumentVersionRequest.h:23
Aws::WorkDocs::Model::UpdateDocumentVersionRequest::SetVersionId
void SetVersionId(const char *value)
Definition: UpdateDocumentVersionRequest.h:151
Aws::WorkDocs::Model::UpdateDocumentVersionRequest::SetVersionId
void SetVersionId(const Aws::String &value)
Definition: UpdateDocumentVersionRequest.h:141
Aws::WorkDocs::Model::UpdateDocumentVersionRequest::SetVersionStatus
void SetVersionStatus(const DocumentVersionStatus &value)
Definition: UpdateDocumentVersionRequest.h:182
Aws::WorkDocs::Model::UpdateDocumentVersionRequest::WithVersionStatus
UpdateDocumentVersionRequest & WithVersionStatus(DocumentVersionStatus &&value)
Definition: UpdateDocumentVersionRequest.h:197
Aws::WorkDocs::Model::UpdateDocumentVersionRequest::WithVersionId
UpdateDocumentVersionRequest & WithVersionId(const Aws::String &value)
Definition: UpdateDocumentVersionRequest.h:156
Aws::WorkDocs::Model::UpdateDocumentVersionRequest::DocumentIdHasBeenSet
bool DocumentIdHasBeenSet() const
Definition: UpdateDocumentVersionRequest.h:95
Aws::WorkDocs::Model::UpdateDocumentVersionRequest::WithAuthenticationToken
UpdateDocumentVersionRequest & WithAuthenticationToken(const char *value)
Definition: UpdateDocumentVersionRequest.h:84
Aws::WorkDocs::Model::UpdateDocumentVersionRequest::SetAuthenticationToken
void SetAuthenticationToken(Aws::String &&value)
Definition: UpdateDocumentVersionRequest.h:60
Aws::WorkDocs::Model::UpdateDocumentVersionRequest::WithVersionStatus
UpdateDocumentVersionRequest & WithVersionStatus(const DocumentVersionStatus &value)
Definition: UpdateDocumentVersionRequest.h:192
Aws::WorkDocs::Model::UpdateDocumentVersionRequest::SetDocumentId
void SetDocumentId(const char *value)
Definition: UpdateDocumentVersionRequest.h:110
Aws::WorkDocs::Model::UpdateDocumentVersionRequest::GetDocumentId
const Aws::String & GetDocumentId() const
Definition: UpdateDocumentVersionRequest.h:90
Aws::WorkDocs::Model::UpdateDocumentVersionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WorkDocs::Model::UpdateDocumentVersionRequest::WithAuthenticationToken
UpdateDocumentVersionRequest & WithAuthenticationToken(Aws::String &&value)
Definition: UpdateDocumentVersionRequest.h:78
Aws::WorkDocs::Model::UpdateDocumentVersionRequest::SetAuthenticationToken
void SetAuthenticationToken(const char *value)
Definition: UpdateDocumentVersionRequest.h:66
Aws::WorkDocs::Model::UpdateDocumentVersionRequest::WithDocumentId
UpdateDocumentVersionRequest & WithDocumentId(const Aws::String &value)
Definition: UpdateDocumentVersionRequest.h:115
WorkDocs_EXPORTS.h
Aws::WorkDocs::Model::UpdateDocumentVersionRequest::SetAuthenticationToken
void SetAuthenticationToken(const Aws::String &value)
Definition: UpdateDocumentVersionRequest.h:54
AWSString.h
Aws::WorkDocs::Model::UpdateDocumentVersionRequest::GetVersionStatus
const DocumentVersionStatus & GetVersionStatus() const
Definition: UpdateDocumentVersionRequest.h:172
AWS_WORKDOCS_API
#define AWS_WORKDOCS_API
Definition: WorkDocs_EXPORTS.h:28
Aws::WorkDocs::Model::UpdateDocumentVersionRequest::SetDocumentId
void SetDocumentId(Aws::String &&value)
Definition: UpdateDocumentVersionRequest.h:105
Aws::WorkDocs::Model::UpdateDocumentVersionRequest::VersionStatusHasBeenSet
bool VersionStatusHasBeenSet() const
Definition: UpdateDocumentVersionRequest.h:177
Aws
Definition: AccessManagementClient.h:15
Aws::WorkDocs::Model::UpdateDocumentVersionRequest::WithAuthenticationToken
UpdateDocumentVersionRequest & WithAuthenticationToken(const Aws::String &value)
Definition: UpdateDocumentVersionRequest.h:72
Aws::WorkDocs::Model::UpdateDocumentVersionRequest::SetDocumentId
void SetDocumentId(const Aws::String &value)
Definition: UpdateDocumentVersionRequest.h:100
WorkDocsRequest.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WorkDocs::Model::UpdateDocumentVersionRequest::GetAuthenticationToken
const Aws::String & GetAuthenticationToken() const
Definition: UpdateDocumentVersionRequest.h:42
Aws::WorkDocs::Model::UpdateDocumentVersionRequest::WithVersionId
UpdateDocumentVersionRequest & WithVersionId(Aws::String &&value)
Definition: UpdateDocumentVersionRequest.h:161
Aws::WorkDocs::Model::UpdateDocumentVersionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateDocumentVersionRequest.h:31
Aws::WorkDocs::Model::UpdateDocumentVersionRequest::SetVersionStatus
void SetVersionStatus(DocumentVersionStatus &&value)
Definition: UpdateDocumentVersionRequest.h:187
Aws::WorkDocs::Model::UpdateDocumentVersionRequest::WithDocumentId
UpdateDocumentVersionRequest & WithDocumentId(const char *value)
Definition: UpdateDocumentVersionRequest.h:125
Aws::WorkDocs::Model::UpdateDocumentVersionRequest::AuthenticationTokenHasBeenSet
bool AuthenticationTokenHasBeenSet() const
Definition: UpdateDocumentVersionRequest.h:48
Aws::WorkDocs::Model::UpdateDocumentVersionRequest::WithDocumentId
UpdateDocumentVersionRequest & WithDocumentId(Aws::String &&value)
Definition: UpdateDocumentVersionRequest.h:120
Aws::WorkDocs::Model::UpdateDocumentVersionRequest::SetVersionId
void SetVersionId(Aws::String &&value)
Definition: UpdateDocumentVersionRequest.h:146