AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InitiateDocumentVersionUploadRequest.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/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace WorkDocs
16{
17namespace 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_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); }
52
54
57 inline const Aws::String& GetId() const{ return m_id; }
58 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
59 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
60 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
61 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
62 inline InitiateDocumentVersionUploadRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
63 inline InitiateDocumentVersionUploadRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
64 inline InitiateDocumentVersionUploadRequest& WithId(const char* value) { SetId(value); return *this;}
66
68
71 inline const Aws::String& GetName() const{ return m_name; }
72 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
73 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
74 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
75 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
76 inline InitiateDocumentVersionUploadRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
77 inline InitiateDocumentVersionUploadRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
78 inline InitiateDocumentVersionUploadRequest& WithName(const char* value) { SetName(value); return *this;}
80
82
85 inline const Aws::Utils::DateTime& GetContentCreatedTimestamp() const{ return m_contentCreatedTimestamp; }
86 inline bool ContentCreatedTimestampHasBeenSet() const { return m_contentCreatedTimestampHasBeenSet; }
87 inline void SetContentCreatedTimestamp(const Aws::Utils::DateTime& value) { m_contentCreatedTimestampHasBeenSet = true; m_contentCreatedTimestamp = value; }
88 inline void SetContentCreatedTimestamp(Aws::Utils::DateTime&& value) { m_contentCreatedTimestampHasBeenSet = true; m_contentCreatedTimestamp = std::move(value); }
92
94
97 inline const Aws::Utils::DateTime& GetContentModifiedTimestamp() const{ return m_contentModifiedTimestamp; }
98 inline bool ContentModifiedTimestampHasBeenSet() const { return m_contentModifiedTimestampHasBeenSet; }
99 inline void SetContentModifiedTimestamp(const Aws::Utils::DateTime& value) { m_contentModifiedTimestampHasBeenSet = true; m_contentModifiedTimestamp = value; }
100 inline void SetContentModifiedTimestamp(Aws::Utils::DateTime&& value) { m_contentModifiedTimestampHasBeenSet = true; m_contentModifiedTimestamp = std::move(value); }
104
106
109 inline const Aws::String& GetContentType() const{ return m_contentType; }
110 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
111 inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
112 inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); }
113 inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); }
115 inline InitiateDocumentVersionUploadRequest& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
116 inline InitiateDocumentVersionUploadRequest& WithContentType(const char* value) { SetContentType(value); return *this;}
118
120
123 inline long long GetDocumentSizeInBytes() const{ return m_documentSizeInBytes; }
124 inline bool DocumentSizeInBytesHasBeenSet() const { return m_documentSizeInBytesHasBeenSet; }
125 inline void SetDocumentSizeInBytes(long long value) { m_documentSizeInBytesHasBeenSet = true; m_documentSizeInBytes = value; }
128
130
133 inline const Aws::String& GetParentFolderId() const{ return m_parentFolderId; }
134 inline bool ParentFolderIdHasBeenSet() const { return m_parentFolderIdHasBeenSet; }
135 inline void SetParentFolderId(const Aws::String& value) { m_parentFolderIdHasBeenSet = true; m_parentFolderId = value; }
136 inline void SetParentFolderId(Aws::String&& value) { m_parentFolderIdHasBeenSet = true; m_parentFolderId = std::move(value); }
137 inline void SetParentFolderId(const char* value) { m_parentFolderIdHasBeenSet = true; m_parentFolderId.assign(value); }
140 inline InitiateDocumentVersionUploadRequest& WithParentFolderId(const char* value) { SetParentFolderId(value); return *this;}
142 private:
143
144 Aws::String m_authenticationToken;
145 bool m_authenticationTokenHasBeenSet = false;
146
147 Aws::String m_id;
148 bool m_idHasBeenSet = false;
149
150 Aws::String m_name;
151 bool m_nameHasBeenSet = false;
152
153 Aws::Utils::DateTime m_contentCreatedTimestamp;
154 bool m_contentCreatedTimestampHasBeenSet = false;
155
156 Aws::Utils::DateTime m_contentModifiedTimestamp;
157 bool m_contentModifiedTimestampHasBeenSet = false;
158
159 Aws::String m_contentType;
160 bool m_contentTypeHasBeenSet = false;
161
162 long long m_documentSizeInBytes;
163 bool m_documentSizeInBytesHasBeenSet = false;
164
165 Aws::String m_parentFolderId;
166 bool m_parentFolderIdHasBeenSet = false;
167 };
168
169} // namespace Model
170} // namespace WorkDocs
171} // namespace Aws
InitiateDocumentVersionUploadRequest & WithName(const Aws::String &value)
InitiateDocumentVersionUploadRequest & WithContentModifiedTimestamp(const Aws::Utils::DateTime &value)
InitiateDocumentVersionUploadRequest & WithAuthenticationToken(const Aws::String &value)
AWS_WORKDOCS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
InitiateDocumentVersionUploadRequest & WithContentType(const Aws::String &value)
InitiateDocumentVersionUploadRequest & WithParentFolderId(Aws::String &&value)
InitiateDocumentVersionUploadRequest & WithName(Aws::String &&value)
InitiateDocumentVersionUploadRequest & WithParentFolderId(const char *value)
InitiateDocumentVersionUploadRequest & WithAuthenticationToken(Aws::String &&value)
InitiateDocumentVersionUploadRequest & WithContentModifiedTimestamp(Aws::Utils::DateTime &&value)
InitiateDocumentVersionUploadRequest & WithContentCreatedTimestamp(const Aws::Utils::DateTime &value)
InitiateDocumentVersionUploadRequest & WithContentCreatedTimestamp(Aws::Utils::DateTime &&value)
AWS_WORKDOCS_API Aws::String SerializePayload() const override
InitiateDocumentVersionUploadRequest & WithContentType(const char *value)
InitiateDocumentVersionUploadRequest & WithDocumentSizeInBytes(long long value)
InitiateDocumentVersionUploadRequest & WithName(const char *value)
InitiateDocumentVersionUploadRequest & WithParentFolderId(const Aws::String &value)
InitiateDocumentVersionUploadRequest & WithId(const Aws::String &value)
InitiateDocumentVersionUploadRequest & WithId(Aws::String &&value)
InitiateDocumentVersionUploadRequest & WithContentType(Aws::String &&value)
InitiateDocumentVersionUploadRequest & WithId(const char *value)
InitiateDocumentVersionUploadRequest & WithAuthenticationToken(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String