AWS SDK for C++  1.9.104
AWS SDK for C++
DeletableItem.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 
29  {
30  public:
34 
35  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36  void OutputToStream(Aws::OStream& oStream, const char* location) const;
37 
38 
39 
40  inline const Aws::String& GetName() const{ return m_name; }
41 
42 
43  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 
45 
46  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
47 
48 
49  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
50 
51 
52  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
53 
54 
55  inline DeletableItem& WithName(const Aws::String& value) { SetName(value); return *this;}
56 
57 
58  inline DeletableItem& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
59 
60 
61  inline DeletableItem& WithName(const char* value) { SetName(value); return *this;}
62 
63 
64 
65  inline const Aws::Vector<Attribute>& GetAttributes() const{ return m_attributes; }
66 
67 
68  inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
69 
70 
71  inline void SetAttributes(const Aws::Vector<Attribute>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
72 
73 
74  inline void SetAttributes(Aws::Vector<Attribute>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
75 
76 
77  inline DeletableItem& WithAttributes(const Aws::Vector<Attribute>& value) { SetAttributes(value); return *this;}
78 
79 
80  inline DeletableItem& WithAttributes(Aws::Vector<Attribute>&& value) { SetAttributes(std::move(value)); return *this;}
81 
82 
83  inline DeletableItem& AddAttributes(const Attribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
84 
85 
86  inline DeletableItem& AddAttributes(Attribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; }
87 
88  private:
89 
90  Aws::String m_name;
91  bool m_nameHasBeenSet;
92 
93  Aws::Vector<Attribute> m_attributes;
94  bool m_attributesHasBeenSet;
95  };
96 
97 } // namespace Model
98 } // namespace SimpleDB
99 } // namespace Aws
Aws::SimpleDB::Model::DeletableItem::AddAttributes
DeletableItem & AddAttributes(const Attribute &value)
Definition: DeletableItem.h:83
Aws::SimpleDB::Model::DeletableItem::AddAttributes
DeletableItem & AddAttributes(Attribute &&value)
Definition: DeletableItem.h:86
Aws::SimpleDB::Model::DeletableItem::SetName
void SetName(const Aws::String &value)
Definition: DeletableItem.h:46
Aws::SimpleDB::Model::Attribute
Definition: Attribute.h:32
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
Aws::SimpleDB::Model::DeletableItem::AttributesHasBeenSet
bool AttributesHasBeenSet() const
Definition: DeletableItem.h:68
Aws::SimpleDB::Model::DeletableItem::operator=
DeletableItem & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSVector.h
Aws::SimpleDB::Model::DeletableItem::SetName
void SetName(const char *value)
Definition: DeletableItem.h:52
Aws::SimpleDB::Model::DeletableItem
Definition: DeletableItem.h:29
Aws::SimpleDB::Model::DeletableItem::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::SimpleDB::Model::DeletableItem::GetName
const Aws::String & GetName() const
Definition: DeletableItem.h:40
Aws::SimpleDB::Model::DeletableItem::WithName
DeletableItem & WithName(const Aws::String &value)
Definition: DeletableItem.h:55
Aws::SimpleDB::Model::DeletableItem::WithAttributes
DeletableItem & WithAttributes(Aws::Vector< Attribute > &&value)
Definition: DeletableItem.h:80
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::SimpleDB::Model::DeletableItem::SetName
void SetName(Aws::String &&value)
Definition: DeletableItem.h:49
Aws::SimpleDB::Model::DeletableItem::NameHasBeenSet
bool NameHasBeenSet() const
Definition: DeletableItem.h:43
Aws::SimpleDB::Model::DeletableItem::SetAttributes
void SetAttributes(Aws::Vector< Attribute > &&value)
Definition: DeletableItem.h:74
Attribute.h
Aws::SimpleDB::Model::DeletableItem::WithName
DeletableItem & WithName(Aws::String &&value)
Definition: DeletableItem.h:58
AWSString.h
Aws::SimpleDB::Model::DeletableItem::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::SimpleDB::Model::DeletableItem::GetAttributes
const Aws::Vector< Attribute > & GetAttributes() const
Definition: DeletableItem.h:65
Aws::SimpleDB::Model::DeletableItem::DeletableItem
DeletableItem(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::SimpleDB::Model::DeletableItem::SetAttributes
void SetAttributes(const Aws::Vector< Attribute > &value)
Definition: DeletableItem.h:71
Aws
Definition: AccessManagementClient.h:15
Aws::SimpleDB::Model::DeletableItem::WithAttributes
DeletableItem & WithAttributes(const Aws::Vector< Attribute > &value)
Definition: DeletableItem.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
index
int index
Definition: cJSON.h:181
Aws::SimpleDB::Model::DeletableItem::DeletableItem
DeletableItem()
Aws::SimpleDB::Model::DeletableItem::WithName
DeletableItem & WithName(const char *value)
Definition: DeletableItem.h:61