AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Object.h
1
6#pragma once
7#include <aws/s3-crt/S3Crt_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/s3-crt/model/ObjectStorageClass.h>
12#include <aws/s3-crt/model/Owner.h>
13#include <aws/s3-crt/model/RestoreStatus.h>
14#include <aws/s3-crt/model/ChecksumAlgorithm.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Xml
22{
23 class XmlNode;
24} // namespace Xml
25} // namespace Utils
26namespace S3Crt
27{
28namespace Model
29{
30
37 class Object
38 {
39 public:
40 AWS_S3CRT_API Object();
41 AWS_S3CRT_API Object(const Aws::Utils::Xml::XmlNode& xmlNode);
42 AWS_S3CRT_API Object& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43
44 AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
45
46
48
52 inline const Aws::String& GetKey() const{ return m_key; }
53 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
54 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
55 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
56 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
57 inline Object& WithKey(const Aws::String& value) { SetKey(value); return *this;}
58 inline Object& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
59 inline Object& WithKey(const char* value) { SetKey(value); return *this;}
61
63
66 inline const Aws::Utils::DateTime& GetLastModified() const{ return m_lastModified; }
67 inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; }
68 inline void SetLastModified(const Aws::Utils::DateTime& value) { m_lastModifiedHasBeenSet = true; m_lastModified = value; }
69 inline void SetLastModified(Aws::Utils::DateTime&& value) { m_lastModifiedHasBeenSet = true; m_lastModified = std::move(value); }
70 inline Object& WithLastModified(const Aws::Utils::DateTime& value) { SetLastModified(value); return *this;}
71 inline Object& WithLastModified(Aws::Utils::DateTime&& value) { SetLastModified(std::move(value)); return *this;}
73
75
93 inline const Aws::String& GetETag() const{ return m_eTag; }
94 inline bool ETagHasBeenSet() const { return m_eTagHasBeenSet; }
95 inline void SetETag(const Aws::String& value) { m_eTagHasBeenSet = true; m_eTag = value; }
96 inline void SetETag(Aws::String&& value) { m_eTagHasBeenSet = true; m_eTag = std::move(value); }
97 inline void SetETag(const char* value) { m_eTagHasBeenSet = true; m_eTag.assign(value); }
98 inline Object& WithETag(const Aws::String& value) { SetETag(value); return *this;}
99 inline Object& WithETag(Aws::String&& value) { SetETag(std::move(value)); return *this;}
100 inline Object& WithETag(const char* value) { SetETag(value); return *this;}
102
104
107 inline const Aws::Vector<ChecksumAlgorithm>& GetChecksumAlgorithm() const{ return m_checksumAlgorithm; }
108 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
109 inline void SetChecksumAlgorithm(const Aws::Vector<ChecksumAlgorithm>& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; }
110 inline void SetChecksumAlgorithm(Aws::Vector<ChecksumAlgorithm>&& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = std::move(value); }
112 inline Object& WithChecksumAlgorithm(Aws::Vector<ChecksumAlgorithm>&& value) { SetChecksumAlgorithm(std::move(value)); return *this;}
113 inline Object& AddChecksumAlgorithm(const ChecksumAlgorithm& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm.push_back(value); return *this; }
114 inline Object& AddChecksumAlgorithm(ChecksumAlgorithm&& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm.push_back(std::move(value)); return *this; }
116
118
121 inline long long GetSize() const{ return m_size; }
122 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
123 inline void SetSize(long long value) { m_sizeHasBeenSet = true; m_size = value; }
124 inline Object& WithSize(long long value) { SetSize(value); return *this;}
126
128
133 inline const ObjectStorageClass& GetStorageClass() const{ return m_storageClass; }
134 inline bool StorageClassHasBeenSet() const { return m_storageClassHasBeenSet; }
135 inline void SetStorageClass(const ObjectStorageClass& value) { m_storageClassHasBeenSet = true; m_storageClass = value; }
136 inline void SetStorageClass(ObjectStorageClass&& value) { m_storageClassHasBeenSet = true; m_storageClass = std::move(value); }
137 inline Object& WithStorageClass(const ObjectStorageClass& value) { SetStorageClass(value); return *this;}
138 inline Object& WithStorageClass(ObjectStorageClass&& value) { SetStorageClass(std::move(value)); return *this;}
140
142
146 inline const Owner& GetOwner() const{ return m_owner; }
147 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
148 inline void SetOwner(const Owner& value) { m_ownerHasBeenSet = true; m_owner = value; }
149 inline void SetOwner(Owner&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
150 inline Object& WithOwner(const Owner& value) { SetOwner(value); return *this;}
151 inline Object& WithOwner(Owner&& value) { SetOwner(std::move(value)); return *this;}
153
155
165 inline const RestoreStatus& GetRestoreStatus() const{ return m_restoreStatus; }
166 inline bool RestoreStatusHasBeenSet() const { return m_restoreStatusHasBeenSet; }
167 inline void SetRestoreStatus(const RestoreStatus& value) { m_restoreStatusHasBeenSet = true; m_restoreStatus = value; }
168 inline void SetRestoreStatus(RestoreStatus&& value) { m_restoreStatusHasBeenSet = true; m_restoreStatus = std::move(value); }
169 inline Object& WithRestoreStatus(const RestoreStatus& value) { SetRestoreStatus(value); return *this;}
170 inline Object& WithRestoreStatus(RestoreStatus&& value) { SetRestoreStatus(std::move(value)); return *this;}
172 private:
173
174 Aws::String m_key;
175 bool m_keyHasBeenSet = false;
176
177 Aws::Utils::DateTime m_lastModified;
178 bool m_lastModifiedHasBeenSet = false;
179
180 Aws::String m_eTag;
181 bool m_eTagHasBeenSet = false;
182
183 Aws::Vector<ChecksumAlgorithm> m_checksumAlgorithm;
184 bool m_checksumAlgorithmHasBeenSet = false;
185
186 long long m_size;
187 bool m_sizeHasBeenSet = false;
188
189 ObjectStorageClass m_storageClass;
190 bool m_storageClassHasBeenSet = false;
191
192 Owner m_owner;
193 bool m_ownerHasBeenSet = false;
194
195 RestoreStatus m_restoreStatus;
196 bool m_restoreStatusHasBeenSet = false;
197 };
198
199} // namespace Model
200} // namespace S3Crt
201} // namespace Aws
const Aws::String & GetKey() const
Definition Object.h:52
void SetRestoreStatus(RestoreStatus &&value)
Definition Object.h:168
Object & AddChecksumAlgorithm(const ChecksumAlgorithm &value)
Definition Object.h:113
const Owner & GetOwner() const
Definition Object.h:146
Object & WithStorageClass(ObjectStorageClass &&value)
Definition Object.h:138
void SetStorageClass(ObjectStorageClass &&value)
Definition Object.h:136
void SetLastModified(const Aws::Utils::DateTime &value)
Definition Object.h:68
bool KeyHasBeenSet() const
Definition Object.h:53
Object & WithKey(Aws::String &&value)
Definition Object.h:58
void SetSize(long long value)
Definition Object.h:123
void SetETag(const char *value)
Definition Object.h:97
Object & WithKey(const char *value)
Definition Object.h:59
bool SizeHasBeenSet() const
Definition Object.h:122
Object & WithETag(Aws::String &&value)
Definition Object.h:99
AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Object & WithRestoreStatus(RestoreStatus &&value)
Definition Object.h:170
bool ETagHasBeenSet() const
Definition Object.h:94
Object & WithStorageClass(const ObjectStorageClass &value)
Definition Object.h:137
AWS_S3CRT_API Object(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Utils::DateTime & GetLastModified() const
Definition Object.h:66
void SetLastModified(Aws::Utils::DateTime &&value)
Definition Object.h:69
Object & AddChecksumAlgorithm(ChecksumAlgorithm &&value)
Definition Object.h:114
void SetOwner(Owner &&value)
Definition Object.h:149
Object & WithSize(long long value)
Definition Object.h:124
Object & WithETag(const char *value)
Definition Object.h:100
void SetETag(const Aws::String &value)
Definition Object.h:95
bool ChecksumAlgorithmHasBeenSet() const
Definition Object.h:108
Object & WithChecksumAlgorithm(const Aws::Vector< ChecksumAlgorithm > &value)
Definition Object.h:111
Object & WithETag(const Aws::String &value)
Definition Object.h:98
void SetChecksumAlgorithm(Aws::Vector< ChecksumAlgorithm > &&value)
Definition Object.h:110
void SetRestoreStatus(const RestoreStatus &value)
Definition Object.h:167
void SetKey(Aws::String &&value)
Definition Object.h:55
AWS_S3CRT_API Object()
Object & WithOwner(Owner &&value)
Definition Object.h:151
bool StorageClassHasBeenSet() const
Definition Object.h:134
Object & WithLastModified(const Aws::Utils::DateTime &value)
Definition Object.h:70
Object & WithKey(const Aws::String &value)
Definition Object.h:57
void SetOwner(const Owner &value)
Definition Object.h:148
AWS_S3CRT_API Object & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool LastModifiedHasBeenSet() const
Definition Object.h:67
const Aws::Vector< ChecksumAlgorithm > & GetChecksumAlgorithm() const
Definition Object.h:107
void SetKey(const Aws::String &value)
Definition Object.h:54
void SetKey(const char *value)
Definition Object.h:56
Object & WithOwner(const Owner &value)
Definition Object.h:150
Object & WithRestoreStatus(const RestoreStatus &value)
Definition Object.h:169
void SetChecksumAlgorithm(const Aws::Vector< ChecksumAlgorithm > &value)
Definition Object.h:109
bool OwnerHasBeenSet() const
Definition Object.h:147
void SetStorageClass(const ObjectStorageClass &value)
Definition Object.h:135
bool RestoreStatusHasBeenSet() const
Definition Object.h:166
const ObjectStorageClass & GetStorageClass() const
Definition Object.h:133
long long GetSize() const
Definition Object.h:121
const Aws::String & GetETag() const
Definition Object.h:93
Object & WithLastModified(Aws::Utils::DateTime &&value)
Definition Object.h:71
void SetETag(Aws::String &&value)
Definition Object.h:96
Object & WithChecksumAlgorithm(Aws::Vector< ChecksumAlgorithm > &&value)
Definition Object.h:112
const RestoreStatus & GetRestoreStatus() const
Definition Object.h:165
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector