AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SuggestResult.h
1
6#pragma once
7#include <aws/geo-places/GeoPlaces_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/geo-places/model/SuggestResultItem.h>
11#include <aws/geo-places/model/QueryRefinement.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 GeoPlaces
27{
28namespace Model
29{
31 {
32 public:
33 AWS_GEOPLACES_API SuggestResult();
36
37
39
45 inline const Aws::String& GetPricingBucket() const{ return m_pricingBucket; }
46 inline void SetPricingBucket(const Aws::String& value) { m_pricingBucket = value; }
47 inline void SetPricingBucket(Aws::String&& value) { m_pricingBucket = std::move(value); }
48 inline void SetPricingBucket(const char* value) { m_pricingBucket.assign(value); }
49 inline SuggestResult& WithPricingBucket(const Aws::String& value) { SetPricingBucket(value); return *this;}
50 inline SuggestResult& WithPricingBucket(Aws::String&& value) { SetPricingBucket(std::move(value)); return *this;}
51 inline SuggestResult& WithPricingBucket(const char* value) { SetPricingBucket(value); return *this;}
53
55
58 inline const Aws::Vector<SuggestResultItem>& GetResultItems() const{ return m_resultItems; }
59 inline void SetResultItems(const Aws::Vector<SuggestResultItem>& value) { m_resultItems = value; }
60 inline void SetResultItems(Aws::Vector<SuggestResultItem>&& value) { m_resultItems = std::move(value); }
61 inline SuggestResult& WithResultItems(const Aws::Vector<SuggestResultItem>& value) { SetResultItems(value); return *this;}
62 inline SuggestResult& WithResultItems(Aws::Vector<SuggestResultItem>&& value) { SetResultItems(std::move(value)); return *this;}
63 inline SuggestResult& AddResultItems(const SuggestResultItem& value) { m_resultItems.push_back(value); return *this; }
64 inline SuggestResult& AddResultItems(SuggestResultItem&& value) { m_resultItems.push_back(std::move(value)); return *this; }
66
68
72 inline const Aws::Vector<QueryRefinement>& GetQueryRefinements() const{ return m_queryRefinements; }
73 inline void SetQueryRefinements(const Aws::Vector<QueryRefinement>& value) { m_queryRefinements = value; }
74 inline void SetQueryRefinements(Aws::Vector<QueryRefinement>&& value) { m_queryRefinements = std::move(value); }
76 inline SuggestResult& WithQueryRefinements(Aws::Vector<QueryRefinement>&& value) { SetQueryRefinements(std::move(value)); return *this;}
77 inline SuggestResult& AddQueryRefinements(const QueryRefinement& value) { m_queryRefinements.push_back(value); return *this; }
78 inline SuggestResult& AddQueryRefinements(QueryRefinement&& value) { m_queryRefinements.push_back(std::move(value)); return *this; }
80
82
83 inline const Aws::String& GetRequestId() const{ return m_requestId; }
84 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
85 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
86 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
87 inline SuggestResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
88 inline SuggestResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
89 inline SuggestResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
91 private:
92
93 Aws::String m_pricingBucket;
94
96
97 Aws::Vector<QueryRefinement> m_queryRefinements;
98
99 Aws::String m_requestId;
100 };
101
102} // namespace Model
103} // namespace GeoPlaces
104} // namespace Aws
void SetRequestId(const Aws::String &value)
void SetRequestId(Aws::String &&value)
SuggestResult & AddResultItems(const SuggestResultItem &value)
SuggestResult & WithPricingBucket(Aws::String &&value)
AWS_GEOPLACES_API SuggestResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetPricingBucket(const char *value)
SuggestResult & WithPricingBucket(const Aws::String &value)
AWS_GEOPLACES_API SuggestResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< QueryRefinement > & GetQueryRefinements() const
void SetRequestId(const char *value)
SuggestResult & AddResultItems(SuggestResultItem &&value)
SuggestResult & WithQueryRefinements(const Aws::Vector< QueryRefinement > &value)
void SetResultItems(const Aws::Vector< SuggestResultItem > &value)
void SetPricingBucket(Aws::String &&value)
void SetPricingBucket(const Aws::String &value)
void SetQueryRefinements(Aws::Vector< QueryRefinement > &&value)
const Aws::String & GetPricingBucket() const
SuggestResult & WithRequestId(Aws::String &&value)
SuggestResult & WithQueryRefinements(Aws::Vector< QueryRefinement > &&value)
const Aws::Vector< SuggestResultItem > & GetResultItems() const
SuggestResult & WithRequestId(const char *value)
SuggestResult & WithResultItems(const Aws::Vector< SuggestResultItem > &value)
SuggestResult & AddQueryRefinements(QueryRefinement &&value)
SuggestResult & AddQueryRefinements(const QueryRefinement &value)
void SetResultItems(Aws::Vector< SuggestResultItem > &&value)
SuggestResult & WithRequestId(const Aws::String &value)
const Aws::String & GetRequestId() const
SuggestResult & WithPricingBucket(const char *value)
SuggestResult & WithResultItems(Aws::Vector< SuggestResultItem > &&value)
void SetQueryRefinements(const Aws::Vector< QueryRefinement > &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