AWS SDK for C++  1.9.71
AWS SDK for C++
ListModelsResult.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 SageMaker
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
41  inline const Aws::Vector<ModelSummary>& GetModels() const{ return m_models; }
42 
47  inline void SetModels(const Aws::Vector<ModelSummary>& value) { m_models = value; }
48 
53  inline void SetModels(Aws::Vector<ModelSummary>&& value) { m_models = std::move(value); }
54 
59  inline ListModelsResult& WithModels(const Aws::Vector<ModelSummary>& value) { SetModels(value); return *this;}
60 
65  inline ListModelsResult& WithModels(Aws::Vector<ModelSummary>&& value) { SetModels(std::move(value)); return *this;}
66 
71  inline ListModelsResult& AddModels(const ModelSummary& value) { m_models.push_back(value); return *this; }
72 
77  inline ListModelsResult& AddModels(ModelSummary&& value) { m_models.push_back(std::move(value)); return *this; }
78 
79 
84  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
85 
90  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
91 
96  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
97 
102  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
103 
108  inline ListModelsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
109 
114  inline ListModelsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
115 
120  inline ListModelsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
121 
122  private:
123 
124  Aws::Vector<ModelSummary> m_models;
125 
126  Aws::String m_nextToken;
127  };
128 
129 } // namespace Model
130 } // namespace SageMaker
131 } // namespace Aws
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
SageMaker_EXPORTS.h
Aws::SageMaker::Model::ListModelsResult::AddModels
ListModelsResult & AddModels(ModelSummary &&value)
Definition: ListModelsResult.h:77
Aws::SageMaker::Model::ListModelsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListModelsResult.h:84
Aws::SageMaker::Model::ListModelsResult
Definition: ListModelsResult.h:30
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SageMaker::Model::ListModelsResult::WithModels
ListModelsResult & WithModels(const Aws::Vector< ModelSummary > &value)
Definition: ListModelsResult.h:59
AWSVector.h
Aws::SageMaker::Model::ListModelsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListModelsResult.h:96
Aws::SageMaker::Model::ListModelsResult::SetModels
void SetModels(const Aws::Vector< ModelSummary > &value)
Definition: ListModelsResult.h:47
Aws::SageMaker::Model::ListModelsResult::WithNextToken
ListModelsResult & WithNextToken(const char *value)
Definition: ListModelsResult.h:120
Aws::SageMaker::Model::ListModelsResult::SetModels
void SetModels(Aws::Vector< ModelSummary > &&value)
Definition: ListModelsResult.h:53
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
AWSString.h
Aws::SageMaker::Model::ListModelsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListModelsResult.h:102
Aws::SageMaker::Model::ListModelsResult::operator=
ListModelsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::SageMaker::Model::ListModelsResult::AddModels
ListModelsResult & AddModels(const ModelSummary &value)
Definition: ListModelsResult.h:71
Aws::SageMaker::Model::ListModelsResult::WithNextToken
ListModelsResult & WithNextToken(Aws::String &&value)
Definition: ListModelsResult.h:114
Aws::SageMaker::Model::ModelSummary
Definition: ModelSummary.h:33
Aws::SageMaker::Model::ListModelsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListModelsResult.h:90
Aws
Definition: AccessManagementClient.h:15
Aws::SageMaker::Model::ListModelsResult::WithModels
ListModelsResult & WithModels(Aws::Vector< ModelSummary > &&value)
Definition: ListModelsResult.h:65
ModelSummary.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SageMaker::Model::ListModelsResult::ListModelsResult
ListModelsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::SageMaker::Model::ListModelsResult::WithNextToken
ListModelsResult & WithNextToken(const Aws::String &value)
Definition: ListModelsResult.h:108
Aws::SageMaker::Model::ListModelsResult::GetModels
const Aws::Vector< ModelSummary > & GetModels() const
Definition: ListModelsResult.h:41
Aws::SageMaker::Model::ListModelsResult::ListModelsResult
ListModelsResult()