AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GetObjectAttributesResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/s3/S3_EXPORTS.h>
10#include <aws/s3/model/Checksum.h>
11#include <aws/s3/model/GetObjectAttributesParts.h>
12#include <aws/s3/model/RequestCharged.h>
13#include <aws/s3/model/StorageClass.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Xml {
23class XmlDocument;
24} // namespace Xml
25} // namespace Utils
26namespace S3 {
27namespace Model {
29 public:
30 AWS_S3_API GetObjectAttributesResult() = default;
33
35
44 inline bool GetDeleteMarker() const { return m_deleteMarker; }
45 inline void SetDeleteMarker(bool value) {
46 m_deleteMarkerHasBeenSet = true;
47 m_deleteMarker = value;
48 }
50 SetDeleteMarker(value);
51 return *this;
52 }
54
56
59 inline const Aws::Utils::DateTime& GetLastModified() const { return m_lastModified; }
60 template <typename LastModifiedT = Aws::Utils::DateTime>
61 void SetLastModified(LastModifiedT&& value) {
62 m_lastModifiedHasBeenSet = true;
63 m_lastModified = std::forward<LastModifiedT>(value);
64 }
65 template <typename LastModifiedT = Aws::Utils::DateTime>
67 SetLastModified(std::forward<LastModifiedT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetVersionId() const { return m_versionId; }
78 template <typename VersionIdT = Aws::String>
79 void SetVersionId(VersionIdT&& value) {
80 m_versionIdHasBeenSet = true;
81 m_versionId = std::forward<VersionIdT>(value);
82 }
83 template <typename VersionIdT = Aws::String>
85 SetVersionId(std::forward<VersionIdT>(value));
86 return *this;
87 }
89
91
92 inline RequestCharged GetRequestCharged() const { return m_requestCharged; }
93 inline void SetRequestCharged(RequestCharged value) {
94 m_requestChargedHasBeenSet = true;
95 m_requestCharged = value;
96 }
98 SetRequestCharged(value);
99 return *this;
100 }
102
104
108 inline const Aws::String& GetETag() const { return m_eTag; }
109 template <typename ETagT = Aws::String>
110 void SetETag(ETagT&& value) {
111 m_eTagHasBeenSet = true;
112 m_eTag = std::forward<ETagT>(value);
113 }
114 template <typename ETagT = Aws::String>
116 SetETag(std::forward<ETagT>(value));
117 return *this;
118 }
120
122
125 inline const Checksum& GetChecksum() const { return m_checksum; }
126 template <typename ChecksumT = Checksum>
127 void SetChecksum(ChecksumT&& value) {
128 m_checksumHasBeenSet = true;
129 m_checksum = std::forward<ChecksumT>(value);
130 }
131 template <typename ChecksumT = Checksum>
133 SetChecksum(std::forward<ChecksumT>(value));
134 return *this;
135 }
137
139
142 inline const GetObjectAttributesParts& GetObjectParts() const { return m_objectParts; }
143 template <typename ObjectPartsT = GetObjectAttributesParts>
144 void SetObjectParts(ObjectPartsT&& value) {
145 m_objectPartsHasBeenSet = true;
146 m_objectParts = std::forward<ObjectPartsT>(value);
147 }
148 template <typename ObjectPartsT = GetObjectAttributesParts>
150 SetObjectParts(std::forward<ObjectPartsT>(value));
151 return *this;
152 }
154
156
166 inline StorageClass GetStorageClass() const { return m_storageClass; }
167 inline void SetStorageClass(StorageClass value) {
168 m_storageClassHasBeenSet = true;
169 m_storageClass = value;
170 }
172 SetStorageClass(value);
173 return *this;
174 }
176
178
181 inline long long GetObjectSize() const { return m_objectSize; }
182 inline void SetObjectSize(long long value) {
183 m_objectSizeHasBeenSet = true;
184 m_objectSize = value;
185 }
186 inline GetObjectAttributesResult& WithObjectSize(long long value) {
187 SetObjectSize(value);
188 return *this;
189 }
191
193
194 inline const Aws::String& GetRequestId() const { return m_requestId; }
195 template <typename RequestIdT = Aws::String>
196 void SetRequestId(RequestIdT&& value) {
197 m_requestIdHasBeenSet = true;
198 m_requestId = std::forward<RequestIdT>(value);
199 }
200 template <typename RequestIdT = Aws::String>
202 SetRequestId(std::forward<RequestIdT>(value));
203 return *this;
204 }
206 private:
207 bool m_deleteMarker{false};
208
209 Aws::Utils::DateTime m_lastModified{};
210
211 Aws::String m_versionId;
212
213 RequestCharged m_requestCharged{RequestCharged::NOT_SET};
214
215 Aws::String m_eTag;
216
217 Checksum m_checksum;
218
219 GetObjectAttributesParts m_objectParts;
220
221 StorageClass m_storageClass{StorageClass::NOT_SET};
222
223 long long m_objectSize{0};
224
225 Aws::String m_requestId;
226 bool m_deleteMarkerHasBeenSet = false;
227 bool m_lastModifiedHasBeenSet = false;
228 bool m_versionIdHasBeenSet = false;
229 bool m_requestChargedHasBeenSet = false;
230 bool m_eTagHasBeenSet = false;
231 bool m_checksumHasBeenSet = false;
232 bool m_objectPartsHasBeenSet = false;
233 bool m_storageClassHasBeenSet = false;
234 bool m_objectSizeHasBeenSet = false;
235 bool m_requestIdHasBeenSet = false;
236};
237
238} // namespace Model
239} // namespace S3
240} // namespace Aws
AWS_S3_API GetObjectAttributesResult()=default
GetObjectAttributesResult & WithObjectParts(ObjectPartsT &&value)
GetObjectAttributesResult & WithStorageClass(StorageClass value)
AWS_S3_API GetObjectAttributesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
GetObjectAttributesResult & WithChecksum(ChecksumT &&value)
GetObjectAttributesResult & WithObjectSize(long long value)
GetObjectAttributesResult & WithRequestId(RequestIdT &&value)
AWS_S3_API GetObjectAttributesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
const GetObjectAttributesParts & GetObjectParts() const
const Aws::Utils::DateTime & GetLastModified() const
GetObjectAttributesResult & WithVersionId(VersionIdT &&value)
GetObjectAttributesResult & WithDeleteMarker(bool value)
GetObjectAttributesResult & WithLastModified(LastModifiedT &&value)
GetObjectAttributesResult & WithETag(ETagT &&value)
GetObjectAttributesResult & WithRequestCharged(RequestCharged value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument