AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ObjectVersion.h
1
6#pragma once
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/ObjectVersionStorageClass.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/s3/model/Owner.h>
13#include <aws/s3/model/RestoreStatus.h>
14#include <aws/s3/model/ChecksumAlgorithm.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Xml
22{
23 class XmlNode;
24} // namespace Xml
25} // namespace Utils
26namespace S3
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_S3_API ObjectVersion();
40 AWS_S3_API ObjectVersion(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
44
45
47
50 inline const Aws::String& GetETag() const{ return m_eTag; }
51 inline bool ETagHasBeenSet() const { return m_eTagHasBeenSet; }
52 inline void SetETag(const Aws::String& value) { m_eTagHasBeenSet = true; m_eTag = value; }
53 inline void SetETag(Aws::String&& value) { m_eTagHasBeenSet = true; m_eTag = std::move(value); }
54 inline void SetETag(const char* value) { m_eTagHasBeenSet = true; m_eTag.assign(value); }
55 inline ObjectVersion& WithETag(const Aws::String& value) { SetETag(value); return *this;}
56 inline ObjectVersion& WithETag(Aws::String&& value) { SetETag(std::move(value)); return *this;}
57 inline ObjectVersion& WithETag(const char* value) { SetETag(value); return *this;}
59
61
64 inline const Aws::Vector<ChecksumAlgorithm>& GetChecksumAlgorithm() const{ return m_checksumAlgorithm; }
65 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
66 inline void SetChecksumAlgorithm(const Aws::Vector<ChecksumAlgorithm>& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; }
67 inline void SetChecksumAlgorithm(Aws::Vector<ChecksumAlgorithm>&& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = std::move(value); }
70 inline ObjectVersion& AddChecksumAlgorithm(const ChecksumAlgorithm& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm.push_back(value); return *this; }
71 inline ObjectVersion& AddChecksumAlgorithm(ChecksumAlgorithm&& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm.push_back(std::move(value)); return *this; }
73
75
78 inline long long GetSize() const{ return m_size; }
79 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
80 inline void SetSize(long long value) { m_sizeHasBeenSet = true; m_size = value; }
81 inline ObjectVersion& WithSize(long long value) { SetSize(value); return *this;}
83
85
88 inline const ObjectVersionStorageClass& GetStorageClass() const{ return m_storageClass; }
89 inline bool StorageClassHasBeenSet() const { return m_storageClassHasBeenSet; }
90 inline void SetStorageClass(const ObjectVersionStorageClass& value) { m_storageClassHasBeenSet = true; m_storageClass = value; }
91 inline void SetStorageClass(ObjectVersionStorageClass&& value) { m_storageClassHasBeenSet = true; m_storageClass = std::move(value); }
92 inline ObjectVersion& WithStorageClass(const ObjectVersionStorageClass& value) { SetStorageClass(value); return *this;}
93 inline ObjectVersion& WithStorageClass(ObjectVersionStorageClass&& value) { SetStorageClass(std::move(value)); return *this;}
95
97
100 inline const Aws::String& GetKey() const{ return m_key; }
101 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
102 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
103 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
104 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
105 inline ObjectVersion& WithKey(const Aws::String& value) { SetKey(value); return *this;}
106 inline ObjectVersion& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
107 inline ObjectVersion& WithKey(const char* value) { SetKey(value); return *this;}
109
111
114 inline const Aws::String& GetVersionId() const{ return m_versionId; }
115 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
116 inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
117 inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); }
118 inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
119 inline ObjectVersion& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
120 inline ObjectVersion& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
121 inline ObjectVersion& WithVersionId(const char* value) { SetVersionId(value); return *this;}
123
125
129 inline bool GetIsLatest() const{ return m_isLatest; }
130 inline bool IsLatestHasBeenSet() const { return m_isLatestHasBeenSet; }
131 inline void SetIsLatest(bool value) { m_isLatestHasBeenSet = true; m_isLatest = value; }
132 inline ObjectVersion& WithIsLatest(bool value) { SetIsLatest(value); return *this;}
134
136
139 inline const Aws::Utils::DateTime& GetLastModified() const{ return m_lastModified; }
140 inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; }
141 inline void SetLastModified(const Aws::Utils::DateTime& value) { m_lastModifiedHasBeenSet = true; m_lastModified = value; }
142 inline void SetLastModified(Aws::Utils::DateTime&& value) { m_lastModifiedHasBeenSet = true; m_lastModified = std::move(value); }
143 inline ObjectVersion& WithLastModified(const Aws::Utils::DateTime& value) { SetLastModified(value); return *this;}
144 inline ObjectVersion& WithLastModified(Aws::Utils::DateTime&& value) { SetLastModified(std::move(value)); return *this;}
146
148
151 inline const Owner& GetOwner() const{ return m_owner; }
152 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
153 inline void SetOwner(const Owner& value) { m_ownerHasBeenSet = true; m_owner = value; }
154 inline void SetOwner(Owner&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
155 inline ObjectVersion& WithOwner(const Owner& value) { SetOwner(value); return *this;}
156 inline ObjectVersion& WithOwner(Owner&& value) { SetOwner(std::move(value)); return *this;}
158
160
167 inline const RestoreStatus& GetRestoreStatus() const{ return m_restoreStatus; }
168 inline bool RestoreStatusHasBeenSet() const { return m_restoreStatusHasBeenSet; }
169 inline void SetRestoreStatus(const RestoreStatus& value) { m_restoreStatusHasBeenSet = true; m_restoreStatus = value; }
170 inline void SetRestoreStatus(RestoreStatus&& value) { m_restoreStatusHasBeenSet = true; m_restoreStatus = std::move(value); }
171 inline ObjectVersion& WithRestoreStatus(const RestoreStatus& value) { SetRestoreStatus(value); return *this;}
172 inline ObjectVersion& WithRestoreStatus(RestoreStatus&& value) { SetRestoreStatus(std::move(value)); return *this;}
174 private:
175
176 Aws::String m_eTag;
177 bool m_eTagHasBeenSet = false;
178
179 Aws::Vector<ChecksumAlgorithm> m_checksumAlgorithm;
180 bool m_checksumAlgorithmHasBeenSet = false;
181
182 long long m_size;
183 bool m_sizeHasBeenSet = false;
184
185 ObjectVersionStorageClass m_storageClass;
186 bool m_storageClassHasBeenSet = false;
187
188 Aws::String m_key;
189 bool m_keyHasBeenSet = false;
190
191 Aws::String m_versionId;
192 bool m_versionIdHasBeenSet = false;
193
194 bool m_isLatest;
195 bool m_isLatestHasBeenSet = false;
196
197 Aws::Utils::DateTime m_lastModified;
198 bool m_lastModifiedHasBeenSet = false;
199
200 Owner m_owner;
201 bool m_ownerHasBeenSet = false;
202
203 RestoreStatus m_restoreStatus;
204 bool m_restoreStatusHasBeenSet = false;
205 };
206
207} // namespace Model
208} // namespace S3
209} // namespace Aws
ObjectVersion & WithLastModified(const Aws::Utils::DateTime &value)
void SetStorageClass(ObjectVersionStorageClass &&value)
const Owner & GetOwner() const
const Aws::Vector< ChecksumAlgorithm > & GetChecksumAlgorithm() const
void SetRestoreStatus(const RestoreStatus &value)
void SetSize(long long value)
ObjectVersion & WithSize(long long value)
ObjectVersion & WithOwner(const Owner &value)
void SetOwner(const Owner &value)
const Aws::String & GetETag() const
void SetChecksumAlgorithm(Aws::Vector< ChecksumAlgorithm > &&value)
void SetLastModified(Aws::Utils::DateTime &&value)
const Aws::String & GetVersionId() const
AWS_S3_API ObjectVersion & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const ObjectVersionStorageClass & GetStorageClass() const
ObjectVersion & WithVersionId(const char *value)
ObjectVersion & AddChecksumAlgorithm(ChecksumAlgorithm &&value)
ObjectVersion & WithStorageClass(const ObjectVersionStorageClass &value)
void SetLastModified(const Aws::Utils::DateTime &value)
ObjectVersion & WithChecksumAlgorithm(const Aws::Vector< ChecksumAlgorithm > &value)
void SetKey(const char *value)
void SetKey(const Aws::String &value)
void SetVersionId(Aws::String &&value)
void SetETag(const char *value)
ObjectVersion & WithKey(const Aws::String &value)
void SetRestoreStatus(RestoreStatus &&value)
const RestoreStatus & GetRestoreStatus() const
void SetChecksumAlgorithm(const Aws::Vector< ChecksumAlgorithm > &value)
AWS_S3_API ObjectVersion(const Aws::Utils::Xml::XmlNode &xmlNode)
ObjectVersion & WithVersionId(Aws::String &&value)
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
const Aws::Utils::DateTime & GetLastModified() const
ObjectVersion & WithRestoreStatus(const RestoreStatus &value)
ObjectVersion & AddChecksumAlgorithm(const ChecksumAlgorithm &value)
void SetVersionId(const Aws::String &value)
bool ChecksumAlgorithmHasBeenSet() const
ObjectVersion & WithKey(const char *value)
ObjectVersion & WithChecksumAlgorithm(Aws::Vector< ChecksumAlgorithm > &&value)
void SetVersionId(const char *value)
void SetStorageClass(const ObjectVersionStorageClass &value)
ObjectVersion & WithStorageClass(ObjectVersionStorageClass &&value)
ObjectVersion & WithETag(Aws::String &&value)
void SetETag(Aws::String &&value)
void SetKey(Aws::String &&value)
void SetETag(const Aws::String &value)
ObjectVersion & WithRestoreStatus(RestoreStatus &&value)
const Aws::String & GetKey() const
ObjectVersion & WithOwner(Owner &&value)
void SetOwner(Owner &&value)
ObjectVersion & WithETag(const Aws::String &value)
ObjectVersion & WithIsLatest(bool value)
ObjectVersion & WithKey(Aws::String &&value)
ObjectVersion & WithVersionId(const Aws::String &value)
ObjectVersion & WithETag(const char *value)
ObjectVersion & WithLastModified(Aws::Utils::DateTime &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector