AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
51 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
52 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
53 inline Item& WithName(const Aws::String& value) { SetName(value); return *this;}
54 inline Item& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
55 inline Item& WithName(const char* value) { SetName(value); return *this;}
57
59
62 inline const Aws::String& GetAlternateNameEncoding() const{ return m_alternateNameEncoding; }
63 inline bool AlternateNameEncodingHasBeenSet() const { return m_alternateNameEncodingHasBeenSet; }
64 inline void SetAlternateNameEncoding(const Aws::String& value) { m_alternateNameEncodingHasBeenSet = true; m_alternateNameEncoding = value; }
65 inline void SetAlternateNameEncoding(Aws::String&& value) { m_alternateNameEncodingHasBeenSet = true; m_alternateNameEncoding = std::move(value); }
66 inline void SetAlternateNameEncoding(const char* value) { m_alternateNameEncodingHasBeenSet = true; m_alternateNameEncoding.assign(value); }
67 inline Item& WithAlternateNameEncoding(const Aws::String& value) { SetAlternateNameEncoding(value); return *this;}
68 inline Item& WithAlternateNameEncoding(Aws::String&& value) { SetAlternateNameEncoding(std::move(value)); return *this;}
69 inline Item& WithAlternateNameEncoding(const char* value) { SetAlternateNameEncoding(value); return *this;}
71
73
76 inline const Aws::Vector<Attribute>& GetAttributes() const{ return m_attributes; }
77 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
78 inline void SetAttributes(const Aws::Vector<Attribute>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
79 inline void SetAttributes(Aws::Vector<Attribute>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
80 inline Item& WithAttributes(const Aws::Vector<Attribute>& value) { SetAttributes(value); return *this;}
81 inline Item& WithAttributes(Aws::Vector<Attribute>&& value) { SetAttributes(std::move(value)); return *this;}
82 inline Item& AddAttributes(const Attribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
83 inline Item& AddAttributes(Attribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; }
85 private:
86
87 Aws::String m_name;
88 bool m_nameHasBeenSet = false;
89
90 Aws::String m_alternateNameEncoding;
91 bool m_alternateNameEncodingHasBeenSet = false;
92
93 Aws::Vector<Attribute> m_attributes;
94 bool m_attributesHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace SimpleDB
99} // namespace Aws
Item & WithAlternateNameEncoding(const Aws::String &value)
Definition Item.h:67
const Aws::String & GetAlternateNameEncoding() const
Definition Item.h:62
void SetName(const char *value)
Definition Item.h:52
void SetAttributes(Aws::Vector< Attribute > &&value)
Definition Item.h:79
AWS_SIMPLEDB_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetAttributes(const Aws::Vector< Attribute > &value)
Definition Item.h:78
void SetAlternateNameEncoding(Aws::String &&value)
Definition Item.h:65
const Aws::Vector< Attribute > & GetAttributes() const
Definition Item.h:76
void SetAlternateNameEncoding(const Aws::String &value)
Definition Item.h:64
Item & WithAttributes(const Aws::Vector< Attribute > &value)
Definition Item.h:80
bool AlternateNameEncodingHasBeenSet() const
Definition Item.h:63
void SetName(Aws::String &&value)
Definition Item.h:51
Item & WithName(const Aws::String &value)
Definition Item.h:53
void SetName(const Aws::String &value)
Definition Item.h:50
const Aws::String & GetName() const
Definition Item.h:48
Item & WithAlternateNameEncoding(Aws::String &&value)
Definition Item.h:68
Item & WithName(const char *value)
Definition Item.h:55
Item & WithName(Aws::String &&value)
Definition Item.h:54
Item & WithAttributes(Aws::Vector< Attribute > &&value)
Definition Item.h:81
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 & AddAttributes(Attribute &&value)
Definition Item.h:83
void SetAlternateNameEncoding(const char *value)
Definition Item.h:66
Item & WithAlternateNameEncoding(const char *value)
Definition Item.h:69
bool AttributesHasBeenSet() const
Definition Item.h:77
AWS_SIMPLEDB_API Item()
Item & AddAttributes(const Attribute &value)
Definition Item.h:82
AWS_SIMPLEDB_API Item & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
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