AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
GetObjectAttributesResult.h
Go to the documentation of this file.
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Xml
24{
25 class XmlDocument;
26} // namespace Xml
27} // namespace Utils
28namespace S3
29{
30namespace Model
31{
33 {
34 public:
38
39
45 inline bool GetDeleteMarker() const{ return m_deleteMarker; }
46
52 inline void SetDeleteMarker(bool value) { m_deleteMarker = value; }
53
59 inline GetObjectAttributesResult& WithDeleteMarker(bool value) { SetDeleteMarker(value); return *this;}
60
61
65 inline const Aws::Utils::DateTime& GetLastModified() const{ return m_lastModified; }
66
70 inline void SetLastModified(const Aws::Utils::DateTime& value) { m_lastModified = value; }
71
75 inline void SetLastModified(Aws::Utils::DateTime&& value) { m_lastModified = std::move(value); }
76
81
85 inline GetObjectAttributesResult& WithLastModified(Aws::Utils::DateTime&& value) { SetLastModified(std::move(value)); return *this;}
86
87
91 inline const Aws::String& GetVersionId() const{ return m_versionId; }
92
96 inline void SetVersionId(const Aws::String& value) { m_versionId = value; }
97
101 inline void SetVersionId(Aws::String&& value) { m_versionId = std::move(value); }
102
106 inline void SetVersionId(const char* value) { m_versionId.assign(value); }
107
111 inline GetObjectAttributesResult& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
112
116 inline GetObjectAttributesResult& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
117
121 inline GetObjectAttributesResult& WithVersionId(const char* value) { SetVersionId(value); return *this;}
122
123
124
125 inline const RequestCharged& GetRequestCharged() const{ return m_requestCharged; }
126
127
128 inline void SetRequestCharged(const RequestCharged& value) { m_requestCharged = value; }
129
130
131 inline void SetRequestCharged(RequestCharged&& value) { m_requestCharged = std::move(value); }
132
133
135
136
137 inline GetObjectAttributesResult& WithRequestCharged(RequestCharged&& value) { SetRequestCharged(std::move(value)); return *this;}
138
139
144 inline const Aws::String& GetETag() const{ return m_eTag; }
145
150 inline void SetETag(const Aws::String& value) { m_eTag = value; }
151
156 inline void SetETag(Aws::String&& value) { m_eTag = std::move(value); }
157
162 inline void SetETag(const char* value) { m_eTag.assign(value); }
163
168 inline GetObjectAttributesResult& WithETag(const Aws::String& value) { SetETag(value); return *this;}
169
174 inline GetObjectAttributesResult& WithETag(Aws::String&& value) { SetETag(std::move(value)); return *this;}
175
180 inline GetObjectAttributesResult& WithETag(const char* value) { SetETag(value); return *this;}
181
182
186 inline const Checksum& GetChecksum() const{ return m_checksum; }
187
191 inline void SetChecksum(const Checksum& value) { m_checksum = value; }
192
196 inline void SetChecksum(Checksum&& value) { m_checksum = std::move(value); }
197
201 inline GetObjectAttributesResult& WithChecksum(const Checksum& value) { SetChecksum(value); return *this;}
202
206 inline GetObjectAttributesResult& WithChecksum(Checksum&& value) { SetChecksum(std::move(value)); return *this;}
207
208
212 inline const GetObjectAttributesParts& GetObjectParts() const{ return m_objectParts; }
213
217 inline void SetObjectParts(const GetObjectAttributesParts& value) { m_objectParts = value; }
218
222 inline void SetObjectParts(GetObjectAttributesParts&& value) { m_objectParts = std::move(value); }
223
228
232 inline GetObjectAttributesResult& WithObjectParts(GetObjectAttributesParts&& value) { SetObjectParts(std::move(value)); return *this;}
233
234
242 inline const StorageClass& GetStorageClass() const{ return m_storageClass; }
243
251 inline void SetStorageClass(const StorageClass& value) { m_storageClass = value; }
252
260 inline void SetStorageClass(StorageClass&& value) { m_storageClass = std::move(value); }
261
269 inline GetObjectAttributesResult& WithStorageClass(const StorageClass& value) { SetStorageClass(value); return *this;}
270
278 inline GetObjectAttributesResult& WithStorageClass(StorageClass&& value) { SetStorageClass(std::move(value)); return *this;}
279
280
284 inline long long GetObjectSize() const{ return m_objectSize; }
285
289 inline void SetObjectSize(long long value) { m_objectSize = value; }
290
294 inline GetObjectAttributesResult& WithObjectSize(long long value) { SetObjectSize(value); return *this;}
295
296 private:
297
298 bool m_deleteMarker;
299
300 Aws::Utils::DateTime m_lastModified;
301
302 Aws::String m_versionId;
303
304 RequestCharged m_requestCharged;
305
306 Aws::String m_eTag;
307
308 Checksum m_checksum;
309
310 GetObjectAttributesParts m_objectParts;
311
312 StorageClass m_storageClass;
313
314 long long m_objectSize;
315 };
316
317} // namespace Model
318} // namespace S3
319} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
GetObjectAttributesResult & WithRequestCharged(const RequestCharged &value)
GetObjectAttributesResult & WithVersionId(Aws::String &&value)
GetObjectAttributesResult & WithVersionId(const Aws::String &value)
GetObjectAttributesResult & WithLastModified(Aws::Utils::DateTime &&value)
GetObjectAttributesResult & WithStorageClass(StorageClass &&value)
void SetObjectParts(const GetObjectAttributesParts &value)
AWS_S3_API GetObjectAttributesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
GetObjectAttributesResult & WithChecksum(Checksum &&value)
GetObjectAttributesResult & WithVersionId(const char *value)
void SetLastModified(const Aws::Utils::DateTime &value)
GetObjectAttributesResult & WithObjectSize(long long value)
GetObjectAttributesResult & WithObjectParts(GetObjectAttributesParts &&value)
AWS_S3_API GetObjectAttributesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
const GetObjectAttributesParts & GetObjectParts() const
const Aws::Utils::DateTime & GetLastModified() const
void SetRequestCharged(const RequestCharged &value)
GetObjectAttributesResult & WithETag(const Aws::String &value)
GetObjectAttributesResult & WithStorageClass(const StorageClass &value)
GetObjectAttributesResult & WithETag(Aws::String &&value)
void SetLastModified(Aws::Utils::DateTime &&value)
void SetObjectParts(GetObjectAttributesParts &&value)
GetObjectAttributesResult & WithDeleteMarker(bool value)
GetObjectAttributesResult & WithRequestCharged(RequestCharged &&value)
GetObjectAttributesResult & WithChecksum(const Checksum &value)
GetObjectAttributesResult & WithETag(const char *value)
GetObjectAttributesResult & WithObjectParts(const GetObjectAttributesParts &value)
GetObjectAttributesResult & WithLastModified(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String