AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
MultipartUpload.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/s3/model/StorageClass.h>
11#include <aws/s3/model/Owner.h>
12#include <aws/s3/model/Initiator.h>
13#include <aws/s3/model/ChecksumAlgorithm.h>
14#include <aws/s3/model/ChecksumType.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Xml
22{
23 class XmlNode;
24} // namespace Xml
25} // namespace Utils
26namespace S3
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_S3_API MultipartUpload() = default;
41 AWS_S3_API MultipartUpload(const Aws::Utils::Xml::XmlNode& xmlNode);
43
44 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
45
46
48
51 inline const Aws::String& GetUploadId() const { return m_uploadId; }
52 inline bool UploadIdHasBeenSet() const { return m_uploadIdHasBeenSet; }
53 template<typename UploadIdT = Aws::String>
54 void SetUploadId(UploadIdT&& value) { m_uploadIdHasBeenSet = true; m_uploadId = std::forward<UploadIdT>(value); }
55 template<typename UploadIdT = Aws::String>
56 MultipartUpload& WithUploadId(UploadIdT&& value) { SetUploadId(std::forward<UploadIdT>(value)); return *this;}
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) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
67 template<typename KeyT = Aws::String>
68 MultipartUpload& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
70
72
75 inline const Aws::Utils::DateTime& GetInitiated() const { return m_initiated; }
76 inline bool InitiatedHasBeenSet() const { return m_initiatedHasBeenSet; }
77 template<typename InitiatedT = Aws::Utils::DateTime>
78 void SetInitiated(InitiatedT&& value) { m_initiatedHasBeenSet = true; m_initiated = std::forward<InitiatedT>(value); }
79 template<typename InitiatedT = Aws::Utils::DateTime>
80 MultipartUpload& WithInitiated(InitiatedT&& value) { SetInitiated(std::forward<InitiatedT>(value)); return *this;}
82
84
91 inline StorageClass GetStorageClass() const { return m_storageClass; }
92 inline bool StorageClassHasBeenSet() const { return m_storageClassHasBeenSet; }
93 inline void SetStorageClass(StorageClass value) { m_storageClassHasBeenSet = true; m_storageClass = value; }
94 inline MultipartUpload& WithStorageClass(StorageClass value) { SetStorageClass(value); return *this;}
96
98
103 inline const Owner& GetOwner() const { return m_owner; }
104 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
105 template<typename OwnerT = Owner>
106 void SetOwner(OwnerT&& value) { m_ownerHasBeenSet = true; m_owner = std::forward<OwnerT>(value); }
107 template<typename OwnerT = Owner>
108 MultipartUpload& WithOwner(OwnerT&& value) { SetOwner(std::forward<OwnerT>(value)); return *this;}
110
112
115 inline const Initiator& GetInitiator() const { return m_initiator; }
116 inline bool InitiatorHasBeenSet() const { return m_initiatorHasBeenSet; }
117 template<typename InitiatorT = Initiator>
118 void SetInitiator(InitiatorT&& value) { m_initiatorHasBeenSet = true; m_initiator = std::forward<InitiatorT>(value); }
119 template<typename InitiatorT = Initiator>
120 MultipartUpload& WithInitiator(InitiatorT&& value) { SetInitiator(std::forward<InitiatorT>(value)); return *this;}
122
124
127 inline ChecksumAlgorithm GetChecksumAlgorithm() const { return m_checksumAlgorithm; }
128 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
129 inline void SetChecksumAlgorithm(ChecksumAlgorithm value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; }
132
134
140 inline ChecksumType GetChecksumType() const { return m_checksumType; }
141 inline bool ChecksumTypeHasBeenSet() const { return m_checksumTypeHasBeenSet; }
142 inline void SetChecksumType(ChecksumType value) { m_checksumTypeHasBeenSet = true; m_checksumType = value; }
143 inline MultipartUpload& WithChecksumType(ChecksumType value) { SetChecksumType(value); return *this;}
145 private:
146
147 Aws::String m_uploadId;
148 bool m_uploadIdHasBeenSet = false;
149
150 Aws::String m_key;
151 bool m_keyHasBeenSet = false;
152
153 Aws::Utils::DateTime m_initiated{};
154 bool m_initiatedHasBeenSet = false;
155
156 StorageClass m_storageClass{StorageClass::NOT_SET};
157 bool m_storageClassHasBeenSet = false;
158
159 Owner m_owner;
160 bool m_ownerHasBeenSet = false;
161
162 Initiator m_initiator;
163 bool m_initiatorHasBeenSet = false;
164
166 bool m_checksumAlgorithmHasBeenSet = false;
167
168 ChecksumType m_checksumType{ChecksumType::NOT_SET};
169 bool m_checksumTypeHasBeenSet = false;
170 };
171
172} // namespace Model
173} // namespace S3
174} // 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