AWS SDK for C++  1.9.107
AWS SDK for C++
Item.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace SimpleDB
24 {
25 namespace Model
26 {
27 
34  {
35  public:
36  Item();
37  Item(const Aws::Utils::Xml::XmlNode& xmlNode);
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
47  inline const Aws::String& GetName() const{ return m_name; }
48 
52  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 
57  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
58 
62  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
63 
67  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
68 
72  inline Item& WithName(const Aws::String& value) { SetName(value); return *this;}
73 
77  inline Item& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
78 
82  inline Item& WithName(const char* value) { SetName(value); return *this;}
83 
84 
88  inline const Aws::String& GetAlternateNameEncoding() const{ return m_alternateNameEncoding; }
89 
93  inline bool AlternateNameEncodingHasBeenSet() const { return m_alternateNameEncodingHasBeenSet; }
94 
98  inline void SetAlternateNameEncoding(const Aws::String& value) { m_alternateNameEncodingHasBeenSet = true; m_alternateNameEncoding = value; }
99 
103  inline void SetAlternateNameEncoding(Aws::String&& value) { m_alternateNameEncodingHasBeenSet = true; m_alternateNameEncoding = std::move(value); }
104 
108  inline void SetAlternateNameEncoding(const char* value) { m_alternateNameEncodingHasBeenSet = true; m_alternateNameEncoding.assign(value); }
109 
113  inline Item& WithAlternateNameEncoding(const Aws::String& value) { SetAlternateNameEncoding(value); return *this;}
114 
118  inline Item& WithAlternateNameEncoding(Aws::String&& value) { SetAlternateNameEncoding(std::move(value)); return *this;}
119 
123  inline Item& WithAlternateNameEncoding(const char* value) { SetAlternateNameEncoding(value); return *this;}
124 
125 
129  inline const Aws::Vector<Attribute>& GetAttributes() const{ return m_attributes; }
130 
134  inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
135 
139  inline void SetAttributes(const Aws::Vector<Attribute>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
140 
144  inline void SetAttributes(Aws::Vector<Attribute>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
145 
149  inline Item& WithAttributes(const Aws::Vector<Attribute>& value) { SetAttributes(value); return *this;}
150 
154  inline Item& WithAttributes(Aws::Vector<Attribute>&& value) { SetAttributes(std::move(value)); return *this;}
155 
159  inline Item& AddAttributes(const Attribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
160 
164  inline Item& AddAttributes(Attribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; }
165 
166  private:
167 
168  Aws::String m_name;
169  bool m_nameHasBeenSet;
170 
171  Aws::String m_alternateNameEncoding;
172  bool m_alternateNameEncodingHasBeenSet;
173 
174  Aws::Vector<Attribute> m_attributes;
175  bool m_attributesHasBeenSet;
176  };
177 
178 } // namespace Model
179 } // namespace SimpleDB
180 } // namespace Aws
Aws::SimpleDB::Model::Item::GetName
const Aws::String & GetName() const
Definition: Item.h:47
Aws::SimpleDB::Model::Item::SetName
void SetName(const char *value)
Definition: Item.h:67
Aws::SimpleDB::Model::Item::Item
Item(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::SimpleDB::Model::Item::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::SimpleDB::Model::Item::SetAttributes
void SetAttributes(const Aws::Vector< Attribute > &value)
Definition: Item.h:139
Aws::SimpleDB::Model::Item::Item
Item()
Aws::SimpleDB::Model::Attribute
Definition: Attribute.h:32
Aws::SimpleDB::Model::Item::GetAlternateNameEncoding
const Aws::String & GetAlternateNameEncoding() const
Definition: Item.h:88
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
Aws::SimpleDB::Model::Item::SetAlternateNameEncoding
void SetAlternateNameEncoding(const char *value)
Definition: Item.h:108
AWSVector.h
Aws::SimpleDB::Model::Item::WithAlternateNameEncoding
Item & WithAlternateNameEncoding(const char *value)
Definition: Item.h:123
Aws::SimpleDB::Model::Item::WithAttributes
Item & WithAttributes(const Aws::Vector< Attribute > &value)
Definition: Item.h:149
Aws::SimpleDB::Model::Item::WithName
Item & WithName(const Aws::String &value)
Definition: Item.h:72
Aws::SimpleDB::Model::Item::SetAlternateNameEncoding
void SetAlternateNameEncoding(Aws::String &&value)
Definition: Item.h:103
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::SimpleDB::Model::Item::NameHasBeenSet
bool NameHasBeenSet() const
Definition: Item.h:52
Aws::SimpleDB::Model::Item::AddAttributes
Item & AddAttributes(const Attribute &value)
Definition: Item.h:159
Aws::SimpleDB::Model::Item::SetName
void SetName(const Aws::String &value)
Definition: Item.h:57
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::SimpleDB::Model::Item::SetName
void SetName(Aws::String &&value)
Definition: Item.h:62
Aws::SimpleDB::Model::Item::AttributesHasBeenSet
bool AttributesHasBeenSet() const
Definition: Item.h:134
Aws::SimpleDB::Model::Item::WithAlternateNameEncoding
Item & WithAlternateNameEncoding(const Aws::String &value)
Definition: Item.h:113
Attribute.h
AWSString.h
Aws::SimpleDB::Model::Item
Definition: Item.h:34
Aws::SimpleDB::Model::Item::AddAttributes
Item & AddAttributes(Attribute &&value)
Definition: Item.h:164
Aws::SimpleDB::Model::Item::WithAlternateNameEncoding
Item & WithAlternateNameEncoding(Aws::String &&value)
Definition: Item.h:118
Aws::SimpleDB::Model::Item::AlternateNameEncodingHasBeenSet
bool AlternateNameEncodingHasBeenSet() const
Definition: Item.h:93
Aws::SimpleDB::Model::Item::SetAttributes
void SetAttributes(Aws::Vector< Attribute > &&value)
Definition: Item.h:144
Aws
Definition: AccessManagementClient.h:15
Aws::SimpleDB::Model::Item::GetAttributes
const Aws::Vector< Attribute > & GetAttributes() const
Definition: Item.h:129
Aws::SimpleDB::Model::Item::WithName
Item & WithName(Aws::String &&value)
Definition: Item.h:77
AWS_SIMPLEDB_API
#define AWS_SIMPLEDB_API
Definition: SimpleDB_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
SimpleDB_EXPORTS.h
Aws::SimpleDB::Model::Item::WithName
Item & WithName(const char *value)
Definition: Item.h:82
index
int index
Definition: cJSON.h:181
Aws::SimpleDB::Model::Item::WithAttributes
Item & WithAttributes(Aws::Vector< Attribute > &&value)
Definition: Item.h:154
Aws::SimpleDB::Model::Item::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::SimpleDB::Model::Item::SetAlternateNameEncoding
void SetAlternateNameEncoding(const Aws::String &value)
Definition: Item.h:98
Aws::SimpleDB::Model::Item::operator=
Item & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)