AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Item.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
33 class Item
34 {
35 public:
36 AWS_SIMPLEDB_API Item() = default;
37 AWS_SIMPLEDB_API Item(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_SIMPLEDB_API Item& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_SIMPLEDB_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_SIMPLEDB_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetName() const { return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 template<typename NameT = Aws::String>
51 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
52 template<typename NameT = Aws::String>
53 Item& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
55
57
60 inline const Aws::String& GetAlternateNameEncoding() const { return m_alternateNameEncoding; }
61 inline bool AlternateNameEncodingHasBeenSet() const { return m_alternateNameEncodingHasBeenSet; }
62 template<typename AlternateNameEncodingT = Aws::String>
63 void SetAlternateNameEncoding(AlternateNameEncodingT&& value) { m_alternateNameEncodingHasBeenSet = true; m_alternateNameEncoding = std::forward<AlternateNameEncodingT>(value); }
64 template<typename AlternateNameEncodingT = Aws::String>
65 Item& WithAlternateNameEncoding(AlternateNameEncodingT&& value) { SetAlternateNameEncoding(std::forward<AlternateNameEncodingT>(value)); return *this;}
67
69
72 inline const Aws::Vector<Attribute>& GetAttributes() const { return m_attributes; }
73 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
74 template<typename AttributesT = Aws::Vector<Attribute>>
75 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
76 template<typename AttributesT = Aws::Vector<Attribute>>
77 Item& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
78 template<typename AttributesT = Attribute>
79 Item& AddAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes.emplace_back(std::forward<AttributesT>(value)); return *this; }
81 private:
82
83 Aws::String m_name;
84 bool m_nameHasBeenSet = false;
85
86 Aws::String m_alternateNameEncoding;
87 bool m_alternateNameEncodingHasBeenSet = false;
88
89 Aws::Vector<Attribute> m_attributes;
90 bool m_attributesHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace SimpleDB
95} // namespace Aws
Item & WithAlternateNameEncoding(AlternateNameEncodingT &&value)
Definition Item.h:65
const Aws::String & GetAlternateNameEncoding() const
Definition Item.h:60
Item & AddAttributes(AttributesT &&value)
Definition Item.h:79
AWS_SIMPLEDB_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::Vector< Attribute > & GetAttributes() const
Definition Item.h:72
AWS_SIMPLEDB_API Item()=default
bool AlternateNameEncodingHasBeenSet() const
Definition Item.h:61
const Aws::String & GetName() const
Definition Item.h:48
AWS_SIMPLEDB_API Item(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_SIMPLEDB_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool NameHasBeenSet() const
Definition Item.h:49
Item & WithAttributes(AttributesT &&value)
Definition Item.h:77
void SetName(NameT &&value)
Definition Item.h:51
bool AttributesHasBeenSet() const
Definition Item.h:73
void SetAttributes(AttributesT &&value)
Definition Item.h:75
void SetAlternateNameEncoding(AlternateNameEncodingT &&value)
Definition Item.h:63
AWS_SIMPLEDB_API Item & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Item & WithName(NameT &&value)
Definition Item.h:53
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