AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Delete.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/s3/S3_EXPORTS.h>
9#include <aws/s3/model/ObjectIdentifier.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace S3 {
20namespace Model {
21
27class Delete {
28 public:
29 AWS_S3_API Delete() = default;
30 AWS_S3_API Delete(const Aws::Utils::Xml::XmlNode& xmlNode);
31 AWS_S3_API Delete& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
32
33 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
34
36
43 inline const Aws::Vector<ObjectIdentifier>& GetObjects() const { return m_objects; }
44 inline bool ObjectsHasBeenSet() const { return m_objectsHasBeenSet; }
45 template <typename ObjectsT = Aws::Vector<ObjectIdentifier>>
46 void SetObjects(ObjectsT&& value) {
47 m_objectsHasBeenSet = true;
48 m_objects = std::forward<ObjectsT>(value);
49 }
50 template <typename ObjectsT = Aws::Vector<ObjectIdentifier>>
51 Delete& WithObjects(ObjectsT&& value) {
52 SetObjects(std::forward<ObjectsT>(value));
53 return *this;
54 }
55 template <typename ObjectsT = ObjectIdentifier>
56 Delete& AddObjects(ObjectsT&& value) {
57 m_objectsHasBeenSet = true;
58 m_objects.emplace_back(std::forward<ObjectsT>(value));
59 return *this;
60 }
62
64
68 inline bool GetQuiet() const { return m_quiet; }
69 inline bool QuietHasBeenSet() const { return m_quietHasBeenSet; }
70 inline void SetQuiet(bool value) {
71 m_quietHasBeenSet = true;
72 m_quiet = value;
73 }
74 inline Delete& WithQuiet(bool value) {
75 SetQuiet(value);
76 return *this;
77 }
79 private:
81
82 bool m_quiet{false};
83 bool m_objectsHasBeenSet = false;
84 bool m_quietHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace S3
89} // namespace Aws
AWS_S3_API Delete()=default
void SetObjects(ObjectsT &&value)
Definition Delete.h:46
bool GetQuiet() const
Definition Delete.h:68
void SetQuiet(bool value)
Definition Delete.h:70
bool QuietHasBeenSet() const
Definition Delete.h:69
bool ObjectsHasBeenSet() const
Definition Delete.h:44
AWS_S3_API Delete(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< ObjectIdentifier > & GetObjects() const
Definition Delete.h:43
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:74
Delete & AddObjects(ObjectsT &&value)
Definition Delete.h:56
Delete & WithObjects(ObjectsT &&value)
Definition Delete.h:51
std::vector< T, Aws::Allocator< T > > Vector