AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
Delete.h
Go to the documentation of this file.
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace S3
22{
23namespace Model
24{
25
31 class Delete
32 {
33 public:
37
39
40
44 inline const Aws::Vector<ObjectIdentifier>& GetObjects() const{ return m_objects; }
45
49 inline bool ObjectsHasBeenSet() const { return m_objectsHasBeenSet; }
50
54 inline void SetObjects(const Aws::Vector<ObjectIdentifier>& value) { m_objectsHasBeenSet = true; m_objects = value; }
55
59 inline void SetObjects(Aws::Vector<ObjectIdentifier>&& value) { m_objectsHasBeenSet = true; m_objects = std::move(value); }
60
64 inline Delete& WithObjects(const Aws::Vector<ObjectIdentifier>& value) { SetObjects(value); return *this;}
65
69 inline Delete& WithObjects(Aws::Vector<ObjectIdentifier>&& value) { SetObjects(std::move(value)); return *this;}
70
74 inline Delete& AddObjects(const ObjectIdentifier& value) { m_objectsHasBeenSet = true; m_objects.push_back(value); return *this; }
75
79 inline Delete& AddObjects(ObjectIdentifier&& value) { m_objectsHasBeenSet = true; m_objects.push_back(std::move(value)); return *this; }
80
81
86 inline bool GetQuiet() const{ return m_quiet; }
87
92 inline bool QuietHasBeenSet() const { return m_quietHasBeenSet; }
93
98 inline void SetQuiet(bool value) { m_quietHasBeenSet = true; m_quiet = value; }
99
104 inline Delete& WithQuiet(bool value) { SetQuiet(value); return *this;}
105
106 private:
107
109 bool m_objectsHasBeenSet = false;
110
111 bool m_quiet;
112 bool m_quietHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace S3
117} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
bool GetQuiet() const
Definition: Delete.h:86
void SetQuiet(bool value)
Definition: Delete.h:98
bool QuietHasBeenSet() const
Definition: Delete.h:92
bool ObjectsHasBeenSet() const
Definition: Delete.h:49
AWS_S3_API Delete(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< ObjectIdentifier > & GetObjects() const
Definition: Delete.h:44
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Delete & WithObjects(const Aws::Vector< ObjectIdentifier > &value)
Definition: Delete.h:64
AWS_S3_API Delete & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Delete & AddObjects(const ObjectIdentifier &value)
Definition: Delete.h:74
Delete & WithQuiet(bool value)
Definition: Delete.h:104
void SetObjects(const Aws::Vector< ObjectIdentifier > &value)
Definition: Delete.h:54
Delete & WithObjects(Aws::Vector< ObjectIdentifier > &&value)
Definition: Delete.h:69
Delete & AddObjects(ObjectIdentifier &&value)
Definition: Delete.h:79
void SetObjects(Aws::Vector< ObjectIdentifier > &&value)
Definition: Delete.h:59
std::vector< T, Aws::Allocator< T > > Vector