AWS SDK for C++  1.9.104
AWS SDK for C++
ReplaceableItem.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:
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 ReplaceableItem& WithName(const Aws::String& value) { SetName(value); return *this;}
73 
77  inline ReplaceableItem& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
78 
82  inline ReplaceableItem& WithName(const char* value) { SetName(value); return *this;}
83 
84 
88  inline const Aws::Vector<ReplaceableAttribute>& GetAttributes() const{ return m_attributes; }
89 
93  inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
94 
98  inline void SetAttributes(const Aws::Vector<ReplaceableAttribute>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
99 
103  inline void SetAttributes(Aws::Vector<ReplaceableAttribute>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
104 
108  inline ReplaceableItem& WithAttributes(const Aws::Vector<ReplaceableAttribute>& value) { SetAttributes(value); return *this;}
109 
113  inline ReplaceableItem& WithAttributes(Aws::Vector<ReplaceableAttribute>&& value) { SetAttributes(std::move(value)); return *this;}
114 
118  inline ReplaceableItem& AddAttributes(const ReplaceableAttribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
119 
123  inline ReplaceableItem& AddAttributes(ReplaceableAttribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; }
124 
125  private:
126 
127  Aws::String m_name;
128  bool m_nameHasBeenSet;
129 
131  bool m_attributesHasBeenSet;
132  };
133 
134 } // namespace Model
135 } // namespace SimpleDB
136 } // namespace Aws
Aws::SimpleDB::Model::ReplaceableItem::WithAttributes
ReplaceableItem & WithAttributes(const Aws::Vector< ReplaceableAttribute > &value)
Definition: ReplaceableItem.h:108
Aws::SimpleDB::Model::ReplaceableItem::WithName
ReplaceableItem & WithName(const Aws::String &value)
Definition: ReplaceableItem.h:72
Aws::SimpleDB::Model::ReplaceableItem::SetAttributes
void SetAttributes(Aws::Vector< ReplaceableAttribute > &&value)
Definition: ReplaceableItem.h:103
Aws::SimpleDB::Model::ReplaceableItem::SetAttributes
void SetAttributes(const Aws::Vector< ReplaceableAttribute > &value)
Definition: ReplaceableItem.h:98
Aws::SimpleDB::Model::ReplaceableItem::WithAttributes
ReplaceableItem & WithAttributes(Aws::Vector< ReplaceableAttribute > &&value)
Definition: ReplaceableItem.h:113
Aws::SimpleDB::Model::ReplaceableItem::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::SimpleDB::Model::ReplaceableItem::SetName
void SetName(Aws::String &&value)
Definition: ReplaceableItem.h:62
Aws::SimpleDB::Model::ReplaceableItem::WithName
ReplaceableItem & WithName(Aws::String &&value)
Definition: ReplaceableItem.h:77
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
Aws::SimpleDB::Model::ReplaceableItem::AddAttributes
ReplaceableItem & AddAttributes(const ReplaceableAttribute &value)
Definition: ReplaceableItem.h:118
AWSVector.h
Aws::SimpleDB::Model::ReplaceableItem::ReplaceableItem
ReplaceableItem()
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::SimpleDB::Model::ReplaceableItem::GetName
const Aws::String & GetName() const
Definition: ReplaceableItem.h:47
ReplaceableAttribute.h
Aws::SimpleDB::Model::ReplaceableItem::AddAttributes
ReplaceableItem & AddAttributes(ReplaceableAttribute &&value)
Definition: ReplaceableItem.h:123
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::SimpleDB::Model::ReplaceableItem::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::SimpleDB::Model::ReplaceableAttribute
Definition: ReplaceableAttribute.h:32
Aws::SimpleDB::Model::ReplaceableItem::SetName
void SetName(const Aws::String &value)
Definition: ReplaceableItem.h:57
Aws::SimpleDB::Model::ReplaceableItem::SetName
void SetName(const char *value)
Definition: ReplaceableItem.h:67
AWSString.h
Aws::SimpleDB::Model::ReplaceableItem
Definition: ReplaceableItem.h:34
Aws::SimpleDB::Model::ReplaceableItem::GetAttributes
const Aws::Vector< ReplaceableAttribute > & GetAttributes() const
Definition: ReplaceableItem.h:88
Aws::SimpleDB::Model::ReplaceableItem::AttributesHasBeenSet
bool AttributesHasBeenSet() const
Definition: ReplaceableItem.h:93
Aws::SimpleDB::Model::ReplaceableItem::WithName
ReplaceableItem & WithName(const char *value)
Definition: ReplaceableItem.h:82
Aws
Definition: AccessManagementClient.h:15
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
index
int index
Definition: cJSON.h:181
Aws::SimpleDB::Model::ReplaceableItem::ReplaceableItem
ReplaceableItem(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::SimpleDB::Model::ReplaceableItem::operator=
ReplaceableItem & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::SimpleDB::Model::ReplaceableItem::NameHasBeenSet
bool NameHasBeenSet() const
Definition: ReplaceableItem.h:52