AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Checksum.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/s3/S3_EXPORTS.h>
9#include <aws/s3/model/ChecksumType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace S3 {
20namespace Model {
21
28class Checksum {
29 public:
30 AWS_S3_API Checksum() = default;
31 AWS_S3_API Checksum(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_S3_API Checksum& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
35
37
47 inline const Aws::String& GetChecksumCRC32() const { return m_checksumCRC32; }
48 inline bool ChecksumCRC32HasBeenSet() const { return m_checksumCRC32HasBeenSet; }
49 template <typename ChecksumCRC32T = Aws::String>
50 void SetChecksumCRC32(ChecksumCRC32T&& value) {
51 m_checksumCRC32HasBeenSet = true;
52 m_checksumCRC32 = std::forward<ChecksumCRC32T>(value);
53 }
54 template <typename ChecksumCRC32T = Aws::String>
55 Checksum& WithChecksumCRC32(ChecksumCRC32T&& value) {
56 SetChecksumCRC32(std::forward<ChecksumCRC32T>(value));
57 return *this;
58 }
60
62
72 inline const Aws::String& GetChecksumCRC32C() const { return m_checksumCRC32C; }
73 inline bool ChecksumCRC32CHasBeenSet() const { return m_checksumCRC32CHasBeenSet; }
74 template <typename ChecksumCRC32CT = Aws::String>
75 void SetChecksumCRC32C(ChecksumCRC32CT&& value) {
76 m_checksumCRC32CHasBeenSet = true;
77 m_checksumCRC32C = std::forward<ChecksumCRC32CT>(value);
78 }
79 template <typename ChecksumCRC32CT = Aws::String>
80 Checksum& WithChecksumCRC32C(ChecksumCRC32CT&& value) {
81 SetChecksumCRC32C(std::forward<ChecksumCRC32CT>(value));
82 return *this;
83 }
85
87
96 inline const Aws::String& GetChecksumCRC64NVME() const { return m_checksumCRC64NVME; }
97 inline bool ChecksumCRC64NVMEHasBeenSet() const { return m_checksumCRC64NVMEHasBeenSet; }
98 template <typename ChecksumCRC64NVMET = Aws::String>
99 void SetChecksumCRC64NVME(ChecksumCRC64NVMET&& value) {
100 m_checksumCRC64NVMEHasBeenSet = true;
101 m_checksumCRC64NVME = std::forward<ChecksumCRC64NVMET>(value);
102 }
103 template <typename ChecksumCRC64NVMET = Aws::String>
104 Checksum& WithChecksumCRC64NVME(ChecksumCRC64NVMET&& value) {
105 SetChecksumCRC64NVME(std::forward<ChecksumCRC64NVMET>(value));
106 return *this;
107 }
109
111
121 inline const Aws::String& GetChecksumSHA1() const { return m_checksumSHA1; }
122 inline bool ChecksumSHA1HasBeenSet() const { return m_checksumSHA1HasBeenSet; }
123 template <typename ChecksumSHA1T = Aws::String>
124 void SetChecksumSHA1(ChecksumSHA1T&& value) {
125 m_checksumSHA1HasBeenSet = true;
126 m_checksumSHA1 = std::forward<ChecksumSHA1T>(value);
127 }
128 template <typename ChecksumSHA1T = Aws::String>
129 Checksum& WithChecksumSHA1(ChecksumSHA1T&& value) {
130 SetChecksumSHA1(std::forward<ChecksumSHA1T>(value));
131 return *this;
132 }
134
136
146 inline const Aws::String& GetChecksumSHA256() const { return m_checksumSHA256; }
147 inline bool ChecksumSHA256HasBeenSet() const { return m_checksumSHA256HasBeenSet; }
148 template <typename ChecksumSHA256T = Aws::String>
149 void SetChecksumSHA256(ChecksumSHA256T&& value) {
150 m_checksumSHA256HasBeenSet = true;
151 m_checksumSHA256 = std::forward<ChecksumSHA256T>(value);
152 }
153 template <typename ChecksumSHA256T = Aws::String>
154 Checksum& WithChecksumSHA256(ChecksumSHA256T&& value) {
155 SetChecksumSHA256(std::forward<ChecksumSHA256T>(value));
156 return *this;
157 }
159
161
167 inline ChecksumType GetChecksumType() const { return m_checksumType; }
168 inline bool ChecksumTypeHasBeenSet() const { return m_checksumTypeHasBeenSet; }
169 inline void SetChecksumType(ChecksumType value) {
170 m_checksumTypeHasBeenSet = true;
171 m_checksumType = value;
172 }
174 SetChecksumType(value);
175 return *this;
176 }
178 private:
179 Aws::String m_checksumCRC32;
180
181 Aws::String m_checksumCRC32C;
182
183 Aws::String m_checksumCRC64NVME;
184
185 Aws::String m_checksumSHA1;
186
187 Aws::String m_checksumSHA256;
188
189 ChecksumType m_checksumType{ChecksumType::NOT_SET};
190 bool m_checksumCRC32HasBeenSet = false;
191 bool m_checksumCRC32CHasBeenSet = false;
192 bool m_checksumCRC64NVMEHasBeenSet = false;
193 bool m_checksumSHA1HasBeenSet = false;
194 bool m_checksumSHA256HasBeenSet = false;
195 bool m_checksumTypeHasBeenSet = false;
196};
197
198} // namespace Model
199} // namespace S3
200} // namespace Aws
bool ChecksumCRC32CHasBeenSet() const
Definition Checksum.h:73
void SetChecksumSHA1(ChecksumSHA1T &&value)
Definition Checksum.h:124
AWS_S3_API Checksum(const Aws::Utils::Xml::XmlNode &xmlNode)
bool ChecksumSHA1HasBeenSet() const
Definition Checksum.h:122
AWS_S3_API Checksum()=default
void SetChecksumSHA256(ChecksumSHA256T &&value)
Definition Checksum.h:149
Checksum & WithChecksumCRC32(ChecksumCRC32T &&value)
Definition Checksum.h:55
const Aws::String & GetChecksumCRC32C() const
Definition Checksum.h:72
Checksum & WithChecksumCRC64NVME(ChecksumCRC64NVMET &&value)
Definition Checksum.h:104
Checksum & WithChecksumType(ChecksumType value)
Definition Checksum.h:173
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
const Aws::String & GetChecksumCRC32() const
Definition Checksum.h:47
const Aws::String & GetChecksumSHA1() const
Definition Checksum.h:121
void SetChecksumCRC64NVME(ChecksumCRC64NVMET &&value)
Definition Checksum.h:99
ChecksumType GetChecksumType() const
Definition Checksum.h:167
void SetChecksumCRC32C(ChecksumCRC32CT &&value)
Definition Checksum.h:75
const Aws::String & GetChecksumSHA256() const
Definition Checksum.h:146
Checksum & WithChecksumSHA256(ChecksumSHA256T &&value)
Definition Checksum.h:154
Checksum & WithChecksumCRC32C(ChecksumCRC32CT &&value)
Definition Checksum.h:80
bool ChecksumSHA256HasBeenSet() const
Definition Checksum.h:147
void SetChecksumType(ChecksumType value)
Definition Checksum.h:169
const Aws::String & GetChecksumCRC64NVME() const
Definition Checksum.h:96
AWS_S3_API Checksum & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool ChecksumTypeHasBeenSet() const
Definition Checksum.h:168
bool ChecksumCRC32HasBeenSet() const
Definition Checksum.h:48
Checksum & WithChecksumSHA1(ChecksumSHA1T &&value)
Definition Checksum.h:129
bool ChecksumCRC64NVMEHasBeenSet() const
Definition Checksum.h:97
void SetChecksumCRC32(ChecksumCRC32T &&value)
Definition Checksum.h:50
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String