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>
16template<
typename RESULT_TYPE>
17class AmazonWebServiceResult;
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>
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>>
59 template<
typename ThingsT = ThingDocument>
60 SearchIndexResult&
AddThings(ThingsT&& value) { m_thingsHasBeenSet =
true; m_things.emplace_back(std::forward<ThingsT>(value));
return *
this; }
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>>
72 template<
typename ThingGroupsT = ThingGroupDocument>
73 SearchIndexResult&
AddThingGroups(ThingGroupsT&& value) { m_thingGroupsHasBeenSet =
true; m_thingGroups.emplace_back(std::forward<ThingGroupsT>(value));
return *
this; }
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>
87 bool m_nextTokenHasBeenSet =
false;
90 bool m_thingsHasBeenSet =
false;
93 bool m_thingGroupsHasBeenSet =
false;
96 bool m_requestIdHasBeenSet =
false;
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
void SetThings(ThingsT &&value)
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