AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CopyObjectResultDetails.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/ChecksumType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace S3
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_S3_API CopyObjectResultDetails() = default;
38
39 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40
41
43
47 inline const Aws::String& GetETag() const { return m_eTag; }
48 inline bool ETagHasBeenSet() const { return m_eTagHasBeenSet; }
49 template<typename ETagT = Aws::String>
50 void SetETag(ETagT&& value) { m_eTagHasBeenSet = true; m_eTag = std::forward<ETagT>(value); }
51 template<typename ETagT = Aws::String>
52 CopyObjectResultDetails& WithETag(ETagT&& value) { SetETag(std::forward<ETagT>(value)); return *this;}
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) { m_lastModifiedHasBeenSet = true; m_lastModified = std::forward<LastModifiedT>(value); }
63 template<typename LastModifiedT = Aws::Utils::DateTime>
64 CopyObjectResultDetails& WithLastModified(LastModifiedT&& value) { SetLastModified(std::forward<LastModifiedT>(value)); return *this;}
66
68
74 inline ChecksumType GetChecksumType() const { return m_checksumType; }
75 inline bool ChecksumTypeHasBeenSet() const { return m_checksumTypeHasBeenSet; }
76 inline void SetChecksumType(ChecksumType value) { m_checksumTypeHasBeenSet = true; m_checksumType = value; }
79
81
88 inline const Aws::String& GetChecksumCRC32() const { return m_checksumCRC32; }
89 inline bool ChecksumCRC32HasBeenSet() const { return m_checksumCRC32HasBeenSet; }
90 template<typename ChecksumCRC32T = Aws::String>
91 void SetChecksumCRC32(ChecksumCRC32T&& value) { m_checksumCRC32HasBeenSet = true; m_checksumCRC32 = std::forward<ChecksumCRC32T>(value); }
92 template<typename ChecksumCRC32T = Aws::String>
93 CopyObjectResultDetails& WithChecksumCRC32(ChecksumCRC32T&& value) { SetChecksumCRC32(std::forward<ChecksumCRC32T>(value)); return *this;}
95
97
104 inline const Aws::String& GetChecksumCRC32C() const { return m_checksumCRC32C; }
105 inline bool ChecksumCRC32CHasBeenSet() const { return m_checksumCRC32CHasBeenSet; }
106 template<typename ChecksumCRC32CT = Aws::String>
107 void SetChecksumCRC32C(ChecksumCRC32CT&& value) { m_checksumCRC32CHasBeenSet = true; m_checksumCRC32C = std::forward<ChecksumCRC32CT>(value); }
108 template<typename ChecksumCRC32CT = Aws::String>
109 CopyObjectResultDetails& WithChecksumCRC32C(ChecksumCRC32CT&& value) { SetChecksumCRC32C(std::forward<ChecksumCRC32CT>(value)); return *this;}
111
113
122 inline const Aws::String& GetChecksumCRC64NVME() const { return m_checksumCRC64NVME; }
123 inline bool ChecksumCRC64NVMEHasBeenSet() const { return m_checksumCRC64NVMEHasBeenSet; }
124 template<typename ChecksumCRC64NVMET = Aws::String>
125 void SetChecksumCRC64NVME(ChecksumCRC64NVMET&& value) { m_checksumCRC64NVMEHasBeenSet = true; m_checksumCRC64NVME = std::forward<ChecksumCRC64NVMET>(value); }
126 template<typename ChecksumCRC64NVMET = Aws::String>
127 CopyObjectResultDetails& WithChecksumCRC64NVME(ChecksumCRC64NVMET&& value) { SetChecksumCRC64NVME(std::forward<ChecksumCRC64NVMET>(value)); return *this;}
129
131
138 inline const Aws::String& GetChecksumSHA1() const { return m_checksumSHA1; }
139 inline bool ChecksumSHA1HasBeenSet() const { return m_checksumSHA1HasBeenSet; }
140 template<typename ChecksumSHA1T = Aws::String>
141 void SetChecksumSHA1(ChecksumSHA1T&& value) { m_checksumSHA1HasBeenSet = true; m_checksumSHA1 = std::forward<ChecksumSHA1T>(value); }
142 template<typename ChecksumSHA1T = Aws::String>
143 CopyObjectResultDetails& WithChecksumSHA1(ChecksumSHA1T&& value) { SetChecksumSHA1(std::forward<ChecksumSHA1T>(value)); return *this;}
145
147
154 inline const Aws::String& GetChecksumSHA256() const { return m_checksumSHA256; }
155 inline bool ChecksumSHA256HasBeenSet() const { return m_checksumSHA256HasBeenSet; }
156 template<typename ChecksumSHA256T = Aws::String>
157 void SetChecksumSHA256(ChecksumSHA256T&& value) { m_checksumSHA256HasBeenSet = true; m_checksumSHA256 = std::forward<ChecksumSHA256T>(value); }
158 template<typename ChecksumSHA256T = Aws::String>
159 CopyObjectResultDetails& WithChecksumSHA256(ChecksumSHA256T&& value) { SetChecksumSHA256(std::forward<ChecksumSHA256T>(value)); return *this;}
161 private:
162
163 Aws::String m_eTag;
164 bool m_eTagHasBeenSet = false;
165
166 Aws::Utils::DateTime m_lastModified{};
167 bool m_lastModifiedHasBeenSet = false;
168
169 ChecksumType m_checksumType{ChecksumType::NOT_SET};
170 bool m_checksumTypeHasBeenSet = false;
171
172 Aws::String m_checksumCRC32;
173 bool m_checksumCRC32HasBeenSet = false;
174
175 Aws::String m_checksumCRC32C;
176 bool m_checksumCRC32CHasBeenSet = false;
177
178 Aws::String m_checksumCRC64NVME;
179 bool m_checksumCRC64NVMEHasBeenSet = false;
180
181 Aws::String m_checksumSHA1;
182 bool m_checksumSHA1HasBeenSet = false;
183
184 Aws::String m_checksumSHA256;
185 bool m_checksumSHA256HasBeenSet = false;
186 };
187
188} // namespace Model
189} // namespace S3
190} // 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