AWS SDK for C++  1.9.107
AWS SDK for C++
SelectResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <aws/sdb/model/Item.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 template<typename RESULT_TYPE>
17 class AmazonWebServiceResult;
18 
19 namespace Utils
20 {
21 namespace Xml
22 {
23  class XmlDocument;
24 } // namespace Xml
25 } // namespace Utils
26 namespace SimpleDB
27 {
28 namespace Model
29 {
31  {
32  public:
36 
37 
41  inline const Aws::Vector<Item>& GetItems() const{ return m_items; }
42 
46  inline void SetItems(const Aws::Vector<Item>& value) { m_items = value; }
47 
51  inline void SetItems(Aws::Vector<Item>&& value) { m_items = std::move(value); }
52 
56  inline SelectResult& WithItems(const Aws::Vector<Item>& value) { SetItems(value); return *this;}
57 
61  inline SelectResult& WithItems(Aws::Vector<Item>&& value) { SetItems(std::move(value)); return *this;}
62 
66  inline SelectResult& AddItems(const Item& value) { m_items.push_back(value); return *this; }
67 
71  inline SelectResult& AddItems(Item&& value) { m_items.push_back(std::move(value)); return *this; }
72 
73 
79  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
80 
86  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
87 
93  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
94 
100  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
101 
107  inline SelectResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
108 
114  inline SelectResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
115 
121  inline SelectResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
122 
123 
124 
125  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
126 
127 
128  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
129 
130 
131  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
132 
133 
134  inline SelectResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
135 
136 
137  inline SelectResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
138 
139  private:
140 
141  Aws::Vector<Item> m_items;
142 
143  Aws::String m_nextToken;
144 
145  ResponseMetadata m_responseMetadata;
146  };
147 
148 } // namespace Model
149 } // namespace SimpleDB
150 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::SimpleDB::Model::SelectResult::SetNextToken
void SetNextToken(const char *value)
Definition: SelectResult.h:100
Aws::SimpleDB::Model::SelectResult::WithNextToken
SelectResult & WithNextToken(const Aws::String &value)
Definition: SelectResult.h:107
Aws::SimpleDB::Model::SelectResult::WithResponseMetadata
SelectResult & WithResponseMetadata(const ResponseMetadata &value)
Definition: SelectResult.h:134
Aws::SimpleDB::Model::SelectResult
Definition: SelectResult.h:31
Aws::SimpleDB::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::SimpleDB::Model::SelectResult::SetItems
void SetItems(Aws::Vector< Item > &&value)
Definition: SelectResult.h:51
Aws::SimpleDB::Model::SelectResult::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: SelectResult.h:125
Aws::SimpleDB::Model::SelectResult::AddItems
SelectResult & AddItems(Item &&value)
Definition: SelectResult.h:71
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SimpleDB::Model::SelectResult::WithResponseMetadata
SelectResult & WithResponseMetadata(ResponseMetadata &&value)
Definition: SelectResult.h:137
Aws::SimpleDB::Model::SelectResult::GetItems
const Aws::Vector< Item > & GetItems() const
Definition: SelectResult.h:41
Aws::SimpleDB::Model::SelectResult::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: SelectResult.h:131
AWSVector.h
Aws::SimpleDB::Model::SelectResult::AddItems
SelectResult & AddItems(const Item &value)
Definition: SelectResult.h:66
Aws::SimpleDB::Model::SelectResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: SelectResult.h:79
Aws::SimpleDB::Model::SelectResult::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: SelectResult.h:128
Aws::SimpleDB::Model::SelectResult::WithNextToken
SelectResult & WithNextToken(Aws::String &&value)
Definition: SelectResult.h:114
Aws::SimpleDB::Model::SelectResult::WithNextToken
SelectResult & WithNextToken(const char *value)
Definition: SelectResult.h:121
Aws::SimpleDB::Model::SelectResult::SetItems
void SetItems(const Aws::Vector< Item > &value)
Definition: SelectResult.h:46
Aws::SimpleDB::Model::SelectResult::SelectResult
SelectResult()
AWSString.h
Aws::SimpleDB::Model::SelectResult::SelectResult
SelectResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::SimpleDB::Model::Item
Definition: Item.h:34
Aws::SimpleDB::Model::SelectResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: SelectResult.h:93
ResponseMetadata.h
Aws::SimpleDB::Model::SelectResult::WithItems
SelectResult & WithItems(const Aws::Vector< Item > &value)
Definition: SelectResult.h:56
Item.h
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
Aws::SimpleDB::Model::SelectResult::operator=
SelectResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::SimpleDB::Model::SelectResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: SelectResult.h:86
Aws::SimpleDB::Model::SelectResult::WithItems
SelectResult & WithItems(Aws::Vector< Item > &&value)
Definition: SelectResult.h:61