AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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