AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
MultipartUpload.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/s3/S3_EXPORTS.h>
10#include <aws/s3/model/ChecksumAlgorithm.h>
11#include <aws/s3/model/ChecksumType.h>
12#include <aws/s3/model/Initiator.h>
13#include <aws/s3/model/Owner.h>
14#include <aws/s3/model/StorageClass.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Xml {
21class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace S3 {
25namespace Model {
26
34 public:
35 AWS_S3_API MultipartUpload() = default;
36 AWS_S3_API MultipartUpload(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40
42
45 inline const Aws::String& GetUploadId() const { return m_uploadId; }
46 inline bool UploadIdHasBeenSet() const { return m_uploadIdHasBeenSet; }
47 template <typename UploadIdT = Aws::String>
48 void SetUploadId(UploadIdT&& value) {
49 m_uploadIdHasBeenSet = true;
50 m_uploadId = std::forward<UploadIdT>(value);
51 }
52 template <typename UploadIdT = Aws::String>
53 MultipartUpload& WithUploadId(UploadIdT&& value) {
54 SetUploadId(std::forward<UploadIdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetKey() const { return m_key; }
64 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
65 template <typename KeyT = Aws::String>
66 void SetKey(KeyT&& value) {
67 m_keyHasBeenSet = true;
68 m_key = std::forward<KeyT>(value);
69 }
70 template <typename KeyT = Aws::String>
71 MultipartUpload& WithKey(KeyT&& value) {
72 SetKey(std::forward<KeyT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::Utils::DateTime& GetInitiated() const { return m_initiated; }
82 inline bool InitiatedHasBeenSet() const { return m_initiatedHasBeenSet; }
83 template <typename InitiatedT = Aws::Utils::DateTime>
84 void SetInitiated(InitiatedT&& value) {
85 m_initiatedHasBeenSet = true;
86 m_initiated = std::forward<InitiatedT>(value);
87 }
88 template <typename InitiatedT = Aws::Utils::DateTime>
89 MultipartUpload& WithInitiated(InitiatedT&& value) {
90 SetInitiated(std::forward<InitiatedT>(value));
91 return *this;
92 }
94
96
103 inline StorageClass GetStorageClass() const { return m_storageClass; }
104 inline bool StorageClassHasBeenSet() const { return m_storageClassHasBeenSet; }
105 inline void SetStorageClass(StorageClass value) {
106 m_storageClassHasBeenSet = true;
107 m_storageClass = value;
108 }
110 SetStorageClass(value);
111 return *this;
112 }
114
116
121 inline const Owner& GetOwner() const { return m_owner; }
122 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
123 template <typename OwnerT = Owner>
124 void SetOwner(OwnerT&& value) {
125 m_ownerHasBeenSet = true;
126 m_owner = std::forward<OwnerT>(value);
127 }
128 template <typename OwnerT = Owner>
129 MultipartUpload& WithOwner(OwnerT&& value) {
130 SetOwner(std::forward<OwnerT>(value));
131 return *this;
132 }
134
136
139 inline const Initiator& GetInitiator() const { return m_initiator; }
140 inline bool InitiatorHasBeenSet() const { return m_initiatorHasBeenSet; }
141 template <typename InitiatorT = Initiator>
142 void SetInitiator(InitiatorT&& value) {
143 m_initiatorHasBeenSet = true;
144 m_initiator = std::forward<InitiatorT>(value);
145 }
146 template <typename InitiatorT = Initiator>
147 MultipartUpload& WithInitiator(InitiatorT&& value) {
148 SetInitiator(std::forward<InitiatorT>(value));
149 return *this;
150 }
152
154
157 inline ChecksumAlgorithm GetChecksumAlgorithm() const { return m_checksumAlgorithm; }
158 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
160 m_checksumAlgorithmHasBeenSet = true;
161 m_checksumAlgorithm = value;
162 }
165 return *this;
166 }
168
170
176 inline ChecksumType GetChecksumType() const { return m_checksumType; }
177 inline bool ChecksumTypeHasBeenSet() const { return m_checksumTypeHasBeenSet; }
178 inline void SetChecksumType(ChecksumType value) {
179 m_checksumTypeHasBeenSet = true;
180 m_checksumType = value;
181 }
183 SetChecksumType(value);
184 return *this;
185 }
187 private:
188 Aws::String m_uploadId;
189
190 Aws::String m_key;
191
192 Aws::Utils::DateTime m_initiated{};
193
194 StorageClass m_storageClass{StorageClass::NOT_SET};
195
196 Owner m_owner;
197
198 Initiator m_initiator;
199
201
202 ChecksumType m_checksumType{ChecksumType::NOT_SET};
203 bool m_uploadIdHasBeenSet = false;
204 bool m_keyHasBeenSet = false;
205 bool m_initiatedHasBeenSet = false;
206 bool m_storageClassHasBeenSet = false;
207 bool m_ownerHasBeenSet = false;
208 bool m_initiatorHasBeenSet = false;
209 bool m_checksumAlgorithmHasBeenSet = false;
210 bool m_checksumTypeHasBeenSet = false;
211};
212
213} // namespace Model
214} // namespace S3
215} // namespace Aws
ChecksumAlgorithm GetChecksumAlgorithm() const
MultipartUpload & WithInitiated(InitiatedT &&value)
MultipartUpload & WithKey(KeyT &&value)
MultipartUpload & WithChecksumAlgorithm(ChecksumAlgorithm value)
void SetInitiated(InitiatedT &&value)
MultipartUpload & WithStorageClass(StorageClass value)
MultipartUpload & WithChecksumType(ChecksumType value)
const Aws::String & GetKey() const
AWS_S3_API MultipartUpload()=default
StorageClass GetStorageClass() const
AWS_S3_API MultipartUpload(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetInitiator(InitiatorT &&value)
MultipartUpload & WithInitiator(InitiatorT &&value)
MultipartUpload & WithOwner(OwnerT &&value)
const Aws::String & GetUploadId() const
const Aws::Utils::DateTime & GetInitiated() const
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
void SetChecksumAlgorithm(ChecksumAlgorithm value)
void SetStorageClass(StorageClass value)
ChecksumType GetChecksumType() const
void SetChecksumType(ChecksumType value)
AWS_S3_API MultipartUpload & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetUploadId(UploadIdT &&value)
const Initiator & GetInitiator() const
MultipartUpload & WithUploadId(UploadIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String