AWS SDK for C++

AWS SDK for C++ Version 1.11.765

Loading...
Searching...
No Matches
SearchTextResult.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/geo-places/GeoPlaces_EXPORTS.h>
11#include <aws/geo-places/model/SearchTextResultItem.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace GeoPlaces {
25namespace Model {
27 public:
28 AWS_GEOPLACES_API SearchTextResult() = default;
31
33
39 inline const Aws::String& GetPricingBucket() const { return m_pricingBucket; }
40 template <typename PricingBucketT = Aws::String>
41 void SetPricingBucket(PricingBucketT&& value) {
42 m_pricingBucketHasBeenSet = true;
43 m_pricingBucket = std::forward<PricingBucketT>(value);
44 }
45 template <typename PricingBucketT = Aws::String>
46 SearchTextResult& WithPricingBucket(PricingBucketT&& value) {
47 SetPricingBucket(std::forward<PricingBucketT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::Vector<SearchTextResultItem>& GetResultItems() const { return m_resultItems; }
57 template <typename ResultItemsT = Aws::Vector<SearchTextResultItem>>
58 void SetResultItems(ResultItemsT&& value) {
59 m_resultItemsHasBeenSet = true;
60 m_resultItems = std::forward<ResultItemsT>(value);
61 }
62 template <typename ResultItemsT = Aws::Vector<SearchTextResultItem>>
63 SearchTextResult& WithResultItems(ResultItemsT&& value) {
64 SetResultItems(std::forward<ResultItemsT>(value));
65 return *this;
66 }
67 template <typename ResultItemsT = SearchTextResultItem>
68 SearchTextResult& AddResultItems(ResultItemsT&& value) {
69 m_resultItemsHasBeenSet = true;
70 m_resultItems.emplace_back(std::forward<ResultItemsT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetNextToken() const { return m_nextToken; }
81 template <typename NextTokenT = Aws::String>
82 void SetNextToken(NextTokenT&& value) {
83 m_nextTokenHasBeenSet = true;
84 m_nextToken = std::forward<NextTokenT>(value);
85 }
86 template <typename NextTokenT = Aws::String>
87 SearchTextResult& WithNextToken(NextTokenT&& value) {
88 SetNextToken(std::forward<NextTokenT>(value));
89 return *this;
90 }
92
94
95 inline const Aws::String& GetRequestId() const { return m_requestId; }
96 template <typename RequestIdT = Aws::String>
97 void SetRequestId(RequestIdT&& value) {
98 m_requestIdHasBeenSet = true;
99 m_requestId = std::forward<RequestIdT>(value);
100 }
101 template <typename RequestIdT = Aws::String>
102 SearchTextResult& WithRequestId(RequestIdT&& value) {
103 SetRequestId(std::forward<RequestIdT>(value));
104 return *this;
105 }
107 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
108
109 private:
110 Aws::String m_pricingBucket;
111
113
114 Aws::String m_nextToken;
115
116 Aws::String m_requestId;
117 Aws::Http::HttpResponseCode m_HttpResponseCode;
118 bool m_pricingBucketHasBeenSet = false;
119 bool m_resultItemsHasBeenSet = false;
120 bool m_nextTokenHasBeenSet = false;
121 bool m_requestIdHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace GeoPlaces
126} // namespace Aws
const Aws::String & GetPricingBucket() const
AWS_GEOPLACES_API SearchTextResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetResultItems(ResultItemsT &&value)
const Aws::Vector< SearchTextResultItem > & GetResultItems() const
SearchTextResult & AddResultItems(ResultItemsT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_GEOPLACES_API SearchTextResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
SearchTextResult & WithNextToken(NextTokenT &&value)
void SetPricingBucket(PricingBucketT &&value)
SearchTextResult & WithResultItems(ResultItemsT &&value)
SearchTextResult & WithPricingBucket(PricingBucketT &&value)
const Aws::String & GetRequestId() const
SearchTextResult & WithRequestId(RequestIdT &&value)
AWS_GEOPLACES_API SearchTextResult()=default
const Aws::String & GetNextToken() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue