AWS SDK for C++  1.9.124
AWS SDK for C++
ListPredictorsResult.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 ForecastService
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
40  inline const Aws::Vector<PredictorSummary>& GetPredictors() const{ return m_predictors; }
41 
45  inline void SetPredictors(const Aws::Vector<PredictorSummary>& value) { m_predictors = value; }
46 
50  inline void SetPredictors(Aws::Vector<PredictorSummary>&& value) { m_predictors = std::move(value); }
51 
55  inline ListPredictorsResult& WithPredictors(const Aws::Vector<PredictorSummary>& value) { SetPredictors(value); return *this;}
56 
60  inline ListPredictorsResult& WithPredictors(Aws::Vector<PredictorSummary>&& value) { SetPredictors(std::move(value)); return *this;}
61 
65  inline ListPredictorsResult& AddPredictors(const PredictorSummary& value) { m_predictors.push_back(value); return *this; }
66 
70  inline ListPredictorsResult& AddPredictors(PredictorSummary&& value) { m_predictors.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 ListPredictorsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
102 
107  inline ListPredictorsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
108 
113  inline ListPredictorsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
114 
115  private:
116 
117  Aws::Vector<PredictorSummary> m_predictors;
118 
119  Aws::String m_nextToken;
120  };
121 
122 } // namespace Model
123 } // namespace ForecastService
124 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
ForecastService_EXPORTS.h
Aws::ForecastService::Model::ListPredictorsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListPredictorsResult.h:83
Aws::ForecastService::Model::ListPredictorsResult::operator=
ListPredictorsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ForecastService::Model::ListPredictorsResult
Definition: ListPredictorsResult.h:30
Aws::ForecastService::Model::ListPredictorsResult::WithPredictors
ListPredictorsResult & WithPredictors(Aws::Vector< PredictorSummary > &&value)
Definition: ListPredictorsResult.h:60
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ForecastService::Model::ListPredictorsResult::AddPredictors
ListPredictorsResult & AddPredictors(PredictorSummary &&value)
Definition: ListPredictorsResult.h:70
AWSVector.h
Aws::ForecastService::Model::ListPredictorsResult::AddPredictors
ListPredictorsResult & AddPredictors(const PredictorSummary &value)
Definition: ListPredictorsResult.h:65
Aws::ForecastService::Model::ListPredictorsResult::WithNextToken
ListPredictorsResult & WithNextToken(const Aws::String &value)
Definition: ListPredictorsResult.h:101
Aws::ForecastService::Model::ListPredictorsResult::GetPredictors
const Aws::Vector< PredictorSummary > & GetPredictors() const
Definition: ListPredictorsResult.h:40
Aws::ForecastService::Model::ListPredictorsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListPredictorsResult.h:95
Aws::ForecastService::Model::ListPredictorsResult::WithPredictors
ListPredictorsResult & WithPredictors(const Aws::Vector< PredictorSummary > &value)
Definition: ListPredictorsResult.h:55
Aws::ForecastService::Model::ListPredictorsResult::SetPredictors
void SetPredictors(const Aws::Vector< PredictorSummary > &value)
Definition: ListPredictorsResult.h:45
Aws::ForecastService::Model::ListPredictorsResult::ListPredictorsResult
ListPredictorsResult()
Aws::ForecastService::Model::ListPredictorsResult::ListPredictorsResult
ListPredictorsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWSString.h
Aws::ForecastService::Model::PredictorSummary
Definition: PredictorSummary.h:36
Aws::ForecastService::Model::ListPredictorsResult::WithNextToken
ListPredictorsResult & WithNextToken(const char *value)
Definition: ListPredictorsResult.h:113
Aws
Definition: AccessManagementClient.h:15
Aws::ForecastService::Model::ListPredictorsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListPredictorsResult.h:89
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ForecastService::Model::ListPredictorsResult::WithNextToken
ListPredictorsResult & WithNextToken(Aws::String &&value)
Definition: ListPredictorsResult.h:107
Aws::ForecastService::Model::ListPredictorsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListPredictorsResult.h:77
AWS_FORECASTSERVICE_API
#define AWS_FORECASTSERVICE_API
Definition: ForecastService_EXPORTS.h:28
PredictorSummary.h
Aws::ForecastService::Model::ListPredictorsResult::SetPredictors
void SetPredictors(Aws::Vector< PredictorSummary > &&value)
Definition: ListPredictorsResult.h:50