AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetObjectAttributesResult.h
1
6#pragma once
7#include <aws/s3-crt/S3Crt_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/s3-crt/model/RequestCharged.h>
11#include <aws/s3-crt/model/Checksum.h>
12#include <aws/s3-crt/model/GetObjectAttributesParts.h>
13#include <aws/s3-crt/model/StorageClass.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 S3Crt
29{
30namespace Model
31{
33 {
34 public:
38
39
41
47 inline bool GetDeleteMarker() const{ return m_deleteMarker; }
48 inline void SetDeleteMarker(bool value) { m_deleteMarker = value; }
49 inline GetObjectAttributesResult& WithDeleteMarker(bool value) { SetDeleteMarker(value); return *this;}
51
53
56 inline const Aws::Utils::DateTime& GetLastModified() const{ return m_lastModified; }
57 inline void SetLastModified(const Aws::Utils::DateTime& value) { m_lastModified = value; }
58 inline void SetLastModified(Aws::Utils::DateTime&& value) { m_lastModified = std::move(value); }
60 inline GetObjectAttributesResult& WithLastModified(Aws::Utils::DateTime&& value) { SetLastModified(std::move(value)); return *this;}
62
64
68 inline const Aws::String& GetVersionId() const{ return m_versionId; }
69 inline void SetVersionId(const Aws::String& value) { m_versionId = value; }
70 inline void SetVersionId(Aws::String&& value) { m_versionId = std::move(value); }
71 inline void SetVersionId(const char* value) { m_versionId.assign(value); }
72 inline GetObjectAttributesResult& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
73 inline GetObjectAttributesResult& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
74 inline GetObjectAttributesResult& WithVersionId(const char* value) { SetVersionId(value); return *this;}
76
78
79 inline const RequestCharged& GetRequestCharged() const{ return m_requestCharged; }
80 inline void SetRequestCharged(const RequestCharged& value) { m_requestCharged = value; }
81 inline void SetRequestCharged(RequestCharged&& value) { m_requestCharged = std::move(value); }
83 inline GetObjectAttributesResult& WithRequestCharged(RequestCharged&& value) { SetRequestCharged(std::move(value)); return *this;}
85
87
91 inline const Aws::String& GetETag() const{ return m_eTag; }
92 inline void SetETag(const Aws::String& value) { m_eTag = value; }
93 inline void SetETag(Aws::String&& value) { m_eTag = std::move(value); }
94 inline void SetETag(const char* value) { m_eTag.assign(value); }
95 inline GetObjectAttributesResult& WithETag(const Aws::String& value) { SetETag(value); return *this;}
96 inline GetObjectAttributesResult& WithETag(Aws::String&& value) { SetETag(std::move(value)); return *this;}
97 inline GetObjectAttributesResult& WithETag(const char* value) { SetETag(value); return *this;}
99
101
104 inline const Checksum& GetChecksum() const{ return m_checksum; }
105 inline void SetChecksum(const Checksum& value) { m_checksum = value; }
106 inline void SetChecksum(Checksum&& value) { m_checksum = std::move(value); }
107 inline GetObjectAttributesResult& WithChecksum(const Checksum& value) { SetChecksum(value); return *this;}
108 inline GetObjectAttributesResult& WithChecksum(Checksum&& value) { SetChecksum(std::move(value)); return *this;}
110
112
115 inline const GetObjectAttributesParts& GetObjectParts() const{ return m_objectParts; }
116 inline void SetObjectParts(const GetObjectAttributesParts& value) { m_objectParts = value; }
117 inline void SetObjectParts(GetObjectAttributesParts&& value) { m_objectParts = std::move(value); }
119 inline GetObjectAttributesResult& WithObjectParts(GetObjectAttributesParts&& value) { SetObjectParts(std::move(value)); return *this;}
121
123
132 inline const StorageClass& GetStorageClass() const{ return m_storageClass; }
133 inline void SetStorageClass(const StorageClass& value) { m_storageClass = value; }
134 inline void SetStorageClass(StorageClass&& value) { m_storageClass = std::move(value); }
135 inline GetObjectAttributesResult& WithStorageClass(const StorageClass& value) { SetStorageClass(value); return *this;}
136 inline GetObjectAttributesResult& WithStorageClass(StorageClass&& value) { SetStorageClass(std::move(value)); return *this;}
138
140
143 inline long long GetObjectSize() const{ return m_objectSize; }
144 inline void SetObjectSize(long long value) { m_objectSize = value; }
145 inline GetObjectAttributesResult& WithObjectSize(long long value) { SetObjectSize(value); return *this;}
147
149
150 inline const Aws::String& GetRequestId() const{ return m_requestId; }
151 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
152 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
153 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
154 inline GetObjectAttributesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
155 inline GetObjectAttributesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
156 inline GetObjectAttributesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
158 private:
159
160 bool m_deleteMarker;
161
162 Aws::Utils::DateTime m_lastModified;
163
164 Aws::String m_versionId;
165
166 RequestCharged m_requestCharged;
167
168 Aws::String m_eTag;
169
170 Checksum m_checksum;
171
172 GetObjectAttributesParts m_objectParts;
173
174 StorageClass m_storageClass;
175
176 long long m_objectSize;
177
178 Aws::String m_requestId;
179 };
180
181} // namespace Model
182} // namespace S3Crt
183} // namespace Aws
GetObjectAttributesResult & WithRequestId(const Aws::String &value)
void SetLastModified(Aws::Utils::DateTime &&value)
void SetObjectParts(GetObjectAttributesParts &&value)
void SetLastModified(const Aws::Utils::DateTime &value)
GetObjectAttributesResult & WithRequestCharged(RequestCharged &&value)
GetObjectAttributesResult & WithObjectParts(GetObjectAttributesParts &&value)
void SetRequestCharged(const RequestCharged &value)
GetObjectAttributesResult & WithLastModified(const Aws::Utils::DateTime &value)
AWS_S3CRT_API GetObjectAttributesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
GetObjectAttributesResult & WithETag(Aws::String &&value)
GetObjectAttributesResult & WithETag(const Aws::String &value)
GetObjectAttributesResult & WithStorageClass(StorageClass &&value)
GetObjectAttributesResult & WithDeleteMarker(bool value)
const GetObjectAttributesParts & GetObjectParts() const
GetObjectAttributesResult & WithStorageClass(const StorageClass &value)
GetObjectAttributesResult & WithVersionId(const Aws::String &value)
GetObjectAttributesResult & WithVersionId(Aws::String &&value)
GetObjectAttributesResult & WithRequestId(Aws::String &&value)
GetObjectAttributesResult & WithVersionId(const char *value)
GetObjectAttributesResult & WithObjectParts(const GetObjectAttributesParts &value)
GetObjectAttributesResult & WithLastModified(Aws::Utils::DateTime &&value)
void SetObjectParts(const GetObjectAttributesParts &value)
GetObjectAttributesResult & WithRequestId(const char *value)
GetObjectAttributesResult & WithChecksum(const Checksum &value)
GetObjectAttributesResult & WithRequestCharged(const RequestCharged &value)
AWS_S3CRT_API GetObjectAttributesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
GetObjectAttributesResult & WithETag(const char *value)
GetObjectAttributesResult & WithObjectSize(long long value)
GetObjectAttributesResult & WithChecksum(Checksum &&value)
const Aws::Utils::DateTime & GetLastModified() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument