AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CopyObjectResultDetails.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/ChecksumType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace S3 {
21namespace Model {
22
29 public:
30 AWS_S3_API CopyObjectResultDetails() = default;
33
34 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
35
37
41 inline const Aws::String& GetETag() const { return m_eTag; }
42 inline bool ETagHasBeenSet() const { return m_eTagHasBeenSet; }
43 template <typename ETagT = Aws::String>
44 void SetETag(ETagT&& value) {
45 m_eTagHasBeenSet = true;
46 m_eTag = std::forward<ETagT>(value);
47 }
48 template <typename ETagT = Aws::String>
50 SetETag(std::forward<ETagT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Utils::DateTime& GetLastModified() const { return m_lastModified; }
60 inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; }
61 template <typename LastModifiedT = Aws::Utils::DateTime>
62 void SetLastModified(LastModifiedT&& value) {
63 m_lastModifiedHasBeenSet = true;
64 m_lastModified = std::forward<LastModifiedT>(value);
65 }
66 template <typename LastModifiedT = Aws::Utils::DateTime>
67 CopyObjectResultDetails& WithLastModified(LastModifiedT&& value) {
68 SetLastModified(std::forward<LastModifiedT>(value));
69 return *this;
70 }
72
74
80 inline ChecksumType GetChecksumType() const { return m_checksumType; }
81 inline bool ChecksumTypeHasBeenSet() const { return m_checksumTypeHasBeenSet; }
82 inline void SetChecksumType(ChecksumType value) {
83 m_checksumTypeHasBeenSet = true;
84 m_checksumType = value;
85 }
87 SetChecksumType(value);
88 return *this;
89 }
91
93
100 inline const Aws::String& GetChecksumCRC32() const { return m_checksumCRC32; }
101 inline bool ChecksumCRC32HasBeenSet() const { return m_checksumCRC32HasBeenSet; }
102 template <typename ChecksumCRC32T = Aws::String>
103 void SetChecksumCRC32(ChecksumCRC32T&& value) {
104 m_checksumCRC32HasBeenSet = true;
105 m_checksumCRC32 = std::forward<ChecksumCRC32T>(value);
106 }
107 template <typename ChecksumCRC32T = Aws::String>
109 SetChecksumCRC32(std::forward<ChecksumCRC32T>(value));
110 return *this;
111 }
113
115
122 inline const Aws::String& GetChecksumCRC32C() const { return m_checksumCRC32C; }
123 inline bool ChecksumCRC32CHasBeenSet() const { return m_checksumCRC32CHasBeenSet; }
124 template <typename ChecksumCRC32CT = Aws::String>
125 void SetChecksumCRC32C(ChecksumCRC32CT&& value) {
126 m_checksumCRC32CHasBeenSet = true;
127 m_checksumCRC32C = std::forward<ChecksumCRC32CT>(value);
128 }
129 template <typename ChecksumCRC32CT = Aws::String>
130 CopyObjectResultDetails& WithChecksumCRC32C(ChecksumCRC32CT&& value) {
131 SetChecksumCRC32C(std::forward<ChecksumCRC32CT>(value));
132 return *this;
133 }
135
137
146 inline const Aws::String& GetChecksumCRC64NVME() const { return m_checksumCRC64NVME; }
147 inline bool ChecksumCRC64NVMEHasBeenSet() const { return m_checksumCRC64NVMEHasBeenSet; }
148 template <typename ChecksumCRC64NVMET = Aws::String>
149 void SetChecksumCRC64NVME(ChecksumCRC64NVMET&& value) {
150 m_checksumCRC64NVMEHasBeenSet = true;
151 m_checksumCRC64NVME = std::forward<ChecksumCRC64NVMET>(value);
152 }
153 template <typename ChecksumCRC64NVMET = Aws::String>
154 CopyObjectResultDetails& WithChecksumCRC64NVME(ChecksumCRC64NVMET&& value) {
155 SetChecksumCRC64NVME(std::forward<ChecksumCRC64NVMET>(value));
156 return *this;
157 }
159
161
168 inline const Aws::String& GetChecksumSHA1() const { return m_checksumSHA1; }
169 inline bool ChecksumSHA1HasBeenSet() const { return m_checksumSHA1HasBeenSet; }
170 template <typename ChecksumSHA1T = Aws::String>
171 void SetChecksumSHA1(ChecksumSHA1T&& value) {
172 m_checksumSHA1HasBeenSet = true;
173 m_checksumSHA1 = std::forward<ChecksumSHA1T>(value);
174 }
175 template <typename ChecksumSHA1T = Aws::String>
177 SetChecksumSHA1(std::forward<ChecksumSHA1T>(value));
178 return *this;
179 }
181
183
190 inline const Aws::String& GetChecksumSHA256() const { return m_checksumSHA256; }
191 inline bool ChecksumSHA256HasBeenSet() const { return m_checksumSHA256HasBeenSet; }
192 template <typename ChecksumSHA256T = Aws::String>
193 void SetChecksumSHA256(ChecksumSHA256T&& value) {
194 m_checksumSHA256HasBeenSet = true;
195 m_checksumSHA256 = std::forward<ChecksumSHA256T>(value);
196 }
197 template <typename ChecksumSHA256T = Aws::String>
198 CopyObjectResultDetails& WithChecksumSHA256(ChecksumSHA256T&& value) {
199 SetChecksumSHA256(std::forward<ChecksumSHA256T>(value));
200 return *this;
201 }
203 private:
204 Aws::String m_eTag;
205
206 Aws::Utils::DateTime m_lastModified{};
207
208 ChecksumType m_checksumType{ChecksumType::NOT_SET};
209
210 Aws::String m_checksumCRC32;
211
212 Aws::String m_checksumCRC32C;
213
214 Aws::String m_checksumCRC64NVME;
215
216 Aws::String m_checksumSHA1;
217
218 Aws::String m_checksumSHA256;
219 bool m_eTagHasBeenSet = false;
220 bool m_lastModifiedHasBeenSet = false;
221 bool m_checksumTypeHasBeenSet = false;
222 bool m_checksumCRC32HasBeenSet = false;
223 bool m_checksumCRC32CHasBeenSet = false;
224 bool m_checksumCRC64NVMEHasBeenSet = false;
225 bool m_checksumSHA1HasBeenSet = false;
226 bool m_checksumSHA256HasBeenSet = false;
227};
228
229} // namespace Model
230} // namespace S3
231} // namespace Aws
CopyObjectResultDetails & WithChecksumCRC32(ChecksumCRC32T &&value)
AWS_S3_API CopyObjectResultDetails()=default
void SetChecksumSHA256(ChecksumSHA256T &&value)
CopyObjectResultDetails & WithChecksumSHA1(ChecksumSHA1T &&value)
AWS_S3_API CopyObjectResultDetails & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
CopyObjectResultDetails & WithChecksumType(ChecksumType value)
CopyObjectResultDetails & WithETag(ETagT &&value)
CopyObjectResultDetails & WithChecksumSHA256(ChecksumSHA256T &&value)
const Aws::Utils::DateTime & GetLastModified() const
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
CopyObjectResultDetails & WithLastModified(LastModifiedT &&value)
AWS_S3_API CopyObjectResultDetails(const Aws::Utils::Xml::XmlNode &xmlNode)
CopyObjectResultDetails & WithChecksumCRC64NVME(ChecksumCRC64NVMET &&value)
void SetChecksumCRC32C(ChecksumCRC32CT &&value)
CopyObjectResultDetails & WithChecksumCRC32C(ChecksumCRC32CT &&value)
void SetChecksumCRC64NVME(ChecksumCRC64NVMET &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String