AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Delete.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/s3/model/ObjectIdentifier.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:
34 AWS_S3_API Delete() = default;
35 AWS_S3_API Delete(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_S3_API Delete& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39
40
42
49 inline const Aws::Vector<ObjectIdentifier>& GetObjects() const { return m_objects; }
50 inline bool ObjectsHasBeenSet() const { return m_objectsHasBeenSet; }
51 template<typename ObjectsT = Aws::Vector<ObjectIdentifier>>
52 void SetObjects(ObjectsT&& value) { m_objectsHasBeenSet = true; m_objects = std::forward<ObjectsT>(value); }
53 template<typename ObjectsT = Aws::Vector<ObjectIdentifier>>
54 Delete& WithObjects(ObjectsT&& value) { SetObjects(std::forward<ObjectsT>(value)); return *this;}
55 template<typename ObjectsT = ObjectIdentifier>
56 Delete& AddObjects(ObjectsT&& value) { m_objectsHasBeenSet = true; m_objects.emplace_back(std::forward<ObjectsT>(value)); return *this; }
58
60
64 inline bool GetQuiet() const { return m_quiet; }
65 inline bool QuietHasBeenSet() const { return m_quietHasBeenSet; }
66 inline void SetQuiet(bool value) { m_quietHasBeenSet = true; m_quiet = value; }
67 inline Delete& WithQuiet(bool value) { SetQuiet(value); return *this;}
69 private:
70
72 bool m_objectsHasBeenSet = false;
73
74 bool m_quiet{false};
75 bool m_quietHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace S3
80} // namespace Aws
AWS_S3_API Delete()=default
void SetObjects(ObjectsT &&value)
Definition Delete.h:52
bool GetQuiet() const
Definition Delete.h:64
void SetQuiet(bool value)
Definition Delete.h:66
bool QuietHasBeenSet() const
Definition Delete.h:65
bool ObjectsHasBeenSet() const
Definition Delete.h:50
AWS_S3_API Delete(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< ObjectIdentifier > & GetObjects() const
Definition Delete.h:49
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_S3_API Delete & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Delete & WithQuiet(bool value)
Definition Delete.h:67
Delete & AddObjects(ObjectsT &&value)
Definition Delete.h:56
Delete & WithObjects(ObjectsT &&value)
Definition Delete.h:54
std::vector< T, Aws::Allocator< T > > Vector