AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DeletedObject.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Xml
16{
17 class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace S3
21{
22namespace Model
23{
24
31 {
32 public:
33 AWS_S3_API DeletedObject();
34 AWS_S3_API DeletedObject(const Aws::Utils::Xml::XmlNode& xmlNode);
36
37 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
38
39
41
44 inline const Aws::String& GetKey() const{ return m_key; }
45 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
46 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
47 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
48 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
49 inline DeletedObject& WithKey(const Aws::String& value) { SetKey(value); return *this;}
50 inline DeletedObject& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
51 inline DeletedObject& WithKey(const char* value) { SetKey(value); return *this;}
53
55
59 inline const Aws::String& GetVersionId() const{ return m_versionId; }
60 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
61 inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
62 inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); }
63 inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
64 inline DeletedObject& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
65 inline DeletedObject& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
66 inline DeletedObject& WithVersionId(const char* value) { SetVersionId(value); return *this;}
68
70
77 inline bool GetDeleteMarker() const{ return m_deleteMarker; }
78 inline bool DeleteMarkerHasBeenSet() const { return m_deleteMarkerHasBeenSet; }
79 inline void SetDeleteMarker(bool value) { m_deleteMarkerHasBeenSet = true; m_deleteMarker = value; }
80 inline DeletedObject& WithDeleteMarker(bool value) { SetDeleteMarker(value); return *this;}
82
84
90 inline const Aws::String& GetDeleteMarkerVersionId() const{ return m_deleteMarkerVersionId; }
91 inline bool DeleteMarkerVersionIdHasBeenSet() const { return m_deleteMarkerVersionIdHasBeenSet; }
92 inline void SetDeleteMarkerVersionId(const Aws::String& value) { m_deleteMarkerVersionIdHasBeenSet = true; m_deleteMarkerVersionId = value; }
93 inline void SetDeleteMarkerVersionId(Aws::String&& value) { m_deleteMarkerVersionIdHasBeenSet = true; m_deleteMarkerVersionId = std::move(value); }
94 inline void SetDeleteMarkerVersionId(const char* value) { m_deleteMarkerVersionIdHasBeenSet = true; m_deleteMarkerVersionId.assign(value); }
95 inline DeletedObject& WithDeleteMarkerVersionId(const Aws::String& value) { SetDeleteMarkerVersionId(value); return *this;}
96 inline DeletedObject& WithDeleteMarkerVersionId(Aws::String&& value) { SetDeleteMarkerVersionId(std::move(value)); return *this;}
97 inline DeletedObject& WithDeleteMarkerVersionId(const char* value) { SetDeleteMarkerVersionId(value); return *this;}
99 private:
100
101 Aws::String m_key;
102 bool m_keyHasBeenSet = false;
103
104 Aws::String m_versionId;
105 bool m_versionIdHasBeenSet = false;
106
107 bool m_deleteMarker;
108 bool m_deleteMarkerHasBeenSet = false;
109
110 Aws::String m_deleteMarkerVersionId;
111 bool m_deleteMarkerVersionIdHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace S3
116} // namespace Aws
DeletedObject & WithDeleteMarker(bool value)
DeletedObject & WithVersionId(const Aws::String &value)
DeletedObject & WithKey(const char *value)
bool DeleteMarkerVersionIdHasBeenSet() const
DeletedObject & WithDeleteMarkerVersionId(Aws::String &&value)
AWS_S3_API DeletedObject(const Aws::Utils::Xml::XmlNode &xmlNode)
DeletedObject & WithKey(const Aws::String &value)
void SetKey(Aws::String &&value)
void SetDeleteMarkerVersionId(Aws::String &&value)
const Aws::String & GetKey() const
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
const Aws::String & GetDeleteMarkerVersionId() const
void SetDeleteMarker(bool value)
void SetDeleteMarkerVersionId(const char *value)
void SetVersionId(Aws::String &&value)
const Aws::String & GetVersionId() const
void SetVersionId(const char *value)
DeletedObject & WithDeleteMarkerVersionId(const char *value)
void SetDeleteMarkerVersionId(const Aws::String &value)
DeletedObject & WithVersionId(Aws::String &&value)
DeletedObject & WithKey(Aws::String &&value)
void SetVersionId(const Aws::String &value)
AWS_S3_API DeletedObject & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetKey(const Aws::String &value)
void SetKey(const char *value)
DeletedObject & WithVersionId(const char *value)
DeletedObject & WithDeleteMarkerVersionId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String