AWS SDK for C++  1.9.20
AWS SDK for C++
ListRobotsResult.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 RoboMaker
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
40  inline const Aws::Vector<Robot>& GetRobots() const{ return m_robots; }
41 
45  inline void SetRobots(const Aws::Vector<Robot>& value) { m_robots = value; }
46 
50  inline void SetRobots(Aws::Vector<Robot>&& value) { m_robots = std::move(value); }
51 
55  inline ListRobotsResult& WithRobots(const Aws::Vector<Robot>& value) { SetRobots(value); return *this;}
56 
60  inline ListRobotsResult& WithRobots(Aws::Vector<Robot>&& value) { SetRobots(std::move(value)); return *this;}
61 
65  inline ListRobotsResult& AddRobots(const Robot& value) { m_robots.push_back(value); return *this; }
66 
70  inline ListRobotsResult& AddRobots(Robot&& value) { m_robots.push_back(std::move(value)); return *this; }
71 
72 
81  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
82 
91  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
92 
101  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
102 
111  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
112 
121  inline ListRobotsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
122 
131  inline ListRobotsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
132 
141  inline ListRobotsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
142 
143  private:
144 
145  Aws::Vector<Robot> m_robots;
146 
147  Aws::String m_nextToken;
148  };
149 
150 } // namespace Model
151 } // namespace RoboMaker
152 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::RoboMaker::Model::ListRobotsResult::operator=
ListRobotsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::RoboMaker::Model::ListRobotsResult::AddRobots
ListRobotsResult & AddRobots(Robot &&value)
Definition: ListRobotsResult.h:70
Aws::RoboMaker::Model::ListRobotsResult::WithRobots
ListRobotsResult & WithRobots(Aws::Vector< Robot > &&value)
Definition: ListRobotsResult.h:60
Aws::RoboMaker::Model::ListRobotsResult::AddRobots
ListRobotsResult & AddRobots(const Robot &value)
Definition: ListRobotsResult.h:65
Aws::RoboMaker::Model::ListRobotsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListRobotsResult.h:81
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::RoboMaker::Model::ListRobotsResult::WithRobots
ListRobotsResult & WithRobots(const Aws::Vector< Robot > &value)
Definition: ListRobotsResult.h:55
Aws::RoboMaker::Model::Robot
Definition: Robot.h:35
AWS_ROBOMAKER_API
#define AWS_ROBOMAKER_API
Definition: RoboMaker_EXPORTS.h:28
Aws::RoboMaker::Model::ListRobotsResult::SetRobots
void SetRobots(const Aws::Vector< Robot > &value)
Definition: ListRobotsResult.h:45
Aws::RoboMaker::Model::ListRobotsResult::GetRobots
const Aws::Vector< Robot > & GetRobots() const
Definition: ListRobotsResult.h:40
RoboMaker_EXPORTS.h
Aws::RoboMaker::Model::ListRobotsResult
Definition: ListRobotsResult.h:30
AWSString.h
Aws::RoboMaker::Model::ListRobotsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListRobotsResult.h:91
Aws::RoboMaker::Model::ListRobotsResult::WithNextToken
ListRobotsResult & WithNextToken(const char *value)
Definition: ListRobotsResult.h:141
Aws
Definition: AccessManagementClient.h:15
Aws::RoboMaker::Model::ListRobotsResult::SetRobots
void SetRobots(Aws::Vector< Robot > &&value)
Definition: ListRobotsResult.h:50
Robot.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RoboMaker::Model::ListRobotsResult::WithNextToken
ListRobotsResult & WithNextToken(const Aws::String &value)
Definition: ListRobotsResult.h:121
Aws::RoboMaker::Model::ListRobotsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListRobotsResult.h:101
Aws::RoboMaker::Model::ListRobotsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListRobotsResult.h:111
Aws::RoboMaker::Model::ListRobotsResult::ListRobotsResult
ListRobotsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::RoboMaker::Model::ListRobotsResult::ListRobotsResult
ListRobotsResult()
Aws::RoboMaker::Model::ListRobotsResult::WithNextToken
ListRobotsResult & WithNextToken(Aws::String &&value)
Definition: ListRobotsResult.h:131