AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
36
37
39
43 inline const Aws::String& GetNextToken() const { return m_nextToken; }
44 template<typename NextTokenT = Aws::String>
45 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
46 template<typename NextTokenT = Aws::String>
47 SearchIndexResult& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
49
51
54 inline const Aws::Vector<ThingDocument>& GetThings() const { return m_things; }
55 template<typename ThingsT = Aws::Vector<ThingDocument>>
56 void SetThings(ThingsT&& value) { m_thingsHasBeenSet = true; m_things = std::forward<ThingsT>(value); }
57 template<typename ThingsT = Aws::Vector<ThingDocument>>
58 SearchIndexResult& WithThings(ThingsT&& value) { SetThings(std::forward<ThingsT>(value)); return *this;}
59 template<typename ThingsT = ThingDocument>
60 SearchIndexResult& AddThings(ThingsT&& value) { m_thingsHasBeenSet = true; m_things.emplace_back(std::forward<ThingsT>(value)); return *this; }
62
64
67 inline const Aws::Vector<ThingGroupDocument>& GetThingGroups() const { return m_thingGroups; }
68 template<typename ThingGroupsT = Aws::Vector<ThingGroupDocument>>
69 void SetThingGroups(ThingGroupsT&& value) { m_thingGroupsHasBeenSet = true; m_thingGroups = std::forward<ThingGroupsT>(value); }
70 template<typename ThingGroupsT = Aws::Vector<ThingGroupDocument>>
71 SearchIndexResult& WithThingGroups(ThingGroupsT&& value) { SetThingGroups(std::forward<ThingGroupsT>(value)); return *this;}
72 template<typename ThingGroupsT = ThingGroupDocument>
73 SearchIndexResult& AddThingGroups(ThingGroupsT&& value) { m_thingGroupsHasBeenSet = true; m_thingGroups.emplace_back(std::forward<ThingGroupsT>(value)); return *this; }
75
77
78 inline const Aws::String& GetRequestId() const { return m_requestId; }
79 template<typename RequestIdT = Aws::String>
80 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
81 template<typename RequestIdT = Aws::String>
82 SearchIndexResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
84 private:
85
86 Aws::String m_nextToken;
87 bool m_nextTokenHasBeenSet = false;
88
90 bool m_thingsHasBeenSet = false;
91
93 bool m_thingGroupsHasBeenSet = false;
94
95 Aws::String m_requestId;
96 bool m_requestIdHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace IoT
101} // namespace Aws
void SetNextToken(NextTokenT &&value)
const Aws::Vector< ThingDocument > & GetThings() const
void SetRequestId(RequestIdT &&value)
void SetThingGroups(ThingGroupsT &&value)
const Aws::Vector< ThingGroupDocument > & GetThingGroups() const
AWS_IOT_API SearchIndexResult()=default
const Aws::String & GetNextToken() const
SearchIndexResult & WithRequestId(RequestIdT &&value)
SearchIndexResult & WithThings(ThingsT &&value)
AWS_IOT_API SearchIndexResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
SearchIndexResult & AddThingGroups(ThingGroupsT &&value)
const Aws::String & GetRequestId() const
SearchIndexResult & WithNextToken(NextTokenT &&value)
AWS_IOT_API SearchIndexResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
SearchIndexResult & WithThingGroups(ThingGroupsT &&value)
SearchIndexResult & AddThings(ThingsT &&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