AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SearchIndexResult.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/iot/model/ThingDocument.h>
11#include <aws/iot/model/ThingGroupDocument.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace IoT
27{
28namespace Model
29{
31 {
32 public:
33 AWS_IOT_API SearchIndexResult();
36
37
39
43 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
44 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
45 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
46 inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
47 inline SearchIndexResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
48 inline SearchIndexResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
49 inline SearchIndexResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
51
53
56 inline const Aws::Vector<ThingDocument>& GetThings() const{ return m_things; }
57 inline void SetThings(const Aws::Vector<ThingDocument>& value) { m_things = value; }
58 inline void SetThings(Aws::Vector<ThingDocument>&& value) { m_things = std::move(value); }
59 inline SearchIndexResult& WithThings(const Aws::Vector<ThingDocument>& value) { SetThings(value); return *this;}
60 inline SearchIndexResult& WithThings(Aws::Vector<ThingDocument>&& value) { SetThings(std::move(value)); return *this;}
61 inline SearchIndexResult& AddThings(const ThingDocument& value) { m_things.push_back(value); return *this; }
62 inline SearchIndexResult& AddThings(ThingDocument&& value) { m_things.push_back(std::move(value)); return *this; }
64
66
69 inline const Aws::Vector<ThingGroupDocument>& GetThingGroups() const{ return m_thingGroups; }
70 inline void SetThingGroups(const Aws::Vector<ThingGroupDocument>& value) { m_thingGroups = value; }
71 inline void SetThingGroups(Aws::Vector<ThingGroupDocument>&& value) { m_thingGroups = std::move(value); }
73 inline SearchIndexResult& WithThingGroups(Aws::Vector<ThingGroupDocument>&& value) { SetThingGroups(std::move(value)); return *this;}
74 inline SearchIndexResult& AddThingGroups(const ThingGroupDocument& value) { m_thingGroups.push_back(value); return *this; }
75 inline SearchIndexResult& AddThingGroups(ThingGroupDocument&& value) { m_thingGroups.push_back(std::move(value)); return *this; }
77
79
80 inline const Aws::String& GetRequestId() const{ return m_requestId; }
81 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
82 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
83 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
84 inline SearchIndexResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
85 inline SearchIndexResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
86 inline SearchIndexResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
88 private:
89
90 Aws::String m_nextToken;
91
93
95
96 Aws::String m_requestId;
97 };
98
99} // namespace Model
100} // namespace IoT
101} // namespace Aws
const Aws::Vector< ThingDocument > & GetThings() const
SearchIndexResult & WithNextToken(Aws::String &&value)
const Aws::Vector< ThingGroupDocument > & GetThingGroups() const
void SetThings(const Aws::Vector< ThingDocument > &value)
void SetThingGroups(Aws::Vector< ThingGroupDocument > &&value)
void SetRequestId(const Aws::String &value)
SearchIndexResult & AddThings(ThingDocument &&value)
const Aws::String & GetNextToken() const
AWS_IOT_API SearchIndexResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
SearchIndexResult & AddThingGroups(ThingGroupDocument &&value)
const Aws::String & GetRequestId() const
SearchIndexResult & WithThingGroups(const Aws::Vector< ThingGroupDocument > &value)
void SetRequestId(Aws::String &&value)
void SetRequestId(const char *value)
SearchIndexResult & WithThingGroups(Aws::Vector< ThingGroupDocument > &&value)
SearchIndexResult & WithNextToken(const Aws::String &value)
void SetNextToken(Aws::String &&value)
SearchIndexResult & WithRequestId(const char *value)
void SetThings(Aws::Vector< ThingDocument > &&value)
SearchIndexResult & AddThings(const ThingDocument &value)
SearchIndexResult & WithNextToken(const char *value)
void SetNextToken(const char *value)
SearchIndexResult & WithThings(const Aws::Vector< ThingDocument > &value)
SearchIndexResult & WithRequestId(Aws::String &&value)
void SetNextToken(const Aws::String &value)
SearchIndexResult & AddThingGroups(const ThingGroupDocument &value)
AWS_IOT_API SearchIndexResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
SearchIndexResult & WithThings(Aws::Vector< ThingDocument > &&value)
void SetThingGroups(const Aws::Vector< ThingGroupDocument > &value)
SearchIndexResult & WithRequestId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue