AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ObjectPart.h
1
6#pragma once
7#include <aws/s3/S3_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 S3
21{
22namespace Model
23{
24
32 {
33 public:
34 AWS_S3_API ObjectPart();
35 AWS_S3_API ObjectPart(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_S3_API ObjectPart& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39
40
42
46 inline int GetPartNumber() const{ return m_partNumber; }
47 inline bool PartNumberHasBeenSet() const { return m_partNumberHasBeenSet; }
48 inline void SetPartNumber(int value) { m_partNumberHasBeenSet = true; m_partNumber = value; }
49 inline ObjectPart& WithPartNumber(int value) { SetPartNumber(value); return *this;}
51
53
56 inline long long GetSize() const{ return m_size; }
57 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
58 inline void SetSize(long long value) { m_sizeHasBeenSet = true; m_size = value; }
59 inline ObjectPart& WithSize(long long value) { SetSize(value); return *this;}
61
63
71 inline const Aws::String& GetChecksumCRC32() const{ return m_checksumCRC32; }
72 inline bool ChecksumCRC32HasBeenSet() const { return m_checksumCRC32HasBeenSet; }
73 inline void SetChecksumCRC32(const Aws::String& value) { m_checksumCRC32HasBeenSet = true; m_checksumCRC32 = value; }
74 inline void SetChecksumCRC32(Aws::String&& value) { m_checksumCRC32HasBeenSet = true; m_checksumCRC32 = std::move(value); }
75 inline void SetChecksumCRC32(const char* value) { m_checksumCRC32HasBeenSet = true; m_checksumCRC32.assign(value); }
76 inline ObjectPart& WithChecksumCRC32(const Aws::String& value) { SetChecksumCRC32(value); return *this;}
77 inline ObjectPart& WithChecksumCRC32(Aws::String&& value) { SetChecksumCRC32(std::move(value)); return *this;}
78 inline ObjectPart& WithChecksumCRC32(const char* value) { SetChecksumCRC32(value); return *this;}
80
82
92 inline const Aws::String& GetChecksumCRC32C() const{ return m_checksumCRC32C; }
93 inline bool ChecksumCRC32CHasBeenSet() const { return m_checksumCRC32CHasBeenSet; }
94 inline void SetChecksumCRC32C(const Aws::String& value) { m_checksumCRC32CHasBeenSet = true; m_checksumCRC32C = value; }
95 inline void SetChecksumCRC32C(Aws::String&& value) { m_checksumCRC32CHasBeenSet = true; m_checksumCRC32C = std::move(value); }
96 inline void SetChecksumCRC32C(const char* value) { m_checksumCRC32CHasBeenSet = true; m_checksumCRC32C.assign(value); }
97 inline ObjectPart& WithChecksumCRC32C(const Aws::String& value) { SetChecksumCRC32C(value); return *this;}
98 inline ObjectPart& WithChecksumCRC32C(Aws::String&& value) { SetChecksumCRC32C(std::move(value)); return *this;}
99 inline ObjectPart& WithChecksumCRC32C(const char* value) { SetChecksumCRC32C(value); return *this;}
101
103
113 inline const Aws::String& GetChecksumSHA1() const{ return m_checksumSHA1; }
114 inline bool ChecksumSHA1HasBeenSet() const { return m_checksumSHA1HasBeenSet; }
115 inline void SetChecksumSHA1(const Aws::String& value) { m_checksumSHA1HasBeenSet = true; m_checksumSHA1 = value; }
116 inline void SetChecksumSHA1(Aws::String&& value) { m_checksumSHA1HasBeenSet = true; m_checksumSHA1 = std::move(value); }
117 inline void SetChecksumSHA1(const char* value) { m_checksumSHA1HasBeenSet = true; m_checksumSHA1.assign(value); }
118 inline ObjectPart& WithChecksumSHA1(const Aws::String& value) { SetChecksumSHA1(value); return *this;}
119 inline ObjectPart& WithChecksumSHA1(Aws::String&& value) { SetChecksumSHA1(std::move(value)); return *this;}
120 inline ObjectPart& WithChecksumSHA1(const char* value) { SetChecksumSHA1(value); return *this;}
122
124
134 inline const Aws::String& GetChecksumSHA256() const{ return m_checksumSHA256; }
135 inline bool ChecksumSHA256HasBeenSet() const { return m_checksumSHA256HasBeenSet; }
136 inline void SetChecksumSHA256(const Aws::String& value) { m_checksumSHA256HasBeenSet = true; m_checksumSHA256 = value; }
137 inline void SetChecksumSHA256(Aws::String&& value) { m_checksumSHA256HasBeenSet = true; m_checksumSHA256 = std::move(value); }
138 inline void SetChecksumSHA256(const char* value) { m_checksumSHA256HasBeenSet = true; m_checksumSHA256.assign(value); }
139 inline ObjectPart& WithChecksumSHA256(const Aws::String& value) { SetChecksumSHA256(value); return *this;}
140 inline ObjectPart& WithChecksumSHA256(Aws::String&& value) { SetChecksumSHA256(std::move(value)); return *this;}
141 inline ObjectPart& WithChecksumSHA256(const char* value) { SetChecksumSHA256(value); return *this;}
143 private:
144
145 int m_partNumber;
146 bool m_partNumberHasBeenSet = false;
147
148 long long m_size;
149 bool m_sizeHasBeenSet = false;
150
151 Aws::String m_checksumCRC32;
152 bool m_checksumCRC32HasBeenSet = false;
153
154 Aws::String m_checksumCRC32C;
155 bool m_checksumCRC32CHasBeenSet = false;
156
157 Aws::String m_checksumSHA1;
158 bool m_checksumSHA1HasBeenSet = false;
159
160 Aws::String m_checksumSHA256;
161 bool m_checksumSHA256HasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace S3
166} // namespace Aws
const Aws::String & GetChecksumSHA256() const
Definition ObjectPart.h:134
void SetChecksumCRC32(Aws::String &&value)
Definition ObjectPart.h:74
void SetChecksumCRC32(const Aws::String &value)
Definition ObjectPart.h:73
long long GetSize() const
Definition ObjectPart.h:56
bool PartNumberHasBeenSet() const
Definition ObjectPart.h:47
AWS_S3_API ObjectPart & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ObjectPart & WithChecksumCRC32C(const Aws::String &value)
Definition ObjectPart.h:97
void SetChecksumCRC32(const char *value)
Definition ObjectPart.h:75
ObjectPart & WithChecksumCRC32(const Aws::String &value)
Definition ObjectPart.h:76
ObjectPart & WithPartNumber(int value)
Definition ObjectPart.h:49
void SetPartNumber(int value)
Definition ObjectPart.h:48
bool ChecksumSHA256HasBeenSet() const
Definition ObjectPart.h:135
ObjectPart & WithSize(long long value)
Definition ObjectPart.h:59
void SetChecksumSHA1(const char *value)
Definition ObjectPart.h:117
const Aws::String & GetChecksumCRC32() const
Definition ObjectPart.h:71
void SetChecksumSHA256(Aws::String &&value)
Definition ObjectPart.h:137
void SetChecksumCRC32C(const char *value)
Definition ObjectPart.h:96
ObjectPart & WithChecksumCRC32(Aws::String &&value)
Definition ObjectPart.h:77
bool ChecksumSHA1HasBeenSet() const
Definition ObjectPart.h:114
ObjectPart & WithChecksumSHA256(const Aws::String &value)
Definition ObjectPart.h:139
void SetChecksumSHA1(Aws::String &&value)
Definition ObjectPart.h:116
bool ChecksumCRC32HasBeenSet() const
Definition ObjectPart.h:72
void SetChecksumSHA1(const Aws::String &value)
Definition ObjectPart.h:115
bool SizeHasBeenSet() const
Definition ObjectPart.h:57
ObjectPart & WithChecksumSHA1(Aws::String &&value)
Definition ObjectPart.h:119
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
ObjectPart & WithChecksumSHA256(Aws::String &&value)
Definition ObjectPart.h:140
const Aws::String & GetChecksumCRC32C() const
Definition ObjectPart.h:92
void SetChecksumCRC32C(Aws::String &&value)
Definition ObjectPart.h:95
const Aws::String & GetChecksumSHA1() const
Definition ObjectPart.h:113
void SetChecksumSHA256(const Aws::String &value)
Definition ObjectPart.h:136
ObjectPart & WithChecksumSHA1(const char *value)
Definition ObjectPart.h:120
ObjectPart & WithChecksumCRC32C(const char *value)
Definition ObjectPart.h:99
ObjectPart & WithChecksumSHA256(const char *value)
Definition ObjectPart.h:141
ObjectPart & WithChecksumCRC32(const char *value)
Definition ObjectPart.h:78
ObjectPart & WithChecksumCRC32C(Aws::String &&value)
Definition ObjectPart.h:98
void SetSize(long long value)
Definition ObjectPart.h:58
AWS_S3_API ObjectPart(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetChecksumCRC32C(const Aws::String &value)
Definition ObjectPart.h:94
void SetChecksumSHA256(const char *value)
Definition ObjectPart.h:138
bool ChecksumCRC32CHasBeenSet() const
Definition ObjectPart.h:93
ObjectPart & WithChecksumSHA1(const Aws::String &value)
Definition ObjectPart.h:118
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String