AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DeleteMarkerEntry.h
1
6#pragma once
7#include <aws/s3-crt/S3Crt_EXPORTS.h>
8#include <aws/s3-crt/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 S3Crt
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_S3CRT_API DeleteMarkerEntry();
36 AWS_S3CRT_API DeleteMarkerEntry(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_S3CRT_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 inline void SetOwner(const Owner& value) { m_ownerHasBeenSet = true; m_owner = value; }
49 inline void SetOwner(Owner&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
50 inline DeleteMarkerEntry& WithOwner(const Owner& value) { SetOwner(value); return *this;}
51 inline DeleteMarkerEntry& WithOwner(Owner&& value) { SetOwner(std::move(value)); return *this;}
53
55
58 inline const Aws::String& GetKey() const{ return m_key; }
59 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
60 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
61 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
62 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
63 inline DeleteMarkerEntry& WithKey(const Aws::String& value) { SetKey(value); return *this;}
64 inline DeleteMarkerEntry& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
65 inline DeleteMarkerEntry& WithKey(const char* value) { SetKey(value); return *this;}
67
69
72 inline const Aws::String& GetVersionId() const{ return m_versionId; }
73 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
74 inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
75 inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); }
76 inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
77 inline DeleteMarkerEntry& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
78 inline DeleteMarkerEntry& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
79 inline DeleteMarkerEntry& WithVersionId(const char* value) { SetVersionId(value); return *this;}
81
83
87 inline bool GetIsLatest() const{ return m_isLatest; }
88 inline bool IsLatestHasBeenSet() const { return m_isLatestHasBeenSet; }
89 inline void SetIsLatest(bool value) { m_isLatestHasBeenSet = true; m_isLatest = value; }
90 inline DeleteMarkerEntry& WithIsLatest(bool value) { SetIsLatest(value); return *this;}
92
94
97 inline const Aws::Utils::DateTime& GetLastModified() const{ return m_lastModified; }
98 inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; }
99 inline void SetLastModified(const Aws::Utils::DateTime& value) { m_lastModifiedHasBeenSet = true; m_lastModified = value; }
100 inline void SetLastModified(Aws::Utils::DateTime&& value) { m_lastModifiedHasBeenSet = true; m_lastModified = std::move(value); }
101 inline DeleteMarkerEntry& WithLastModified(const Aws::Utils::DateTime& value) { SetLastModified(value); return *this;}
102 inline DeleteMarkerEntry& WithLastModified(Aws::Utils::DateTime&& value) { SetLastModified(std::move(value)); return *this;}
104 private:
105
106 Owner m_owner;
107 bool m_ownerHasBeenSet = false;
108
109 Aws::String m_key;
110 bool m_keyHasBeenSet = false;
111
112 Aws::String m_versionId;
113 bool m_versionIdHasBeenSet = false;
114
115 bool m_isLatest;
116 bool m_isLatestHasBeenSet = false;
117
118 Aws::Utils::DateTime m_lastModified;
119 bool m_lastModifiedHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace S3Crt
124} // namespace Aws
void SetKey(const Aws::String &value)
AWS_S3CRT_API DeleteMarkerEntry()
const Aws::String & GetVersionId() const
void SetVersionId(const char *value)
AWS_S3CRT_API DeleteMarkerEntry & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetKey(Aws::String &&value)
DeleteMarkerEntry & WithOwner(Owner &&value)
bool LastModifiedHasBeenSet() const
void SetKey(const char *value)
void SetIsLatest(bool value)
void SetVersionId(Aws::String &&value)
void SetLastModified(Aws::Utils::DateTime &&value)
bool IsLatestHasBeenSet() const
void SetLastModified(const Aws::Utils::DateTime &value)
void SetVersionId(const Aws::String &value)
bool VersionIdHasBeenSet() const
DeleteMarkerEntry & WithIsLatest(bool value)
DeleteMarkerEntry & WithKey(Aws::String &&value)
DeleteMarkerEntry & WithKey(const char *value)
void SetOwner(Owner &&value)
const Owner & GetOwner() const
AWS_S3CRT_API DeleteMarkerEntry(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetOwner(const Owner &value)
DeleteMarkerEntry & WithOwner(const Owner &value)
const Aws::Utils::DateTime & GetLastModified() const
DeleteMarkerEntry & WithVersionId(Aws::String &&value)
AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
bool KeyHasBeenSet() const
DeleteMarkerEntry & WithLastModified(Aws::Utils::DateTime &&value)
bool OwnerHasBeenSet() const
const Aws::String & GetKey() const
DeleteMarkerEntry & WithLastModified(const Aws::Utils::DateTime &value)
bool GetIsLatest() const
DeleteMarkerEntry & WithVersionId(const char *value)
DeleteMarkerEntry & WithVersionId(const Aws::String &value)
DeleteMarkerEntry & WithKey(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String