AWS SDK for C++  1.9.108
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 LookoutforVision
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
40  inline const Aws::Vector<ModelMetadata>& GetModels() const{ return m_models; }
41 
45  inline void SetModels(const Aws::Vector<ModelMetadata>& value) { m_models = value; }
46 
50  inline void SetModels(Aws::Vector<ModelMetadata>&& value) { m_models = std::move(value); }
51 
55  inline ListModelsResult& WithModels(const Aws::Vector<ModelMetadata>& value) { SetModels(value); return *this;}
56 
60  inline ListModelsResult& WithModels(Aws::Vector<ModelMetadata>&& value) { SetModels(std::move(value)); return *this;}
61 
65  inline ListModelsResult& AddModels(const ModelMetadata& value) { m_models.push_back(value); return *this; }
66 
70  inline ListModelsResult& AddModels(ModelMetadata&& value) { m_models.push_back(std::move(value)); return *this; }
71 
72 
78  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
79 
85  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
86 
92  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
93 
99  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
100 
106  inline ListModelsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
107 
113  inline ListModelsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
114 
120  inline ListModelsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
121 
122  private:
123 
125 
126  Aws::String m_nextToken;
127  };
128 
129 } // namespace Model
130 } // namespace LookoutforVision
131 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::LookoutforVision::Model::ListModelsResult::WithModels
ListModelsResult & WithModels(Aws::Vector< ModelMetadata > &&value)
Definition: ListModelsResult.h:60
Aws::LookoutforVision::Model::ListModelsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListModelsResult.h:92
Aws::LookoutforVision::Model::ListModelsResult::AddModels
ListModelsResult & AddModels(const ModelMetadata &value)
Definition: ListModelsResult.h:65
ModelMetadata.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::LookoutforVision::Model::ListModelsResult::ListModelsResult
ListModelsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
LookoutforVision_EXPORTS.h
AWSVector.h
Aws::LookoutforVision::Model::ListModelsResult::SetModels
void SetModels(const Aws::Vector< ModelMetadata > &value)
Definition: ListModelsResult.h:45
Aws::LookoutforVision::Model::ModelMetadata
Definition: ModelMetadata.h:35
Aws::LookoutforVision::Model::ListModelsResult::WithModels
ListModelsResult & WithModels(const Aws::Vector< ModelMetadata > &value)
Definition: ListModelsResult.h:55
Aws::LookoutforVision::Model::ListModelsResult::WithNextToken
ListModelsResult & WithNextToken(Aws::String &&value)
Definition: ListModelsResult.h:113
Aws::LookoutforVision::Model::ListModelsResult::GetModels
const Aws::Vector< ModelMetadata > & GetModels() const
Definition: ListModelsResult.h:40
AWSString.h
Aws::LookoutforVision::Model::ListModelsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListModelsResult.h:78
Aws::LookoutforVision::Model::ListModelsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListModelsResult.h:85
Aws::LookoutforVision::Model::ListModelsResult::operator=
ListModelsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::LookoutforVision::Model::ListModelsResult::WithNextToken
ListModelsResult & WithNextToken(const char *value)
Definition: ListModelsResult.h:120
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_LOOKOUTFORVISION_API
#define AWS_LOOKOUTFORVISION_API
Definition: LookoutforVision_EXPORTS.h:28
Aws::LookoutforVision::Model::ListModelsResult::WithNextToken
ListModelsResult & WithNextToken(const Aws::String &value)
Definition: ListModelsResult.h:106
Aws::LookoutforVision::Model::ListModelsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListModelsResult.h:99
Aws::LookoutforVision::Model::ListModelsResult::SetModels
void SetModels(Aws::Vector< ModelMetadata > &&value)
Definition: ListModelsResult.h:50
Aws::LookoutforVision::Model::ListModelsResult
Definition: ListModelsResult.h:30
Aws::LookoutforVision::Model::ListModelsResult::AddModels
ListModelsResult & AddModels(ModelMetadata &&value)
Definition: ListModelsResult.h:70
Aws::LookoutforVision::Model::ListModelsResult::ListModelsResult
ListModelsResult()