7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/s3/model/ChecksumType.h>
11#include <aws/s3/model/ObjectVersionStorageClass.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/s3/model/Owner.h>
14#include <aws/s3/model/RestoreStatus.h>
15#include <aws/s3/model/ChecksumAlgorithm.h>
53 template<
typename ETagT = Aws::String>
54 void SetETag(ETagT&& value) { m_eTagHasBeenSet =
true; m_eTag = std::forward<ETagT>(value); }
55 template<
typename ETagT = Aws::String>
65 template<
typename ChecksumAlgorithmT = Aws::Vector<ChecksumAlgorithm>>
66 void SetChecksumAlgorithm(ChecksumAlgorithmT&& value) { m_checksumAlgorithmHasBeenSet =
true; m_checksumAlgorithm = std::forward<ChecksumAlgorithmT>(value); }
67 template<
typename ChecksumAlgorithmT = Aws::Vector<ChecksumAlgorithm>>
89 inline long long GetSize()
const {
return m_size; }
91 inline void SetSize(
long long value) { m_sizeHasBeenSet =
true; m_size = value; }
111 template<
typename KeyT = Aws::String>
112 void SetKey(KeyT&& value) { m_keyHasBeenSet =
true; m_key = std::forward<KeyT>(value); }
113 template<
typename KeyT = Aws::String>
123 template<
typename VersionIdT = Aws::String>
124 void SetVersionId(VersionIdT&& value) { m_versionIdHasBeenSet =
true; m_versionId = std::forward<VersionIdT>(value); }
125 template<
typename VersionIdT = Aws::String>
136 inline void SetIsLatest(
bool value) { m_isLatestHasBeenSet =
true; m_isLatest = value; }
146 template<
typename LastModifiedT = Aws::Utils::DateTime>
147 void SetLastModified(LastModifiedT&& value) { m_lastModifiedHasBeenSet =
true; m_lastModified = std::forward<LastModifiedT>(value); }
148 template<
typename LastModifiedT = Aws::Utils::DateTime>
158 template<
typename OwnerT = Owner>
159 void SetOwner(OwnerT&& value) { m_ownerHasBeenSet =
true; m_owner = std::forward<OwnerT>(value); }
160 template<
typename OwnerT = Owner>
174 template<
typename RestoreStatusT = RestoreStatus>
175 void SetRestoreStatus(RestoreStatusT&& value) { m_restoreStatusHasBeenSet =
true; m_restoreStatus = std::forward<RestoreStatusT>(value); }
176 template<
typename RestoreStatusT = RestoreStatus>
182 bool m_eTagHasBeenSet =
false;
185 bool m_checksumAlgorithmHasBeenSet =
false;
188 bool m_checksumTypeHasBeenSet =
false;
191 bool m_sizeHasBeenSet =
false;
194 bool m_storageClassHasBeenSet =
false;
197 bool m_keyHasBeenSet =
false;
200 bool m_versionIdHasBeenSet =
false;
202 bool m_isLatest{
false};
203 bool m_isLatestHasBeenSet =
false;
206 bool m_lastModifiedHasBeenSet =
false;
209 bool m_ownerHasBeenSet =
false;
212 bool m_restoreStatusHasBeenSet =
false;
bool SizeHasBeenSet() const
bool ChecksumTypeHasBeenSet() const
void SetVersionId(VersionIdT &&value)
bool IsLatestHasBeenSet() const
void SetIsLatest(bool value)
ObjectVersion & WithRestoreStatus(RestoreStatusT &&value)
const Owner & GetOwner() const
const Aws::Vector< ChecksumAlgorithm > & GetChecksumAlgorithm() const
ObjectVersion & WithChecksumAlgorithm(ChecksumAlgorithmT &&value)
ObjectVersion & WithOwner(OwnerT &&value)
void SetSize(long long value)
bool VersionIdHasBeenSet() const
ObjectVersion & WithSize(long long value)
void SetChecksumType(ChecksumType value)
const Aws::String & GetETag() const
const Aws::String & GetVersionId() const
AWS_S3_API ObjectVersion & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ObjectVersion & WithStorageClass(ObjectVersionStorageClass value)
bool OwnerHasBeenSet() const
bool LastModifiedHasBeenSet() const
long long GetSize() const
void SetLastModified(LastModifiedT &&value)
void SetOwner(OwnerT &&value)
ObjectVersion & WithLastModified(LastModifiedT &&value)
AWS_S3_API ObjectVersion()=default
bool RestoreStatusHasBeenSet() const
const RestoreStatus & GetRestoreStatus() const
AWS_S3_API ObjectVersion(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
const Aws::Utils::DateTime & GetLastModified() const
void SetKey(KeyT &&value)
bool ChecksumAlgorithmHasBeenSet() const
void SetRestoreStatus(RestoreStatusT &&value)
void SetETag(ETagT &&value)
bool StorageClassHasBeenSet() const
bool KeyHasBeenSet() const
ChecksumType GetChecksumType() const
ObjectVersion & WithVersionId(VersionIdT &&value)
const Aws::String & GetKey() const
ObjectVersion & WithKey(KeyT &&value)
void SetStorageClass(ObjectVersionStorageClass value)
ObjectVersion & WithIsLatest(bool value)
void SetChecksumAlgorithm(ChecksumAlgorithmT &&value)
ObjectVersion & WithETag(ETagT &&value)
bool ETagHasBeenSet() const
ObjectVersion & WithChecksumType(ChecksumType value)
ObjectVersionStorageClass GetStorageClass() const
ObjectVersion & AddChecksumAlgorithm(ChecksumAlgorithm value)
ObjectVersionStorageClass
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector