AWS SDK for C++

AWS SDK for C++ Version 1.11.762

Loading...
Searching...
No Matches
SearchIndexResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/iot/IoT_EXPORTS.h>
11#include <aws/iot/model/ThingDocument.h>
12#include <aws/iot/model/ThingGroupDocument.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace IoT {
26namespace Model {
28 public:
29 AWS_IOT_API SearchIndexResult() = default;
32
34
38 inline const Aws::String& GetNextToken() const { return m_nextToken; }
39 template <typename NextTokenT = Aws::String>
40 void SetNextToken(NextTokenT&& value) {
41 m_nextTokenHasBeenSet = true;
42 m_nextToken = std::forward<NextTokenT>(value);
43 }
44 template <typename NextTokenT = Aws::String>
45 SearchIndexResult& WithNextToken(NextTokenT&& value) {
46 SetNextToken(std::forward<NextTokenT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::Vector<ThingDocument>& GetThings() const { return m_things; }
56 template <typename ThingsT = Aws::Vector<ThingDocument>>
57 void SetThings(ThingsT&& value) {
58 m_thingsHasBeenSet = true;
59 m_things = std::forward<ThingsT>(value);
60 }
61 template <typename ThingsT = Aws::Vector<ThingDocument>>
62 SearchIndexResult& WithThings(ThingsT&& value) {
63 SetThings(std::forward<ThingsT>(value));
64 return *this;
65 }
66 template <typename ThingsT = ThingDocument>
67 SearchIndexResult& AddThings(ThingsT&& value) {
68 m_thingsHasBeenSet = true;
69 m_things.emplace_back(std::forward<ThingsT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Vector<ThingGroupDocument>& GetThingGroups() const { return m_thingGroups; }
79 template <typename ThingGroupsT = Aws::Vector<ThingGroupDocument>>
80 void SetThingGroups(ThingGroupsT&& value) {
81 m_thingGroupsHasBeenSet = true;
82 m_thingGroups = std::forward<ThingGroupsT>(value);
83 }
84 template <typename ThingGroupsT = Aws::Vector<ThingGroupDocument>>
85 SearchIndexResult& WithThingGroups(ThingGroupsT&& value) {
86 SetThingGroups(std::forward<ThingGroupsT>(value));
87 return *this;
88 }
89 template <typename ThingGroupsT = ThingGroupDocument>
90 SearchIndexResult& AddThingGroups(ThingGroupsT&& value) {
91 m_thingGroupsHasBeenSet = true;
92 m_thingGroups.emplace_back(std::forward<ThingGroupsT>(value));
93 return *this;
94 }
96
98
99 inline const Aws::String& GetRequestId() const { return m_requestId; }
100 template <typename RequestIdT = Aws::String>
101 void SetRequestId(RequestIdT&& value) {
102 m_requestIdHasBeenSet = true;
103 m_requestId = std::forward<RequestIdT>(value);
104 }
105 template <typename RequestIdT = Aws::String>
106 SearchIndexResult& WithRequestId(RequestIdT&& value) {
107 SetRequestId(std::forward<RequestIdT>(value));
108 return *this;
109 }
111 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
112
113 private:
114 Aws::String m_nextToken;
115
117
119
120 Aws::String m_requestId;
121 Aws::Http::HttpResponseCode m_HttpResponseCode;
122 bool m_nextTokenHasBeenSet = false;
123 bool m_thingsHasBeenSet = false;
124 bool m_thingGroupsHasBeenSet = false;
125 bool m_requestIdHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace IoT
130} // 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::Http::HttpResponseCode GetHttpResponseCode() const
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