AWS SDK for C++

AWS SDK for C++ Version 1.11.759

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
45 inline const Aws::String& GetQueryId() const { return m_queryId; }
46 inline bool QueryIdHasBeenSet() const { return m_queryIdHasBeenSet; }
47 template <typename QueryIdT = Aws::String>
48 void SetQueryId(QueryIdT&& value) {
49 m_queryIdHasBeenSet = true;
50 m_queryId = std::forward<QueryIdT>(value);
51 }
52 template <typename QueryIdT = Aws::String>
53 SuggestQueryResult& WithQueryId(QueryIdT&& value) {
54 SetQueryId(std::forward<QueryIdT>(value));
55 return *this;
56 }
58
60
65 inline QueryType GetQueryType() const { return m_queryType; }
66 inline bool QueryTypeHasBeenSet() const { return m_queryTypeHasBeenSet; }
67 inline void SetQueryType(QueryType value) {
68 m_queryTypeHasBeenSet = true;
69 m_queryType = value;
70 }
72 SetQueryType(value);
73 return *this;
74 }
76 private:
77 Aws::String m_queryId;
78
79 QueryType m_queryType{QueryType::NOT_SET};
80 bool m_queryIdHasBeenSet = false;
81 bool m_queryTypeHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace GeoPlaces
86} // 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