AWS SDK for C++  1.9.47
AWS SDK for C++
ListThingsResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
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 IoT
26 {
27 namespace Model
28 {
35  {
36  public:
40 
41 
45  inline const Aws::Vector<ThingAttribute>& GetThings() const{ return m_things; }
46 
50  inline void SetThings(const Aws::Vector<ThingAttribute>& value) { m_things = value; }
51 
55  inline void SetThings(Aws::Vector<ThingAttribute>&& value) { m_things = std::move(value); }
56 
60  inline ListThingsResult& WithThings(const Aws::Vector<ThingAttribute>& value) { SetThings(value); return *this;}
61 
65  inline ListThingsResult& WithThings(Aws::Vector<ThingAttribute>&& value) { SetThings(std::move(value)); return *this;}
66 
70  inline ListThingsResult& AddThings(const ThingAttribute& value) { m_things.push_back(value); return *this; }
71 
75  inline ListThingsResult& AddThings(ThingAttribute&& value) { m_things.push_back(std::move(value)); return *this; }
76 
77 
82  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
83 
88  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
89 
94  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
95 
100  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
101 
106  inline ListThingsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
107 
112  inline ListThingsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
113 
118  inline ListThingsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
119 
120  private:
121 
123 
124  Aws::String m_nextToken;
125  };
126 
127 } // namespace Model
128 } // namespace IoT
129 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::IoT::Model::ListThingsResult::WithNextToken
ListThingsResult & WithNextToken(Aws::String &&value)
Definition: ListThingsResult.h:112
Aws::IoT::Model::ListThingsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListThingsResult.h:88
ThingAttribute.h
Aws::IoT::Model::ListThingsResult::WithThings
ListThingsResult & WithThings(Aws::Vector< ThingAttribute > &&value)
Definition: ListThingsResult.h:65
Aws::IoT::Model::ListThingsResult::AddThings
ListThingsResult & AddThings(const ThingAttribute &value)
Definition: ListThingsResult.h:70
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::IoT::Model::ListThingsResult::AddThings
ListThingsResult & AddThings(ThingAttribute &&value)
Definition: ListThingsResult.h:75
Aws::IoT::Model::ListThingsResult::WithNextToken
ListThingsResult & WithNextToken(const Aws::String &value)
Definition: ListThingsResult.h:106
AWSVector.h
Aws::IoT::Model::ListThingsResult::WithNextToken
ListThingsResult & WithNextToken(const char *value)
Definition: ListThingsResult.h:118
Aws::IoT::Model::ListThingsResult::ListThingsResult
ListThingsResult()
Aws::IoT::Model::ListThingsResult::WithThings
ListThingsResult & WithThings(const Aws::Vector< ThingAttribute > &value)
Definition: ListThingsResult.h:60
Aws::IoT::Model::ThingAttribute
Definition: ThingAttribute.h:34
Aws::IoT::Model::ListThingsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListThingsResult.h:100
Aws::IoT::Model::ListThingsResult::ListThingsResult
ListThingsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::IoT::Model::ListThingsResult::GetThings
const Aws::Vector< ThingAttribute > & GetThings() const
Definition: ListThingsResult.h:45
AWSString.h
Aws::IoT::Model::ListThingsResult
Definition: ListThingsResult.h:35
Aws::IoT::Model::ListThingsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListThingsResult.h:82
Aws
Definition: AccessManagementClient.h:15
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::ListThingsResult::operator=
ListThingsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::IoT::Model::ListThingsResult::SetThings
void SetThings(const Aws::Vector< ThingAttribute > &value)
Definition: ListThingsResult.h:50
Aws::IoT::Model::ListThingsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListThingsResult.h:94
Aws::IoT::Model::ListThingsResult::SetThings
void SetThings(Aws::Vector< ThingAttribute > &&value)
Definition: ListThingsResult.h:55
IoT_EXPORTS.h