AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
Item.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
29class Item {
30 public:
31 AWS_SIMPLEDB_API Item() = default;
32 AWS_SIMPLEDB_API Item(const Aws::Utils::Xml::XmlNode& xmlNode);
33 AWS_SIMPLEDB_API Item& 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
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
50 Item& WithName(NameT&& value) {
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
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) {
64 m_alternateNameEncodingHasBeenSet = true;
65 m_alternateNameEncoding = std::forward<AlternateNameEncodingT>(value);
66 }
67 template <typename AlternateNameEncodingT = Aws::String>
68 Item& WithAlternateNameEncoding(AlternateNameEncodingT&& value) {
69 SetAlternateNameEncoding(std::forward<AlternateNameEncodingT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Vector<Attribute>& GetAttributes() const { return m_attributes; }
79 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
80 template <typename AttributesT = Aws::Vector<Attribute>>
81 void SetAttributes(AttributesT&& value) {
82 m_attributesHasBeenSet = true;
83 m_attributes = std::forward<AttributesT>(value);
84 }
85 template <typename AttributesT = Aws::Vector<Attribute>>
86 Item& WithAttributes(AttributesT&& value) {
87 SetAttributes(std::forward<AttributesT>(value));
88 return *this;
89 }
90 template <typename AttributesT = Attribute>
91 Item& AddAttributes(AttributesT&& value) {
92 m_attributesHasBeenSet = true;
93 m_attributes.emplace_back(std::forward<AttributesT>(value));
94 return *this;
95 }
97 private:
98 Aws::String m_name;
99
100 Aws::String m_alternateNameEncoding;
101
102 Aws::Vector<Attribute> m_attributes;
103 bool m_nameHasBeenSet = false;
104 bool m_alternateNameEncodingHasBeenSet = false;
105 bool m_attributesHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace SimpleDB
110} // namespace Aws
Item & WithAlternateNameEncoding(AlternateNameEncodingT &&value)
Definition Item.h:68
const Aws::String & GetAlternateNameEncoding() const
Definition Item.h:60
Item & AddAttributes(AttributesT &&value)
Definition Item.h:91
AWS_SIMPLEDB_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::Vector< Attribute > & GetAttributes() const
Definition Item.h:78
AWS_SIMPLEDB_API Item()=default
bool AlternateNameEncodingHasBeenSet() const
Definition Item.h:61
const Aws::String & GetName() const
Definition Item.h:42
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:43
Item & WithAttributes(AttributesT &&value)
Definition Item.h:86
void SetName(NameT &&value)
Definition Item.h:45
bool AttributesHasBeenSet() const
Definition Item.h:79
void SetAttributes(AttributesT &&value)
Definition Item.h:81
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:50
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