AWS SDK for C++  1.9.108
AWS SDK for C++
ListProjectsResult.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<ProjectMetadata>& GetProjects() const{ return m_projects; }
41 
45  inline void SetProjects(const Aws::Vector<ProjectMetadata>& value) { m_projects = value; }
46 
50  inline void SetProjects(Aws::Vector<ProjectMetadata>&& value) { m_projects = std::move(value); }
51 
55  inline ListProjectsResult& WithProjects(const Aws::Vector<ProjectMetadata>& value) { SetProjects(value); return *this;}
56 
60  inline ListProjectsResult& WithProjects(Aws::Vector<ProjectMetadata>&& value) { SetProjects(std::move(value)); return *this;}
61 
65  inline ListProjectsResult& AddProjects(const ProjectMetadata& value) { m_projects.push_back(value); return *this; }
66 
70  inline ListProjectsResult& AddProjects(ProjectMetadata&& value) { m_projects.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 ListProjectsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
107 
113  inline ListProjectsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
114 
120  inline ListProjectsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
121 
122  private:
123 
124  Aws::Vector<ProjectMetadata> m_projects;
125 
126  Aws::String m_nextToken;
127  };
128 
129 } // namespace Model
130 } // namespace LookoutforVision
131 } // namespace Aws
ProjectMetadata.h
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::LookoutforVision::Model::ListProjectsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListProjectsResult.h:85
Aws::LookoutforVision::Model::ListProjectsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListProjectsResult.h:92
Aws::LookoutforVision::Model::ListProjectsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListProjectsResult.h:78
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::LookoutforVision::Model::ListProjectsResult::ListProjectsResult
ListProjectsResult()
LookoutforVision_EXPORTS.h
AWSVector.h
Aws::LookoutforVision::Model::ListProjectsResult
Definition: ListProjectsResult.h:30
Aws::LookoutforVision::Model::ListProjectsResult::AddProjects
ListProjectsResult & AddProjects(const ProjectMetadata &value)
Definition: ListProjectsResult.h:65
Aws::LookoutforVision::Model::ListProjectsResult::WithNextToken
ListProjectsResult & WithNextToken(const char *value)
Definition: ListProjectsResult.h:120
Aws::LookoutforVision::Model::ListProjectsResult::operator=
ListProjectsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::LookoutforVision::Model::ListProjectsResult::AddProjects
ListProjectsResult & AddProjects(ProjectMetadata &&value)
Definition: ListProjectsResult.h:70
Aws::LookoutforVision::Model::ListProjectsResult::ListProjectsResult
ListProjectsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWSString.h
Aws::LookoutforVision::Model::ProjectMetadata
Definition: ProjectMetadata.h:34
Aws::LookoutforVision::Model::ListProjectsResult::SetProjects
void SetProjects(Aws::Vector< ProjectMetadata > &&value)
Definition: ListProjectsResult.h:50
Aws::LookoutforVision::Model::ListProjectsResult::WithProjects
ListProjectsResult & WithProjects(Aws::Vector< ProjectMetadata > &&value)
Definition: ListProjectsResult.h:60
Aws::LookoutforVision::Model::ListProjectsResult::WithNextToken
ListProjectsResult & WithNextToken(Aws::String &&value)
Definition: ListProjectsResult.h:113
Aws::LookoutforVision::Model::ListProjectsResult::GetProjects
const Aws::Vector< ProjectMetadata > & GetProjects() const
Definition: ListProjectsResult.h:40
Aws::LookoutforVision::Model::ListProjectsResult::SetProjects
void SetProjects(const Aws::Vector< ProjectMetadata > &value)
Definition: ListProjectsResult.h:45
Aws::LookoutforVision::Model::ListProjectsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListProjectsResult.h:99
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::ListProjectsResult::WithNextToken
ListProjectsResult & WithNextToken(const Aws::String &value)
Definition: ListProjectsResult.h:106
Aws::LookoutforVision::Model::ListProjectsResult::WithProjects
ListProjectsResult & WithProjects(const Aws::Vector< ProjectMetadata > &value)
Definition: ListProjectsResult.h:55