AWS SDK for C++

AWS SDK for C++ Version 1.11.791

Loading...
Searching...
No Matches
SuggestQueryResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/geo-places/GeoPlaces_EXPORTS.h>
9#include <aws/geo-places/model/QueryType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GeoPlaces {
21namespace Model {
22
29 public:
30 AWS_GEOPLACES_API SuggestQueryResult() = default;
31 AWS_GEOPLACES_API SuggestQueryResult(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
48 inline const Aws::String& GetQueryId() const { return m_queryId; }
49 inline bool QueryIdHasBeenSet() const { return m_queryIdHasBeenSet; }
50 template <typename QueryIdT = Aws::String>
51 void SetQueryId(QueryIdT&& value) {
52 m_queryIdHasBeenSet = true;
53 m_queryId = std::forward<QueryIdT>(value);
54 }
55 template <typename QueryIdT = Aws::String>
56 SuggestQueryResult& WithQueryId(QueryIdT&& value) {
57 SetQueryId(std::forward<QueryIdT>(value));
58 return *this;
59 }
61
63
71 inline QueryType GetQueryType() const { return m_queryType; }
72 inline bool QueryTypeHasBeenSet() const { return m_queryTypeHasBeenSet; }
73 inline void SetQueryType(QueryType value) {
74 m_queryTypeHasBeenSet = true;
75 m_queryType = value;
76 }
78 SetQueryType(value);
79 return *this;
80 }
82 private:
83 Aws::String m_queryId;
84
85 QueryType m_queryType{QueryType::NOT_SET};
86 bool m_queryIdHasBeenSet = false;
87 bool m_queryTypeHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace GeoPlaces
92} // namespace Aws
AWS_GEOPLACES_API SuggestQueryResult & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
SuggestQueryResult & WithQueryId(QueryIdT &&value)
AWS_GEOPLACES_API SuggestQueryResult(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOPLACES_API SuggestQueryResult()=default
SuggestQueryResult & WithQueryType(QueryType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue