AWS SDK for C++  1.9.16
AWS SDK for C++
ListItemsResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace MediaStoreData
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
40  inline const Aws::Vector<Item>& GetItems() const{ return m_items; }
41 
45  inline void SetItems(const Aws::Vector<Item>& value) { m_items = value; }
46 
50  inline void SetItems(Aws::Vector<Item>&& value) { m_items = std::move(value); }
51 
55  inline ListItemsResult& WithItems(const Aws::Vector<Item>& value) { SetItems(value); return *this;}
56 
60  inline ListItemsResult& WithItems(Aws::Vector<Item>&& value) { SetItems(std::move(value)); return *this;}
61 
65  inline ListItemsResult& AddItems(const Item& value) { m_items.push_back(value); return *this; }
66 
70  inline ListItemsResult& AddItems(Item&& value) { m_items.push_back(std::move(value)); return *this; }
71 
72 
80  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
81 
89  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
90 
98  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
99 
107  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
108 
116  inline ListItemsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
117 
125  inline ListItemsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
126 
134  inline ListItemsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
135 
136  private:
137 
138  Aws::Vector<Item> m_items;
139 
140  Aws::String m_nextToken;
141  };
142 
143 } // namespace Model
144 } // namespace MediaStoreData
145 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::MediaStoreData::Model::ListItemsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListItemsResult.h:89
MediaStoreData_EXPORTS.h
Aws::MediaStoreData::Model::ListItemsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListItemsResult.h:80
AWS_MEDIASTOREDATA_API
#define AWS_MEDIASTOREDATA_API
Definition: MediaStoreData_EXPORTS.h:28
Item.h
Aws::MediaStoreData::Model::ListItemsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListItemsResult.h:98
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::MediaStoreData::Model::ListItemsResult::WithNextToken
ListItemsResult & WithNextToken(const Aws::String &value)
Definition: ListItemsResult.h:116
Aws::MediaStoreData::Model::ListItemsResult::AddItems
ListItemsResult & AddItems(const Item &value)
Definition: ListItemsResult.h:65
Aws::MediaStoreData::Model::ListItemsResult::WithItems
ListItemsResult & WithItems(const Aws::Vector< Item > &value)
Definition: ListItemsResult.h:55
Aws::MediaStoreData::Model::ListItemsResult::GetItems
const Aws::Vector< Item > & GetItems() const
Definition: ListItemsResult.h:40
Aws::MediaStoreData::Model::ListItemsResult::AddItems
ListItemsResult & AddItems(Item &&value)
Definition: ListItemsResult.h:70
Aws::MediaStoreData::Model::ListItemsResult::WithNextToken
ListItemsResult & WithNextToken(const char *value)
Definition: ListItemsResult.h:134
Aws::MediaStoreData::Model::Item
Definition: Item.h:34
Aws::MediaStoreData::Model::ListItemsResult::WithItems
ListItemsResult & WithItems(Aws::Vector< Item > &&value)
Definition: ListItemsResult.h:60
Aws::MediaStoreData::Model::ListItemsResult::WithNextToken
ListItemsResult & WithNextToken(Aws::String &&value)
Definition: ListItemsResult.h:125
Aws::MediaStoreData::Model::ListItemsResult::SetItems
void SetItems(Aws::Vector< Item > &&value)
Definition: ListItemsResult.h:50
AWSString.h
Aws::MediaStoreData::Model::ListItemsResult::SetItems
void SetItems(const Aws::Vector< Item > &value)
Definition: ListItemsResult.h:45
Aws::MediaStoreData::Model::ListItemsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListItemsResult.h:107
Aws
Definition: AccessManagementClient.h:15
Aws::MediaStoreData::Model::ListItemsResult
Definition: ListItemsResult.h:30
Aws::MediaStoreData::Model::ListItemsResult::operator=
ListItemsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MediaStoreData::Model::ListItemsResult::ListItemsResult
ListItemsResult()
Aws::MediaStoreData::Model::ListItemsResult::ListItemsResult
ListItemsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)