AWS SDK for C++  1.9.132
AWS SDK for C++
SearchIndexResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 template<typename RESULT_TYPE>
17 class AmazonWebServiceResult;
18 
19 namespace Utils
20 {
21 namespace Json
22 {
23  class JsonValue;
24 } // namespace Json
25 } // namespace Utils
26 namespace IoT
27 {
28 namespace Model
29 {
31  {
32  public:
36 
37 
42  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
43 
48  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
49 
54  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
55 
60  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
61 
66  inline SearchIndexResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
67 
72  inline SearchIndexResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
73 
78  inline SearchIndexResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
79 
80 
84  inline const Aws::Vector<ThingDocument>& GetThings() const{ return m_things; }
85 
89  inline void SetThings(const Aws::Vector<ThingDocument>& value) { m_things = value; }
90 
94  inline void SetThings(Aws::Vector<ThingDocument>&& value) { m_things = std::move(value); }
95 
99  inline SearchIndexResult& WithThings(const Aws::Vector<ThingDocument>& value) { SetThings(value); return *this;}
100 
104  inline SearchIndexResult& WithThings(Aws::Vector<ThingDocument>&& value) { SetThings(std::move(value)); return *this;}
105 
109  inline SearchIndexResult& AddThings(const ThingDocument& value) { m_things.push_back(value); return *this; }
110 
114  inline SearchIndexResult& AddThings(ThingDocument&& value) { m_things.push_back(std::move(value)); return *this; }
115 
116 
120  inline const Aws::Vector<ThingGroupDocument>& GetThingGroups() const{ return m_thingGroups; }
121 
125  inline void SetThingGroups(const Aws::Vector<ThingGroupDocument>& value) { m_thingGroups = value; }
126 
130  inline void SetThingGroups(Aws::Vector<ThingGroupDocument>&& value) { m_thingGroups = std::move(value); }
131 
135  inline SearchIndexResult& WithThingGroups(const Aws::Vector<ThingGroupDocument>& value) { SetThingGroups(value); return *this;}
136 
140  inline SearchIndexResult& WithThingGroups(Aws::Vector<ThingGroupDocument>&& value) { SetThingGroups(std::move(value)); return *this;}
141 
145  inline SearchIndexResult& AddThingGroups(const ThingGroupDocument& value) { m_thingGroups.push_back(value); return *this; }
146 
150  inline SearchIndexResult& AddThingGroups(ThingGroupDocument&& value) { m_thingGroups.push_back(std::move(value)); return *this; }
151 
152  private:
153 
154  Aws::String m_nextToken;
155 
157 
158  Aws::Vector<ThingGroupDocument> m_thingGroups;
159  };
160 
161 } // namespace Model
162 } // namespace IoT
163 } // namespace Aws
Aws::IoT::Model::SearchIndexResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: SearchIndexResult.h:48
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
ThingDocument.h
Aws::IoT::Model::SearchIndexResult::WithThingGroups
SearchIndexResult & WithThingGroups(Aws::Vector< ThingGroupDocument > &&value)
Definition: SearchIndexResult.h:140
Aws::IoT::Model::SearchIndexResult::SetNextToken
void SetNextToken(const char *value)
Definition: SearchIndexResult.h:60
Aws::IoT::Model::SearchIndexResult
Definition: SearchIndexResult.h:31
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::IoT::Model::SearchIndexResult::operator=
SearchIndexResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::IoT::Model::SearchIndexResult::SetThingGroups
void SetThingGroups(Aws::Vector< ThingGroupDocument > &&value)
Definition: SearchIndexResult.h:130
Aws::IoT::Model::SearchIndexResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: SearchIndexResult.h:42
Aws::IoT::Model::SearchIndexResult::WithThings
SearchIndexResult & WithThings(Aws::Vector< ThingDocument > &&value)
Definition: SearchIndexResult.h:104
Aws::IoT::Model::SearchIndexResult::SetThings
void SetThings(const Aws::Vector< ThingDocument > &value)
Definition: SearchIndexResult.h:89
Aws::IoT::Model::SearchIndexResult::SetThingGroups
void SetThingGroups(const Aws::Vector< ThingGroupDocument > &value)
Definition: SearchIndexResult.h:125
AWSString.h
Aws::IoT::Model::ThingDocument
Definition: ThingDocument.h:35
Aws::IoT::Model::SearchIndexResult::WithThingGroups
SearchIndexResult & WithThingGroups(const Aws::Vector< ThingGroupDocument > &value)
Definition: SearchIndexResult.h:135
Aws::IoT::Model::SearchIndexResult::SetThings
void SetThings(Aws::Vector< ThingDocument > &&value)
Definition: SearchIndexResult.h:94
Aws::IoT::Model::ThingGroupDocument
Definition: ThingGroupDocument.h:34
Aws::IoT::Model::SearchIndexResult::AddThings
SearchIndexResult & AddThings(ThingDocument &&value)
Definition: SearchIndexResult.h:114
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::SearchIndexResult::AddThingGroups
SearchIndexResult & AddThingGroups(const ThingGroupDocument &value)
Definition: SearchIndexResult.h:145
Aws::IoT::Model::SearchIndexResult::WithThings
SearchIndexResult & WithThings(const Aws::Vector< ThingDocument > &value)
Definition: SearchIndexResult.h:99
ThingGroupDocument.h
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::SearchIndexResult::GetThingGroups
const Aws::Vector< ThingGroupDocument > & GetThingGroups() const
Definition: SearchIndexResult.h:120
Aws::IoT::Model::SearchIndexResult::SearchIndexResult
SearchIndexResult()
Aws::IoT::Model::SearchIndexResult::AddThingGroups
SearchIndexResult & AddThingGroups(ThingGroupDocument &&value)
Definition: SearchIndexResult.h:150
Aws::IoT::Model::SearchIndexResult::AddThings
SearchIndexResult & AddThings(const ThingDocument &value)
Definition: SearchIndexResult.h:109
Aws::IoT::Model::SearchIndexResult::WithNextToken
SearchIndexResult & WithNextToken(Aws::String &&value)
Definition: SearchIndexResult.h:72
Aws::IoT::Model::SearchIndexResult::WithNextToken
SearchIndexResult & WithNextToken(const char *value)
Definition: SearchIndexResult.h:78
Aws::IoT::Model::SearchIndexResult::SearchIndexResult
SearchIndexResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::IoT::Model::SearchIndexResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: SearchIndexResult.h:54
Aws::IoT::Model::SearchIndexResult::GetThings
const Aws::Vector< ThingDocument > & GetThings() const
Definition: SearchIndexResult.h:84
Aws::IoT::Model::SearchIndexResult::WithNextToken
SearchIndexResult & WithNextToken(const Aws::String &value)
Definition: SearchIndexResult.h:66
IoT_EXPORTS.h