AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Checksum.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/s3/model/ChecksumType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace S3
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_S3_API Checksum() = default;
36 AWS_S3_API Checksum(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_S3_API Checksum& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40
41
43
53 inline const Aws::String& GetChecksumCRC32() const { return m_checksumCRC32; }
54 inline bool ChecksumCRC32HasBeenSet() const { return m_checksumCRC32HasBeenSet; }
55 template<typename ChecksumCRC32T = Aws::String>
56 void SetChecksumCRC32(ChecksumCRC32T&& value) { m_checksumCRC32HasBeenSet = true; m_checksumCRC32 = std::forward<ChecksumCRC32T>(value); }
57 template<typename ChecksumCRC32T = Aws::String>
58 Checksum& WithChecksumCRC32(ChecksumCRC32T&& value) { SetChecksumCRC32(std::forward<ChecksumCRC32T>(value)); return *this;}
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) { m_checksumCRC32CHasBeenSet = true; m_checksumCRC32C = std::forward<ChecksumCRC32CT>(value); }
76 template<typename ChecksumCRC32CT = Aws::String>
77 Checksum& WithChecksumCRC32C(ChecksumCRC32CT&& value) { SetChecksumCRC32C(std::forward<ChecksumCRC32CT>(value)); return *this;}
79
81
90 inline const Aws::String& GetChecksumCRC64NVME() const { return m_checksumCRC64NVME; }
91 inline bool ChecksumCRC64NVMEHasBeenSet() const { return m_checksumCRC64NVMEHasBeenSet; }
92 template<typename ChecksumCRC64NVMET = Aws::String>
93 void SetChecksumCRC64NVME(ChecksumCRC64NVMET&& value) { m_checksumCRC64NVMEHasBeenSet = true; m_checksumCRC64NVME = std::forward<ChecksumCRC64NVMET>(value); }
94 template<typename ChecksumCRC64NVMET = Aws::String>
95 Checksum& WithChecksumCRC64NVME(ChecksumCRC64NVMET&& value) { SetChecksumCRC64NVME(std::forward<ChecksumCRC64NVMET>(value)); return *this;}
97
99
109 inline const Aws::String& GetChecksumSHA1() const { return m_checksumSHA1; }
110 inline bool ChecksumSHA1HasBeenSet() const { return m_checksumSHA1HasBeenSet; }
111 template<typename ChecksumSHA1T = Aws::String>
112 void SetChecksumSHA1(ChecksumSHA1T&& value) { m_checksumSHA1HasBeenSet = true; m_checksumSHA1 = std::forward<ChecksumSHA1T>(value); }
113 template<typename ChecksumSHA1T = Aws::String>
114 Checksum& WithChecksumSHA1(ChecksumSHA1T&& value) { SetChecksumSHA1(std::forward<ChecksumSHA1T>(value)); return *this;}
116
118
128 inline const Aws::String& GetChecksumSHA256() const { return m_checksumSHA256; }
129 inline bool ChecksumSHA256HasBeenSet() const { return m_checksumSHA256HasBeenSet; }
130 template<typename ChecksumSHA256T = Aws::String>
131 void SetChecksumSHA256(ChecksumSHA256T&& value) { m_checksumSHA256HasBeenSet = true; m_checksumSHA256 = std::forward<ChecksumSHA256T>(value); }
132 template<typename ChecksumSHA256T = Aws::String>
133 Checksum& WithChecksumSHA256(ChecksumSHA256T&& value) { SetChecksumSHA256(std::forward<ChecksumSHA256T>(value)); return *this;}
135
137
143 inline ChecksumType GetChecksumType() const { return m_checksumType; }
144 inline bool ChecksumTypeHasBeenSet() const { return m_checksumTypeHasBeenSet; }
145 inline void SetChecksumType(ChecksumType value) { m_checksumTypeHasBeenSet = true; m_checksumType = value; }
146 inline Checksum& WithChecksumType(ChecksumType value) { SetChecksumType(value); return *this;}
148 private:
149
150 Aws::String m_checksumCRC32;
151 bool m_checksumCRC32HasBeenSet = false;
152
153 Aws::String m_checksumCRC32C;
154 bool m_checksumCRC32CHasBeenSet = false;
155
156 Aws::String m_checksumCRC64NVME;
157 bool m_checksumCRC64NVMEHasBeenSet = false;
158
159 Aws::String m_checksumSHA1;
160 bool m_checksumSHA1HasBeenSet = false;
161
162 Aws::String m_checksumSHA256;
163 bool m_checksumSHA256HasBeenSet = false;
164
165 ChecksumType m_checksumType{ChecksumType::NOT_SET};
166 bool m_checksumTypeHasBeenSet = false;
167 };
168
169} // namespace Model
170} // namespace S3
171} // namespace Aws
bool ChecksumCRC32CHasBeenSet() const
Definition Checksum.h:73
void SetChecksumSHA1(ChecksumSHA1T &&value)
Definition Checksum.h:112
AWS_S3_API Checksum(const Aws::Utils::Xml::XmlNode &xmlNode)
bool ChecksumSHA1HasBeenSet() const
Definition Checksum.h:110
AWS_S3_API Checksum()=default
void SetChecksumSHA256(ChecksumSHA256T &&value)
Definition Checksum.h:131
Checksum & WithChecksumCRC32(ChecksumCRC32T &&value)
Definition Checksum.h:58
const Aws::String & GetChecksumCRC32C() const
Definition Checksum.h:72
Checksum & WithChecksumCRC64NVME(ChecksumCRC64NVMET &&value)
Definition Checksum.h:95
Checksum & WithChecksumType(ChecksumType value)
Definition Checksum.h:146
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
const Aws::String & GetChecksumCRC32() const
Definition Checksum.h:53
const Aws::String & GetChecksumSHA1() const
Definition Checksum.h:109
void SetChecksumCRC64NVME(ChecksumCRC64NVMET &&value)
Definition Checksum.h:93
ChecksumType GetChecksumType() const
Definition Checksum.h:143
void SetChecksumCRC32C(ChecksumCRC32CT &&value)
Definition Checksum.h:75
const Aws::String & GetChecksumSHA256() const
Definition Checksum.h:128
Checksum & WithChecksumSHA256(ChecksumSHA256T &&value)
Definition Checksum.h:133
Checksum & WithChecksumCRC32C(ChecksumCRC32CT &&value)
Definition Checksum.h:77
bool ChecksumSHA256HasBeenSet() const
Definition Checksum.h:129
void SetChecksumType(ChecksumType value)
Definition Checksum.h:145
const Aws::String & GetChecksumCRC64NVME() const
Definition Checksum.h:90
AWS_S3_API Checksum & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool ChecksumTypeHasBeenSet() const
Definition Checksum.h:144
bool ChecksumCRC32HasBeenSet() const
Definition Checksum.h:54
Checksum & WithChecksumSHA1(ChecksumSHA1T &&value)
Definition Checksum.h:114
bool ChecksumCRC64NVMEHasBeenSet() const
Definition Checksum.h:91
void SetChecksumCRC32(ChecksumCRC32T &&value)
Definition Checksum.h:56
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String