AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
DeleteMarkerEntry.h
Go to the documentation of this file.
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace S3
23{
24namespace Model
25{
26
33 {
34 public:
38
40
41
45 inline const Owner& GetOwner() const{ return m_owner; }
46
50 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
51
55 inline void SetOwner(const Owner& value) { m_ownerHasBeenSet = true; m_owner = value; }
56
60 inline void SetOwner(Owner&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
61
65 inline DeleteMarkerEntry& WithOwner(const Owner& value) { SetOwner(value); return *this;}
66
70 inline DeleteMarkerEntry& WithOwner(Owner&& value) { SetOwner(std::move(value)); return *this;}
71
72
76 inline const Aws::String& GetKey() const{ return m_key; }
77
81 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
82
86 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
87
91 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
92
96 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
97
101 inline DeleteMarkerEntry& WithKey(const Aws::String& value) { SetKey(value); return *this;}
102
106 inline DeleteMarkerEntry& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
107
111 inline DeleteMarkerEntry& WithKey(const char* value) { SetKey(value); return *this;}
112
113
117 inline const Aws::String& GetVersionId() const{ return m_versionId; }
118
122 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
123
127 inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
128
132 inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); }
133
137 inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
138
142 inline DeleteMarkerEntry& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
143
147 inline DeleteMarkerEntry& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
148
152 inline DeleteMarkerEntry& WithVersionId(const char* value) { SetVersionId(value); return *this;}
153
154
159 inline bool GetIsLatest() const{ return m_isLatest; }
160
165 inline bool IsLatestHasBeenSet() const { return m_isLatestHasBeenSet; }
166
171 inline void SetIsLatest(bool value) { m_isLatestHasBeenSet = true; m_isLatest = value; }
172
177 inline DeleteMarkerEntry& WithIsLatest(bool value) { SetIsLatest(value); return *this;}
178
179
183 inline const Aws::Utils::DateTime& GetLastModified() const{ return m_lastModified; }
184
188 inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; }
189
193 inline void SetLastModified(const Aws::Utils::DateTime& value) { m_lastModifiedHasBeenSet = true; m_lastModified = value; }
194
198 inline void SetLastModified(Aws::Utils::DateTime&& value) { m_lastModifiedHasBeenSet = true; m_lastModified = std::move(value); }
199
203 inline DeleteMarkerEntry& WithLastModified(const Aws::Utils::DateTime& value) { SetLastModified(value); return *this;}
204
208 inline DeleteMarkerEntry& WithLastModified(Aws::Utils::DateTime&& value) { SetLastModified(std::move(value)); return *this;}
209
210 private:
211
212 Owner m_owner;
213 bool m_ownerHasBeenSet = false;
214
215 Aws::String m_key;
216 bool m_keyHasBeenSet = false;
217
218 Aws::String m_versionId;
219 bool m_versionIdHasBeenSet = false;
220
221 bool m_isLatest;
222 bool m_isLatestHasBeenSet = false;
223
224 Aws::Utils::DateTime m_lastModified;
225 bool m_lastModifiedHasBeenSet = false;
226 };
227
228} // namespace Model
229} // namespace S3
230} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
void SetKey(const char *value)
AWS_S3_API DeleteMarkerEntry & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetOwner(const Owner &value)
DeleteMarkerEntry & WithKey(Aws::String &&value)
void SetKey(Aws::String &&value)
DeleteMarkerEntry & WithKey(const Aws::String &value)
const Aws::String & GetVersionId() const
bool OwnerHasBeenSet() const
void SetIsLatest(bool value)
void SetKey(const Aws::String &value)
bool GetIsLatest() const
void SetVersionId(const Aws::String &value)
bool KeyHasBeenSet() const
DeleteMarkerEntry & WithLastModified(Aws::Utils::DateTime &&value)
const Owner & GetOwner() const
bool VersionIdHasBeenSet() const
void SetVersionId(const char *value)
void SetLastModified(Aws::Utils::DateTime &&value)
bool LastModifiedHasBeenSet() const
void SetLastModified(const Aws::Utils::DateTime &value)
DeleteMarkerEntry & WithVersionId(const char *value)
const Aws::Utils::DateTime & GetLastModified() const
void SetOwner(Owner &&value)
DeleteMarkerEntry & WithVersionId(const Aws::String &value)
AWS_S3_API DeleteMarkerEntry()
void SetVersionId(Aws::String &&value)
DeleteMarkerEntry & WithIsLatest(bool value)
const Aws::String & GetKey() const
DeleteMarkerEntry & WithOwner(Owner &&value)
bool IsLatestHasBeenSet() const
DeleteMarkerEntry & WithKey(const char *value)
DeleteMarkerEntry & WithOwner(const Owner &value)
AWS_S3_API DeleteMarkerEntry(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
DeleteMarkerEntry & WithVersionId(Aws::String &&value)
DeleteMarkerEntry & WithLastModified(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String