AWS SDK for C++  1.9.125
AWS SDK for C++
InitiateDocumentVersionUploadRequest.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 "InitiateDocumentVersionUpload"; }
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 InitiateDocumentVersionUploadRequest& WithAuthenticationToken(const Aws::String& value) { SetAuthenticationToken(value); return *this;}
73 
78  inline InitiateDocumentVersionUploadRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;}
79 
84  inline InitiateDocumentVersionUploadRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
85 
86 
90  inline const Aws::String& GetId() const{ return m_id; }
91 
95  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
96 
100  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
101 
105  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
106 
110  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
111 
115  inline InitiateDocumentVersionUploadRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
116 
120  inline InitiateDocumentVersionUploadRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
121 
125  inline InitiateDocumentVersionUploadRequest& WithId(const char* value) { SetId(value); return *this;}
126 
127 
131  inline const Aws::String& GetName() const{ return m_name; }
132 
136  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
137 
141  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
142 
146  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
147 
151  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
152 
156  inline InitiateDocumentVersionUploadRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
157 
161  inline InitiateDocumentVersionUploadRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
162 
166  inline InitiateDocumentVersionUploadRequest& WithName(const char* value) { SetName(value); return *this;}
167 
168 
172  inline const Aws::Utils::DateTime& GetContentCreatedTimestamp() const{ return m_contentCreatedTimestamp; }
173 
177  inline bool ContentCreatedTimestampHasBeenSet() const { return m_contentCreatedTimestampHasBeenSet; }
178 
182  inline void SetContentCreatedTimestamp(const Aws::Utils::DateTime& value) { m_contentCreatedTimestampHasBeenSet = true; m_contentCreatedTimestamp = value; }
183 
187  inline void SetContentCreatedTimestamp(Aws::Utils::DateTime&& value) { m_contentCreatedTimestampHasBeenSet = true; m_contentCreatedTimestamp = std::move(value); }
188 
192  inline InitiateDocumentVersionUploadRequest& WithContentCreatedTimestamp(const Aws::Utils::DateTime& value) { SetContentCreatedTimestamp(value); return *this;}
193 
197  inline InitiateDocumentVersionUploadRequest& WithContentCreatedTimestamp(Aws::Utils::DateTime&& value) { SetContentCreatedTimestamp(std::move(value)); return *this;}
198 
199 
203  inline const Aws::Utils::DateTime& GetContentModifiedTimestamp() const{ return m_contentModifiedTimestamp; }
204 
208  inline bool ContentModifiedTimestampHasBeenSet() const { return m_contentModifiedTimestampHasBeenSet; }
209 
213  inline void SetContentModifiedTimestamp(const Aws::Utils::DateTime& value) { m_contentModifiedTimestampHasBeenSet = true; m_contentModifiedTimestamp = value; }
214 
218  inline void SetContentModifiedTimestamp(Aws::Utils::DateTime&& value) { m_contentModifiedTimestampHasBeenSet = true; m_contentModifiedTimestamp = std::move(value); }
219 
223  inline InitiateDocumentVersionUploadRequest& WithContentModifiedTimestamp(const Aws::Utils::DateTime& value) { SetContentModifiedTimestamp(value); return *this;}
224 
228  inline InitiateDocumentVersionUploadRequest& WithContentModifiedTimestamp(Aws::Utils::DateTime&& value) { SetContentModifiedTimestamp(std::move(value)); return *this;}
229 
230 
234  inline const Aws::String& GetContentType() const{ return m_contentType; }
235 
239  inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
240 
244  inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
245 
249  inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); }
250 
254  inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); }
255 
259  inline InitiateDocumentVersionUploadRequest& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
260 
264  inline InitiateDocumentVersionUploadRequest& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
265 
269  inline InitiateDocumentVersionUploadRequest& WithContentType(const char* value) { SetContentType(value); return *this;}
270 
271 
275  inline long long GetDocumentSizeInBytes() const{ return m_documentSizeInBytes; }
276 
280  inline bool DocumentSizeInBytesHasBeenSet() const { return m_documentSizeInBytesHasBeenSet; }
281 
285  inline void SetDocumentSizeInBytes(long long value) { m_documentSizeInBytesHasBeenSet = true; m_documentSizeInBytes = value; }
286 
290  inline InitiateDocumentVersionUploadRequest& WithDocumentSizeInBytes(long long value) { SetDocumentSizeInBytes(value); return *this;}
291 
292 
296  inline const Aws::String& GetParentFolderId() const{ return m_parentFolderId; }
297 
301  inline bool ParentFolderIdHasBeenSet() const { return m_parentFolderIdHasBeenSet; }
302 
306  inline void SetParentFolderId(const Aws::String& value) { m_parentFolderIdHasBeenSet = true; m_parentFolderId = value; }
307 
311  inline void SetParentFolderId(Aws::String&& value) { m_parentFolderIdHasBeenSet = true; m_parentFolderId = std::move(value); }
312 
316  inline void SetParentFolderId(const char* value) { m_parentFolderIdHasBeenSet = true; m_parentFolderId.assign(value); }
317 
321  inline InitiateDocumentVersionUploadRequest& WithParentFolderId(const Aws::String& value) { SetParentFolderId(value); return *this;}
322 
326  inline InitiateDocumentVersionUploadRequest& WithParentFolderId(Aws::String&& value) { SetParentFolderId(std::move(value)); return *this;}
327 
331  inline InitiateDocumentVersionUploadRequest& WithParentFolderId(const char* value) { SetParentFolderId(value); return *this;}
332 
333  private:
334 
335  Aws::String m_authenticationToken;
336  bool m_authenticationTokenHasBeenSet;
337 
338  Aws::String m_id;
339  bool m_idHasBeenSet;
340 
341  Aws::String m_name;
342  bool m_nameHasBeenSet;
343 
344  Aws::Utils::DateTime m_contentCreatedTimestamp;
345  bool m_contentCreatedTimestampHasBeenSet;
346 
347  Aws::Utils::DateTime m_contentModifiedTimestamp;
348  bool m_contentModifiedTimestampHasBeenSet;
349 
350  Aws::String m_contentType;
351  bool m_contentTypeHasBeenSet;
352 
353  long long m_documentSizeInBytes;
354  bool m_documentSizeInBytesHasBeenSet;
355 
356  Aws::String m_parentFolderId;
357  bool m_parentFolderIdHasBeenSet;
358  };
359 
360 } // namespace Model
361 } // namespace WorkDocs
362 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::DocumentSizeInBytesHasBeenSet
bool DocumentSizeInBytesHasBeenSet() const
Definition: InitiateDocumentVersionUploadRequest.h:280
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::WithId
InitiateDocumentVersionUploadRequest & WithId(const char *value)
Definition: InitiateDocumentVersionUploadRequest.h:125
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::SetAuthenticationToken
void SetAuthenticationToken(Aws::String &&value)
Definition: InitiateDocumentVersionUploadRequest.h:60
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::WithAuthenticationToken
InitiateDocumentVersionUploadRequest & WithAuthenticationToken(const Aws::String &value)
Definition: InitiateDocumentVersionUploadRequest.h:72
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: InitiateDocumentVersionUploadRequest.h:136
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::GetContentModifiedTimestamp
const Aws::Utils::DateTime & GetContentModifiedTimestamp() const
Definition: InitiateDocumentVersionUploadRequest.h:203
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::GetDocumentSizeInBytes
long long GetDocumentSizeInBytes() const
Definition: InitiateDocumentVersionUploadRequest.h:275
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::SetName
void SetName(const char *value)
Definition: InitiateDocumentVersionUploadRequest.h:151
Aws::WorkDocs::WorkDocsRequest
Definition: WorkDocsRequest.h:17
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::SetId
void SetId(const char *value)
Definition: InitiateDocumentVersionUploadRequest.h:110
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::IdHasBeenSet
bool IdHasBeenSet() const
Definition: InitiateDocumentVersionUploadRequest.h:95
DateTime.h
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::SetContentType
void SetContentType(Aws::String &&value)
Definition: InitiateDocumentVersionUploadRequest.h:249
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::WithDocumentSizeInBytes
InitiateDocumentVersionUploadRequest & WithDocumentSizeInBytes(long long value)
Definition: InitiateDocumentVersionUploadRequest.h:290
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::SetContentCreatedTimestamp
void SetContentCreatedTimestamp(Aws::Utils::DateTime &&value)
Definition: InitiateDocumentVersionUploadRequest.h:187
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::SetParentFolderId
void SetParentFolderId(const Aws::String &value)
Definition: InitiateDocumentVersionUploadRequest.h:306
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::WithContentModifiedTimestamp
InitiateDocumentVersionUploadRequest & WithContentModifiedTimestamp(Aws::Utils::DateTime &&value)
Definition: InitiateDocumentVersionUploadRequest.h:228
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::ParentFolderIdHasBeenSet
bool ParentFolderIdHasBeenSet() const
Definition: InitiateDocumentVersionUploadRequest.h:301
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::SetName
void SetName(Aws::String &&value)
Definition: InitiateDocumentVersionUploadRequest.h:146
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::WithAuthenticationToken
InitiateDocumentVersionUploadRequest & WithAuthenticationToken(Aws::String &&value)
Definition: InitiateDocumentVersionUploadRequest.h:78
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::ContentModifiedTimestampHasBeenSet
bool ContentModifiedTimestampHasBeenSet() const
Definition: InitiateDocumentVersionUploadRequest.h:208
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::ContentTypeHasBeenSet
bool ContentTypeHasBeenSet() const
Definition: InitiateDocumentVersionUploadRequest.h:239
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::WithContentType
InitiateDocumentVersionUploadRequest & WithContentType(const char *value)
Definition: InitiateDocumentVersionUploadRequest.h:269
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::SetParentFolderId
void SetParentFolderId(const char *value)
Definition: InitiateDocumentVersionUploadRequest.h:316
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::WithContentType
InitiateDocumentVersionUploadRequest & WithContentType(Aws::String &&value)
Definition: InitiateDocumentVersionUploadRequest.h:264
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::WithParentFolderId
InitiateDocumentVersionUploadRequest & WithParentFolderId(const Aws::String &value)
Definition: InitiateDocumentVersionUploadRequest.h:321
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::SetContentCreatedTimestamp
void SetContentCreatedTimestamp(const Aws::Utils::DateTime &value)
Definition: InitiateDocumentVersionUploadRequest.h:182
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::GetParentFolderId
const Aws::String & GetParentFolderId() const
Definition: InitiateDocumentVersionUploadRequest.h:296
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::SetContentType
void SetContentType(const char *value)
Definition: InitiateDocumentVersionUploadRequest.h:254
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::SetContentModifiedTimestamp
void SetContentModifiedTimestamp(Aws::Utils::DateTime &&value)
Definition: InitiateDocumentVersionUploadRequest.h:218
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::WithName
InitiateDocumentVersionUploadRequest & WithName(Aws::String &&value)
Definition: InitiateDocumentVersionUploadRequest.h:161
WorkDocs_EXPORTS.h
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::WithContentCreatedTimestamp
InitiateDocumentVersionUploadRequest & WithContentCreatedTimestamp(Aws::Utils::DateTime &&value)
Definition: InitiateDocumentVersionUploadRequest.h:197
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::SetId
void SetId(const Aws::String &value)
Definition: InitiateDocumentVersionUploadRequest.h:100
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::WithAuthenticationToken
InitiateDocumentVersionUploadRequest & WithAuthenticationToken(const char *value)
Definition: InitiateDocumentVersionUploadRequest.h:84
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::GetAuthenticationToken
const Aws::String & GetAuthenticationToken() const
Definition: InitiateDocumentVersionUploadRequest.h:42
AWSString.h
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::InitiateDocumentVersionUploadRequest
InitiateDocumentVersionUploadRequest()
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::AuthenticationTokenHasBeenSet
bool AuthenticationTokenHasBeenSet() const
Definition: InitiateDocumentVersionUploadRequest.h:48
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::WithContentCreatedTimestamp
InitiateDocumentVersionUploadRequest & WithContentCreatedTimestamp(const Aws::Utils::DateTime &value)
Definition: InitiateDocumentVersionUploadRequest.h:192
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::WithContentModifiedTimestamp
InitiateDocumentVersionUploadRequest & WithContentModifiedTimestamp(const Aws::Utils::DateTime &value)
Definition: InitiateDocumentVersionUploadRequest.h:223
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::SetAuthenticationToken
void SetAuthenticationToken(const char *value)
Definition: InitiateDocumentVersionUploadRequest.h:66
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::SetId
void SetId(Aws::String &&value)
Definition: InitiateDocumentVersionUploadRequest.h:105
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::GetId
const Aws::String & GetId() const
Definition: InitiateDocumentVersionUploadRequest.h:90
AWS_WORKDOCS_API
#define AWS_WORKDOCS_API
Definition: WorkDocs_EXPORTS.h:28
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::SetName
void SetName(const Aws::String &value)
Definition: InitiateDocumentVersionUploadRequest.h:141
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::WithId
InitiateDocumentVersionUploadRequest & WithId(const Aws::String &value)
Definition: InitiateDocumentVersionUploadRequest.h:115
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::SetContentModifiedTimestamp
void SetContentModifiedTimestamp(const Aws::Utils::DateTime &value)
Definition: InitiateDocumentVersionUploadRequest.h:213
Aws
Definition: AccessManagementClient.h:15
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::SetAuthenticationToken
void SetAuthenticationToken(const Aws::String &value)
Definition: InitiateDocumentVersionUploadRequest.h:54
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::GetName
const Aws::String & GetName() const
Definition: InitiateDocumentVersionUploadRequest.h:131
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::WithParentFolderId
InitiateDocumentVersionUploadRequest & WithParentFolderId(const char *value)
Definition: InitiateDocumentVersionUploadRequest.h:331
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::SetContentType
void SetContentType(const Aws::String &value)
Definition: InitiateDocumentVersionUploadRequest.h:244
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest
Definition: InitiateDocumentVersionUploadRequest.h:23
WorkDocsRequest.h
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::SetParentFolderId
void SetParentFolderId(Aws::String &&value)
Definition: InitiateDocumentVersionUploadRequest.h:311
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::WithParentFolderId
InitiateDocumentVersionUploadRequest & WithParentFolderId(Aws::String &&value)
Definition: InitiateDocumentVersionUploadRequest.h:326
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::WithName
InitiateDocumentVersionUploadRequest & WithName(const Aws::String &value)
Definition: InitiateDocumentVersionUploadRequest.h:156
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::WithId
InitiateDocumentVersionUploadRequest & WithId(Aws::String &&value)
Definition: InitiateDocumentVersionUploadRequest.h:120
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::ContentCreatedTimestampHasBeenSet
bool ContentCreatedTimestampHasBeenSet() const
Definition: InitiateDocumentVersionUploadRequest.h:177
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::GetContentCreatedTimestamp
const Aws::Utils::DateTime & GetContentCreatedTimestamp() const
Definition: InitiateDocumentVersionUploadRequest.h:172
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::GetContentType
const Aws::String & GetContentType() const
Definition: InitiateDocumentVersionUploadRequest.h:234
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: InitiateDocumentVersionUploadRequest.h:31
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::WithContentType
InitiateDocumentVersionUploadRequest & WithContentType(const Aws::String &value)
Definition: InitiateDocumentVersionUploadRequest.h:259
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::WithName
InitiateDocumentVersionUploadRequest & WithName(const char *value)
Definition: InitiateDocumentVersionUploadRequest.h:166
Aws::WorkDocs::Model::InitiateDocumentVersionUploadRequest::SetDocumentSizeInBytes
void SetDocumentSizeInBytes(long long value)
Definition: InitiateDocumentVersionUploadRequest.h:285