AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DeleteMarkerEntry.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/Owner.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace S3 {
21namespace Model {
22
29 public:
30 AWS_S3_API DeleteMarkerEntry() = default;
31 AWS_S3_API DeleteMarkerEntry(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
35
37
40 inline const Owner& GetOwner() const { return m_owner; }
41 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
42 template <typename OwnerT = Owner>
43 void SetOwner(OwnerT&& value) {
44 m_ownerHasBeenSet = true;
45 m_owner = std::forward<OwnerT>(value);
46 }
47 template <typename OwnerT = Owner>
48 DeleteMarkerEntry& WithOwner(OwnerT&& value) {
49 SetOwner(std::forward<OwnerT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetKey() const { return m_key; }
59 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
60 template <typename KeyT = Aws::String>
61 void SetKey(KeyT&& value) {
62 m_keyHasBeenSet = true;
63 m_key = std::forward<KeyT>(value);
64 }
65 template <typename KeyT = Aws::String>
66 DeleteMarkerEntry& WithKey(KeyT&& value) {
67 SetKey(std::forward<KeyT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetVersionId() const { return m_versionId; }
77 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
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>
84 DeleteMarkerEntry& WithVersionId(VersionIdT&& value) {
85 SetVersionId(std::forward<VersionIdT>(value));
86 return *this;
87 }
89
91
95 inline bool GetIsLatest() const { return m_isLatest; }
96 inline bool IsLatestHasBeenSet() const { return m_isLatestHasBeenSet; }
97 inline void SetIsLatest(bool value) {
98 m_isLatestHasBeenSet = true;
99 m_isLatest = value;
100 }
101 inline DeleteMarkerEntry& WithIsLatest(bool value) {
102 SetIsLatest(value);
103 return *this;
104 }
106
108
111 inline const Aws::Utils::DateTime& GetLastModified() const { return m_lastModified; }
112 inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; }
113 template <typename LastModifiedT = Aws::Utils::DateTime>
114 void SetLastModified(LastModifiedT&& value) {
115 m_lastModifiedHasBeenSet = true;
116 m_lastModified = std::forward<LastModifiedT>(value);
117 }
118 template <typename LastModifiedT = Aws::Utils::DateTime>
119 DeleteMarkerEntry& WithLastModified(LastModifiedT&& value) {
120 SetLastModified(std::forward<LastModifiedT>(value));
121 return *this;
122 }
124 private:
125 Owner m_owner;
126
127 Aws::String m_key;
128
129 Aws::String m_versionId;
130
131 bool m_isLatest{false};
132
133 Aws::Utils::DateTime m_lastModified{};
134 bool m_ownerHasBeenSet = false;
135 bool m_keyHasBeenSet = false;
136 bool m_versionIdHasBeenSet = false;
137 bool m_isLatestHasBeenSet = false;
138 bool m_lastModifiedHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace S3
143} // namespace Aws
AWS_S3_API DeleteMarkerEntry & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
DeleteMarkerEntry & WithKey(KeyT &&value)
const Aws::String & GetVersionId() const
bool OwnerHasBeenSet() const
void SetKey(KeyT &&value)
void SetIsLatest(bool value)
DeleteMarkerEntry & WithOwner(OwnerT &&value)
void SetLastModified(LastModifiedT &&value)
bool GetIsLatest() const
void SetOwner(OwnerT &&value)
bool KeyHasBeenSet() const
const Owner & GetOwner() const
bool VersionIdHasBeenSet() const
void SetVersionId(VersionIdT &&value)
bool LastModifiedHasBeenSet() const
const Aws::Utils::DateTime & GetLastModified() const
DeleteMarkerEntry & WithLastModified(LastModifiedT &&value)
DeleteMarkerEntry & WithIsLatest(bool value)
const Aws::String & GetKey() const
DeleteMarkerEntry & WithVersionId(VersionIdT &&value)
bool IsLatestHasBeenSet() const
AWS_S3_API DeleteMarkerEntry()=default
AWS_S3_API DeleteMarkerEntry(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String