AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Checksum.h
1
6#pragma once
7#include <aws/s3-crt/S3Crt_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Xml
16{
17 class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace S3Crt
21{
22namespace Model
23{
24
32 {
33 public:
34 AWS_S3CRT_API Checksum();
35 AWS_S3CRT_API Checksum(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_S3CRT_API Checksum& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39
40
42
52 inline const Aws::String& GetChecksumCRC32() const{ return m_checksumCRC32; }
53 inline bool ChecksumCRC32HasBeenSet() const { return m_checksumCRC32HasBeenSet; }
54 inline void SetChecksumCRC32(const Aws::String& value) { m_checksumCRC32HasBeenSet = true; m_checksumCRC32 = value; }
55 inline void SetChecksumCRC32(Aws::String&& value) { m_checksumCRC32HasBeenSet = true; m_checksumCRC32 = std::move(value); }
56 inline void SetChecksumCRC32(const char* value) { m_checksumCRC32HasBeenSet = true; m_checksumCRC32.assign(value); }
57 inline Checksum& WithChecksumCRC32(const Aws::String& value) { SetChecksumCRC32(value); return *this;}
58 inline Checksum& WithChecksumCRC32(Aws::String&& value) { SetChecksumCRC32(std::move(value)); return *this;}
59 inline Checksum& WithChecksumCRC32(const char* value) { SetChecksumCRC32(value); return *this;}
61
63
73 inline const Aws::String& GetChecksumCRC32C() const{ return m_checksumCRC32C; }
74 inline bool ChecksumCRC32CHasBeenSet() const { return m_checksumCRC32CHasBeenSet; }
75 inline void SetChecksumCRC32C(const Aws::String& value) { m_checksumCRC32CHasBeenSet = true; m_checksumCRC32C = value; }
76 inline void SetChecksumCRC32C(Aws::String&& value) { m_checksumCRC32CHasBeenSet = true; m_checksumCRC32C = std::move(value); }
77 inline void SetChecksumCRC32C(const char* value) { m_checksumCRC32CHasBeenSet = true; m_checksumCRC32C.assign(value); }
78 inline Checksum& WithChecksumCRC32C(const Aws::String& value) { SetChecksumCRC32C(value); return *this;}
79 inline Checksum& WithChecksumCRC32C(Aws::String&& value) { SetChecksumCRC32C(std::move(value)); return *this;}
80 inline Checksum& WithChecksumCRC32C(const char* value) { SetChecksumCRC32C(value); return *this;}
82
84
94 inline const Aws::String& GetChecksumSHA1() const{ return m_checksumSHA1; }
95 inline bool ChecksumSHA1HasBeenSet() const { return m_checksumSHA1HasBeenSet; }
96 inline void SetChecksumSHA1(const Aws::String& value) { m_checksumSHA1HasBeenSet = true; m_checksumSHA1 = value; }
97 inline void SetChecksumSHA1(Aws::String&& value) { m_checksumSHA1HasBeenSet = true; m_checksumSHA1 = std::move(value); }
98 inline void SetChecksumSHA1(const char* value) { m_checksumSHA1HasBeenSet = true; m_checksumSHA1.assign(value); }
99 inline Checksum& WithChecksumSHA1(const Aws::String& value) { SetChecksumSHA1(value); return *this;}
100 inline Checksum& WithChecksumSHA1(Aws::String&& value) { SetChecksumSHA1(std::move(value)); return *this;}
101 inline Checksum& WithChecksumSHA1(const char* value) { SetChecksumSHA1(value); return *this;}
103
105
115 inline const Aws::String& GetChecksumSHA256() const{ return m_checksumSHA256; }
116 inline bool ChecksumSHA256HasBeenSet() const { return m_checksumSHA256HasBeenSet; }
117 inline void SetChecksumSHA256(const Aws::String& value) { m_checksumSHA256HasBeenSet = true; m_checksumSHA256 = value; }
118 inline void SetChecksumSHA256(Aws::String&& value) { m_checksumSHA256HasBeenSet = true; m_checksumSHA256 = std::move(value); }
119 inline void SetChecksumSHA256(const char* value) { m_checksumSHA256HasBeenSet = true; m_checksumSHA256.assign(value); }
120 inline Checksum& WithChecksumSHA256(const Aws::String& value) { SetChecksumSHA256(value); return *this;}
121 inline Checksum& WithChecksumSHA256(Aws::String&& value) { SetChecksumSHA256(std::move(value)); return *this;}
122 inline Checksum& WithChecksumSHA256(const char* value) { SetChecksumSHA256(value); return *this;}
124 private:
125
126 Aws::String m_checksumCRC32;
127 bool m_checksumCRC32HasBeenSet = false;
128
129 Aws::String m_checksumCRC32C;
130 bool m_checksumCRC32CHasBeenSet = false;
131
132 Aws::String m_checksumSHA1;
133 bool m_checksumSHA1HasBeenSet = false;
134
135 Aws::String m_checksumSHA256;
136 bool m_checksumSHA256HasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace S3Crt
141} // namespace Aws
AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Checksum & WithChecksumSHA256(Aws::String &&value)
Definition Checksum.h:121
Checksum & WithChecksumCRC32C(const char *value)
Definition Checksum.h:80
void SetChecksumSHA256(const Aws::String &value)
Definition Checksum.h:117
Checksum & WithChecksumCRC32C(Aws::String &&value)
Definition Checksum.h:79
Checksum & WithChecksumSHA1(Aws::String &&value)
Definition Checksum.h:100
AWS_S3CRT_API Checksum & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Checksum & WithChecksumCRC32(const char *value)
Definition Checksum.h:59
void SetChecksumCRC32C(const char *value)
Definition Checksum.h:77
const Aws::String & GetChecksumCRC32() const
Definition Checksum.h:52
void SetChecksumCRC32(Aws::String &&value)
Definition Checksum.h:55
void SetChecksumSHA1(Aws::String &&value)
Definition Checksum.h:97
Checksum & WithChecksumCRC32C(const Aws::String &value)
Definition Checksum.h:78
AWS_S3CRT_API Checksum(const Aws::Utils::Xml::XmlNode &xmlNode)
bool ChecksumSHA1HasBeenSet() const
Definition Checksum.h:95
Checksum & WithChecksumSHA256(const Aws::String &value)
Definition Checksum.h:120
Checksum & WithChecksumSHA256(const char *value)
Definition Checksum.h:122
const Aws::String & GetChecksumCRC32C() const
Definition Checksum.h:73
void SetChecksumCRC32C(Aws::String &&value)
Definition Checksum.h:76
void SetChecksumCRC32C(const Aws::String &value)
Definition Checksum.h:75
Checksum & WithChecksumCRC32(const Aws::String &value)
Definition Checksum.h:57
Checksum & WithChecksumCRC32(Aws::String &&value)
Definition Checksum.h:58
Checksum & WithChecksumSHA1(const Aws::String &value)
Definition Checksum.h:99
Checksum & WithChecksumSHA1(const char *value)
Definition Checksum.h:101
void SetChecksumSHA1(const Aws::String &value)
Definition Checksum.h:96
const Aws::String & GetChecksumSHA1() const
Definition Checksum.h:94
bool ChecksumCRC32HasBeenSet() const
Definition Checksum.h:53
void SetChecksumSHA256(const char *value)
Definition Checksum.h:119
void SetChecksumSHA256(Aws::String &&value)
Definition Checksum.h:118
void SetChecksumSHA1(const char *value)
Definition Checksum.h:98
void SetChecksumCRC32(const Aws::String &value)
Definition Checksum.h:54
bool ChecksumSHA256HasBeenSet() const
Definition Checksum.h:116
void SetChecksumCRC32(const char *value)
Definition Checksum.h:56
const Aws::String & GetChecksumSHA256() const
Definition Checksum.h:115
bool ChecksumCRC32CHasBeenSet() const
Definition Checksum.h:74
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String