AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
SearchTextResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/geo-places/GeoPlaces_EXPORTS.h>
10#include <aws/geo-places/model/SearchTextResultItem.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace GeoPlaces {
24namespace Model {
26 public:
27 AWS_GEOPLACES_API SearchTextResult() = default;
30
32
38 inline const Aws::String& GetPricingBucket() const { return m_pricingBucket; }
39 template <typename PricingBucketT = Aws::String>
40 void SetPricingBucket(PricingBucketT&& value) {
41 m_pricingBucketHasBeenSet = true;
42 m_pricingBucket = std::forward<PricingBucketT>(value);
43 }
44 template <typename PricingBucketT = Aws::String>
45 SearchTextResult& WithPricingBucket(PricingBucketT&& value) {
46 SetPricingBucket(std::forward<PricingBucketT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::Vector<SearchTextResultItem>& GetResultItems() const { return m_resultItems; }
56 template <typename ResultItemsT = Aws::Vector<SearchTextResultItem>>
57 void SetResultItems(ResultItemsT&& value) {
58 m_resultItemsHasBeenSet = true;
59 m_resultItems = std::forward<ResultItemsT>(value);
60 }
61 template <typename ResultItemsT = Aws::Vector<SearchTextResultItem>>
62 SearchTextResult& WithResultItems(ResultItemsT&& value) {
63 SetResultItems(std::forward<ResultItemsT>(value));
64 return *this;
65 }
66 template <typename ResultItemsT = SearchTextResultItem>
67 SearchTextResult& AddResultItems(ResultItemsT&& value) {
68 m_resultItemsHasBeenSet = true;
69 m_resultItems.emplace_back(std::forward<ResultItemsT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetNextToken() const { return m_nextToken; }
80 template <typename NextTokenT = Aws::String>
81 void SetNextToken(NextTokenT&& value) {
82 m_nextTokenHasBeenSet = true;
83 m_nextToken = std::forward<NextTokenT>(value);
84 }
85 template <typename NextTokenT = Aws::String>
86 SearchTextResult& WithNextToken(NextTokenT&& value) {
87 SetNextToken(std::forward<NextTokenT>(value));
88 return *this;
89 }
91
93
94 inline const Aws::String& GetRequestId() const { return m_requestId; }
95 template <typename RequestIdT = Aws::String>
96 void SetRequestId(RequestIdT&& value) {
97 m_requestIdHasBeenSet = true;
98 m_requestId = std::forward<RequestIdT>(value);
99 }
100 template <typename RequestIdT = Aws::String>
101 SearchTextResult& WithRequestId(RequestIdT&& value) {
102 SetRequestId(std::forward<RequestIdT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_pricingBucket;
108 bool m_pricingBucketHasBeenSet = false;
109
111 bool m_resultItemsHasBeenSet = false;
112
113 Aws::String m_nextToken;
114 bool m_nextTokenHasBeenSet = false;
115
116 Aws::String m_requestId;
117 bool m_requestIdHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace GeoPlaces
122} // 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_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