AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
DeletableItem.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/sdb/SimpleDB_EXPORTS.h>
11#include <aws/sdb/model/Attribute.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace SimpleDB {
22namespace Model {
23
25 public:
26 AWS_SIMPLEDB_API DeletableItem() = default;
27 AWS_SIMPLEDB_API DeletableItem(const Aws::Utils::Xml::XmlNode& xmlNode);
28 AWS_SIMPLEDB_API DeletableItem& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
29
30 AWS_SIMPLEDB_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
31 AWS_SIMPLEDB_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
32
34
35 inline const Aws::String& GetName() const { return m_name; }
36 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
37 template <typename NameT = Aws::String>
38 void SetName(NameT&& value) {
39 m_nameHasBeenSet = true;
40 m_name = std::forward<NameT>(value);
41 }
42 template <typename NameT = Aws::String>
43 DeletableItem& WithName(NameT&& value) {
44 SetName(std::forward<NameT>(value));
45 return *this;
46 }
48
50
51 inline const Aws::Vector<Attribute>& GetAttributes() const { return m_attributes; }
52 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
53 template <typename AttributesT = Aws::Vector<Attribute>>
54 void SetAttributes(AttributesT&& value) {
55 m_attributesHasBeenSet = true;
56 m_attributes = std::forward<AttributesT>(value);
57 }
58 template <typename AttributesT = Aws::Vector<Attribute>>
59 DeletableItem& WithAttributes(AttributesT&& value) {
60 SetAttributes(std::forward<AttributesT>(value));
61 return *this;
62 }
63 template <typename AttributesT = Attribute>
64 DeletableItem& AddAttributes(AttributesT&& value) {
65 m_attributesHasBeenSet = true;
66 m_attributes.emplace_back(std::forward<AttributesT>(value));
67 return *this;
68 }
70 private:
71 Aws::String m_name;
72
73 Aws::Vector<Attribute> m_attributes;
74 bool m_nameHasBeenSet = false;
75 bool m_attributesHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace SimpleDB
80} // namespace Aws
AWS_SIMPLEDB_API DeletableItem(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetAttributes(AttributesT &&value)
DeletableItem & WithName(NameT &&value)
DeletableItem & WithAttributes(AttributesT &&value)
const Aws::Vector< Attribute > & GetAttributes() const
AWS_SIMPLEDB_API DeletableItem()=default
const Aws::String & GetName() const
AWS_SIMPLEDB_API DeletableItem & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_SIMPLEDB_API void OutputToStream(Aws::OStream &oStream, const char *location) const
DeletableItem & AddAttributes(AttributesT &&value)
AWS_SIMPLEDB_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream