AWS SDK for C++  1.9.123
AWS SDK for C++
ListVodSourcesResult.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 MediaTailor
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
40  inline const Aws::Vector<VodSource>& GetItems() const{ return m_items; }
41 
45  inline void SetItems(const Aws::Vector<VodSource>& value) { m_items = value; }
46 
50  inline void SetItems(Aws::Vector<VodSource>&& value) { m_items = std::move(value); }
51 
55  inline ListVodSourcesResult& WithItems(const Aws::Vector<VodSource>& value) { SetItems(value); return *this;}
56 
60  inline ListVodSourcesResult& WithItems(Aws::Vector<VodSource>&& value) { SetItems(std::move(value)); return *this;}
61 
65  inline ListVodSourcesResult& AddItems(const VodSource& value) { m_items.push_back(value); return *this; }
66 
70  inline ListVodSourcesResult& AddItems(VodSource&& value) { m_items.push_back(std::move(value)); return *this; }
71 
72 
77  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
78 
83  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
84 
89  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
90 
95  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
96 
101  inline ListVodSourcesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
102 
107  inline ListVodSourcesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
108 
113  inline ListVodSourcesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
114 
115  private:
116 
117  Aws::Vector<VodSource> m_items;
118 
119  Aws::String m_nextToken;
120  };
121 
122 } // namespace Model
123 } // namespace MediaTailor
124 } // namespace Aws
Aws::MediaTailor::Model::ListVodSourcesResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListVodSourcesResult.h:77
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
AWS_MEDIATAILOR_API
#define AWS_MEDIATAILOR_API
Definition: MediaTailor_EXPORTS.h:28
Aws::MediaTailor::Model::ListVodSourcesResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListVodSourcesResult.h:83
Aws::MediaTailor::Model::VodSource
Definition: VodSource.h:36
Aws::MediaTailor::Model::ListVodSourcesResult::SetItems
void SetItems(const Aws::Vector< VodSource > &value)
Definition: ListVodSourcesResult.h:45
Aws::MediaTailor::Model::ListVodSourcesResult
Definition: ListVodSourcesResult.h:30
Aws::MediaTailor::Model::ListVodSourcesResult::SetItems
void SetItems(Aws::Vector< VodSource > &&value)
Definition: ListVodSourcesResult.h:50
VodSource.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::MediaTailor::Model::ListVodSourcesResult::ListVodSourcesResult
ListVodSourcesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::MediaTailor::Model::ListVodSourcesResult::WithNextToken
ListVodSourcesResult & WithNextToken(const char *value)
Definition: ListVodSourcesResult.h:113
Aws::MediaTailor::Model::ListVodSourcesResult::WithNextToken
ListVodSourcesResult & WithNextToken(const Aws::String &value)
Definition: ListVodSourcesResult.h:101
Aws::MediaTailor::Model::ListVodSourcesResult::WithItems
ListVodSourcesResult & WithItems(Aws::Vector< VodSource > &&value)
Definition: ListVodSourcesResult.h:60
Aws::MediaTailor::Model::ListVodSourcesResult::operator=
ListVodSourcesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWSString.h
MediaTailor_EXPORTS.h
Aws::MediaTailor::Model::ListVodSourcesResult::WithNextToken
ListVodSourcesResult & WithNextToken(Aws::String &&value)
Definition: ListVodSourcesResult.h:107
Aws::MediaTailor::Model::ListVodSourcesResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListVodSourcesResult.h:95
Aws::MediaTailor::Model::ListVodSourcesResult::AddItems
ListVodSourcesResult & AddItems(VodSource &&value)
Definition: ListVodSourcesResult.h:70
Aws::MediaTailor::Model::ListVodSourcesResult::WithItems
ListVodSourcesResult & WithItems(const Aws::Vector< VodSource > &value)
Definition: ListVodSourcesResult.h:55
Aws::MediaTailor::Model::ListVodSourcesResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListVodSourcesResult.h:89
Aws
Definition: AccessManagementClient.h:15
Aws::MediaTailor::Model::ListVodSourcesResult::ListVodSourcesResult
ListVodSourcesResult()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MediaTailor::Model::ListVodSourcesResult::GetItems
const Aws::Vector< VodSource > & GetItems() const
Definition: ListVodSourcesResult.h:40
Aws::MediaTailor::Model::ListVodSourcesResult::AddItems
ListVodSourcesResult & AddItems(const VodSource &value)
Definition: ListVodSourcesResult.h:65