AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DeleteMarkerEntry.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/s3/model/Owner.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.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:
35 AWS_S3_API DeleteMarkerEntry() = default;
36 AWS_S3_API DeleteMarkerEntry(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40
41
43
46 inline const Owner& GetOwner() const { return m_owner; }
47 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
48 template<typename OwnerT = Owner>
49 void SetOwner(OwnerT&& value) { m_ownerHasBeenSet = true; m_owner = std::forward<OwnerT>(value); }
50 template<typename OwnerT = Owner>
51 DeleteMarkerEntry& WithOwner(OwnerT&& value) { SetOwner(std::forward<OwnerT>(value)); return *this;}
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) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
62 template<typename KeyT = Aws::String>
63 DeleteMarkerEntry& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
65
67
70 inline const Aws::String& GetVersionId() const { return m_versionId; }
71 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
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 DeleteMarkerEntry& WithVersionId(VersionIdT&& value) { SetVersionId(std::forward<VersionIdT>(value)); return *this;}
77
79
83 inline bool GetIsLatest() const { return m_isLatest; }
84 inline bool IsLatestHasBeenSet() const { return m_isLatestHasBeenSet; }
85 inline void SetIsLatest(bool value) { m_isLatestHasBeenSet = true; m_isLatest = value; }
86 inline DeleteMarkerEntry& WithIsLatest(bool value) { SetIsLatest(value); return *this;}
88
90
93 inline const Aws::Utils::DateTime& GetLastModified() const { return m_lastModified; }
94 inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; }
95 template<typename LastModifiedT = Aws::Utils::DateTime>
96 void SetLastModified(LastModifiedT&& value) { m_lastModifiedHasBeenSet = true; m_lastModified = std::forward<LastModifiedT>(value); }
97 template<typename LastModifiedT = Aws::Utils::DateTime>
98 DeleteMarkerEntry& WithLastModified(LastModifiedT&& value) { SetLastModified(std::forward<LastModifiedT>(value)); return *this;}
100 private:
101
102 Owner m_owner;
103 bool m_ownerHasBeenSet = false;
104
105 Aws::String m_key;
106 bool m_keyHasBeenSet = false;
107
108 Aws::String m_versionId;
109 bool m_versionIdHasBeenSet = false;
110
111 bool m_isLatest{false};
112 bool m_isLatestHasBeenSet = false;
113
114 Aws::Utils::DateTime m_lastModified{};
115 bool m_lastModifiedHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace S3
120} // 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