AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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:
25 AWS_WORKDOCS_API InitiateDocumentVersionUploadRequest() = 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 "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 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 InitiateDocumentVersionUploadRequest& WithAuthenticationToken(AuthenticationTokenT&& value) { SetAuthenticationToken(std::forward<AuthenticationTokenT>(value)); return *this;}
50
52
55 inline const Aws::String& GetId() const { return m_id; }
56 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
57 template<typename IdT = Aws::String>
58 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
59 template<typename IdT = Aws::String>
60 InitiateDocumentVersionUploadRequest& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
62
64
67 inline const Aws::String& GetName() const { return m_name; }
68 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
69 template<typename NameT = Aws::String>
70 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
71 template<typename NameT = Aws::String>
72 InitiateDocumentVersionUploadRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
74
76
79 inline const Aws::Utils::DateTime& GetContentCreatedTimestamp() const { return m_contentCreatedTimestamp; }
80 inline bool ContentCreatedTimestampHasBeenSet() const { return m_contentCreatedTimestampHasBeenSet; }
81 template<typename ContentCreatedTimestampT = Aws::Utils::DateTime>
82 void SetContentCreatedTimestamp(ContentCreatedTimestampT&& value) { m_contentCreatedTimestampHasBeenSet = true; m_contentCreatedTimestamp = std::forward<ContentCreatedTimestampT>(value); }
83 template<typename ContentCreatedTimestampT = Aws::Utils::DateTime>
84 InitiateDocumentVersionUploadRequest& WithContentCreatedTimestamp(ContentCreatedTimestampT&& value) { SetContentCreatedTimestamp(std::forward<ContentCreatedTimestampT>(value)); return *this;}
86
88
91 inline const Aws::Utils::DateTime& GetContentModifiedTimestamp() const { return m_contentModifiedTimestamp; }
92 inline bool ContentModifiedTimestampHasBeenSet() const { return m_contentModifiedTimestampHasBeenSet; }
93 template<typename ContentModifiedTimestampT = Aws::Utils::DateTime>
94 void SetContentModifiedTimestamp(ContentModifiedTimestampT&& value) { m_contentModifiedTimestampHasBeenSet = true; m_contentModifiedTimestamp = std::forward<ContentModifiedTimestampT>(value); }
95 template<typename ContentModifiedTimestampT = Aws::Utils::DateTime>
96 InitiateDocumentVersionUploadRequest& WithContentModifiedTimestamp(ContentModifiedTimestampT&& value) { SetContentModifiedTimestamp(std::forward<ContentModifiedTimestampT>(value)); return *this;}
98
100
103 inline const Aws::String& GetContentType() const { return m_contentType; }
104 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
105 template<typename ContentTypeT = Aws::String>
106 void SetContentType(ContentTypeT&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::forward<ContentTypeT>(value); }
107 template<typename ContentTypeT = Aws::String>
108 InitiateDocumentVersionUploadRequest& WithContentType(ContentTypeT&& value) { SetContentType(std::forward<ContentTypeT>(value)); return *this;}
110
112
115 inline long long GetDocumentSizeInBytes() const { return m_documentSizeInBytes; }
116 inline bool DocumentSizeInBytesHasBeenSet() const { return m_documentSizeInBytesHasBeenSet; }
117 inline void SetDocumentSizeInBytes(long long value) { m_documentSizeInBytesHasBeenSet = true; m_documentSizeInBytes = value; }
120
122
125 inline const Aws::String& GetParentFolderId() const { return m_parentFolderId; }
126 inline bool ParentFolderIdHasBeenSet() const { return m_parentFolderIdHasBeenSet; }
127 template<typename ParentFolderIdT = Aws::String>
128 void SetParentFolderId(ParentFolderIdT&& value) { m_parentFolderIdHasBeenSet = true; m_parentFolderId = std::forward<ParentFolderIdT>(value); }
129 template<typename ParentFolderIdT = Aws::String>
130 InitiateDocumentVersionUploadRequest& WithParentFolderId(ParentFolderIdT&& value) { SetParentFolderId(std::forward<ParentFolderIdT>(value)); return *this;}
132 private:
133
134 Aws::String m_authenticationToken;
135 bool m_authenticationTokenHasBeenSet = false;
136
137 Aws::String m_id;
138 bool m_idHasBeenSet = false;
139
140 Aws::String m_name;
141 bool m_nameHasBeenSet = false;
142
143 Aws::Utils::DateTime m_contentCreatedTimestamp{};
144 bool m_contentCreatedTimestampHasBeenSet = false;
145
146 Aws::Utils::DateTime m_contentModifiedTimestamp{};
147 bool m_contentModifiedTimestampHasBeenSet = false;
148
149 Aws::String m_contentType;
150 bool m_contentTypeHasBeenSet = false;
151
152 long long m_documentSizeInBytes{0};
153 bool m_documentSizeInBytesHasBeenSet = false;
154
155 Aws::String m_parentFolderId;
156 bool m_parentFolderIdHasBeenSet = false;
157 };
158
159} // namespace Model
160} // namespace WorkDocs
161} // namespace Aws
AWS_WORKDOCS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
InitiateDocumentVersionUploadRequest & WithParentFolderId(ParentFolderIdT &&value)
InitiateDocumentVersionUploadRequest & WithContentModifiedTimestamp(ContentModifiedTimestampT &&value)
InitiateDocumentVersionUploadRequest & WithContentCreatedTimestamp(ContentCreatedTimestampT &&value)
AWS_WORKDOCS_API Aws::String SerializePayload() const override
InitiateDocumentVersionUploadRequest & WithDocumentSizeInBytes(long long value)
InitiateDocumentVersionUploadRequest & WithContentType(ContentTypeT &&value)
InitiateDocumentVersionUploadRequest & WithAuthenticationToken(AuthenticationTokenT &&value)
InitiateDocumentVersionUploadRequest & WithName(NameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String