AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetObjectAttributesResult.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/s3/model/RequestCharged.h>
11#include <aws/s3/model/Checksum.h>
12#include <aws/s3/model/GetObjectAttributesParts.h>
13#include <aws/s3/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 S3
29{
30namespace Model
31{
33 {
34 public:
35 AWS_S3_API GetObjectAttributesResult() = default;
38
39
41
50 inline bool GetDeleteMarker() const { return m_deleteMarker; }
51 inline void SetDeleteMarker(bool value) { m_deleteMarkerHasBeenSet = true; m_deleteMarker = value; }
52 inline GetObjectAttributesResult& WithDeleteMarker(bool value) { SetDeleteMarker(value); return *this;}
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) { m_lastModifiedHasBeenSet = true; m_lastModified = std::forward<LastModifiedT>(value); }
62 template<typename LastModifiedT = Aws::Utils::DateTime>
63 GetObjectAttributesResult& WithLastModified(LastModifiedT&& value) { SetLastModified(std::forward<LastModifiedT>(value)); return *this;}
65
67
71 inline const Aws::String& GetVersionId() const { return m_versionId; }
72 template<typename VersionIdT = Aws::String>
73 void SetVersionId(VersionIdT&& value) { m_versionIdHasBeenSet = true; m_versionId = std::forward<VersionIdT>(value); }
74 template<typename VersionIdT = Aws::String>
75 GetObjectAttributesResult& WithVersionId(VersionIdT&& value) { SetVersionId(std::forward<VersionIdT>(value)); return *this;}
77
79
80 inline RequestCharged GetRequestCharged() const { return m_requestCharged; }
81 inline void SetRequestCharged(RequestCharged value) { m_requestChargedHasBeenSet = true; m_requestCharged = value; }
84
86
90 inline const Aws::String& GetETag() const { return m_eTag; }
91 template<typename ETagT = Aws::String>
92 void SetETag(ETagT&& value) { m_eTagHasBeenSet = true; m_eTag = std::forward<ETagT>(value); }
93 template<typename ETagT = Aws::String>
94 GetObjectAttributesResult& WithETag(ETagT&& value) { SetETag(std::forward<ETagT>(value)); return *this;}
96
98
101 inline const Checksum& GetChecksum() const { return m_checksum; }
102 template<typename ChecksumT = Checksum>
103 void SetChecksum(ChecksumT&& value) { m_checksumHasBeenSet = true; m_checksum = std::forward<ChecksumT>(value); }
104 template<typename ChecksumT = Checksum>
105 GetObjectAttributesResult& WithChecksum(ChecksumT&& value) { SetChecksum(std::forward<ChecksumT>(value)); return *this;}
107
109
112 inline const GetObjectAttributesParts& GetObjectParts() const { return m_objectParts; }
113 template<typename ObjectPartsT = GetObjectAttributesParts>
114 void SetObjectParts(ObjectPartsT&& value) { m_objectPartsHasBeenSet = true; m_objectParts = std::forward<ObjectPartsT>(value); }
115 template<typename ObjectPartsT = GetObjectAttributesParts>
116 GetObjectAttributesResult& WithObjectParts(ObjectPartsT&& value) { SetObjectParts(std::forward<ObjectPartsT>(value)); return *this;}
118
120
130 inline StorageClass GetStorageClass() const { return m_storageClass; }
131 inline void SetStorageClass(StorageClass value) { m_storageClassHasBeenSet = true; m_storageClass = value; }
134
136
139 inline long long GetObjectSize() const { return m_objectSize; }
140 inline void SetObjectSize(long long value) { m_objectSizeHasBeenSet = true; m_objectSize = value; }
141 inline GetObjectAttributesResult& WithObjectSize(long long value) { SetObjectSize(value); return *this;}
143
145
146 inline const Aws::String& GetRequestId() const { return m_requestId; }
147 template<typename RequestIdT = Aws::String>
148 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
149 template<typename RequestIdT = Aws::String>
150 GetObjectAttributesResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
152 private:
153
154 bool m_deleteMarker{false};
155 bool m_deleteMarkerHasBeenSet = false;
156
157 Aws::Utils::DateTime m_lastModified{};
158 bool m_lastModifiedHasBeenSet = false;
159
160 Aws::String m_versionId;
161 bool m_versionIdHasBeenSet = false;
162
163 RequestCharged m_requestCharged{RequestCharged::NOT_SET};
164 bool m_requestChargedHasBeenSet = false;
165
166 Aws::String m_eTag;
167 bool m_eTagHasBeenSet = false;
168
169 Checksum m_checksum;
170 bool m_checksumHasBeenSet = false;
171
172 GetObjectAttributesParts m_objectParts;
173 bool m_objectPartsHasBeenSet = false;
174
175 StorageClass m_storageClass{StorageClass::NOT_SET};
176 bool m_storageClassHasBeenSet = false;
177
178 long long m_objectSize{0};
179 bool m_objectSizeHasBeenSet = false;
180
181 Aws::String m_requestId;
182 bool m_requestIdHasBeenSet = false;
183 };
184
185} // namespace Model
186} // namespace S3
187} // 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