AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
SearchForTextResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/location/LocationService_EXPORTS.h>
9#include <aws/location/model/Place.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace LocationService {
21namespace Model {
22
30 public:
31 AWS_LOCATIONSERVICE_API SearchForTextResult() = default;
32 AWS_LOCATIONSERVICE_API SearchForTextResult(Aws::Utils::Json::JsonView jsonValue);
33 AWS_LOCATIONSERVICE_API SearchForTextResult& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Place& GetPlace() const { return m_place; }
41 inline bool PlaceHasBeenSet() const { return m_placeHasBeenSet; }
42 template <typename PlaceT = Place>
43 void SetPlace(PlaceT&& value) {
44 m_placeHasBeenSet = true;
45 m_place = std::forward<PlaceT>(value);
46 }
47 template <typename PlaceT = Place>
48 SearchForTextResult& WithPlace(PlaceT&& value) {
49 SetPlace(std::forward<PlaceT>(value));
50 return *this;
51 }
53
55
62 inline double GetDistance() const { return m_distance; }
63 inline bool DistanceHasBeenSet() const { return m_distanceHasBeenSet; }
64 inline void SetDistance(double value) {
65 m_distanceHasBeenSet = true;
66 m_distance = value;
67 }
68 inline SearchForTextResult& WithDistance(double value) {
69 SetDistance(value);
70 return *this;
71 }
73
75
81 inline double GetRelevance() const { return m_relevance; }
82 inline bool RelevanceHasBeenSet() const { return m_relevanceHasBeenSet; }
83 inline void SetRelevance(double value) {
84 m_relevanceHasBeenSet = true;
85 m_relevance = value;
86 }
87 inline SearchForTextResult& WithRelevance(double value) {
88 SetRelevance(value);
89 return *this;
90 }
92
94
101 inline const Aws::String& GetPlaceId() const { return m_placeId; }
102 inline bool PlaceIdHasBeenSet() const { return m_placeIdHasBeenSet; }
103 template <typename PlaceIdT = Aws::String>
104 void SetPlaceId(PlaceIdT&& value) {
105 m_placeIdHasBeenSet = true;
106 m_placeId = std::forward<PlaceIdT>(value);
107 }
108 template <typename PlaceIdT = Aws::String>
109 SearchForTextResult& WithPlaceId(PlaceIdT&& value) {
110 SetPlaceId(std::forward<PlaceIdT>(value));
111 return *this;
112 }
114 private:
115 Place m_place;
116
117 double m_distance{0.0};
118
119 double m_relevance{0.0};
120
121 Aws::String m_placeId;
122 bool m_placeHasBeenSet = false;
123 bool m_distanceHasBeenSet = false;
124 bool m_relevanceHasBeenSet = false;
125 bool m_placeIdHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace LocationService
130} // namespace Aws
AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
SearchForTextResult & WithPlace(PlaceT &&value)
AWS_LOCATIONSERVICE_API SearchForTextResult(Aws::Utils::Json::JsonView jsonValue)
SearchForTextResult & WithRelevance(double value)
AWS_LOCATIONSERVICE_API SearchForTextResult()=default
SearchForTextResult & WithPlaceId(PlaceIdT &&value)
SearchForTextResult & WithDistance(double value)
AWS_LOCATIONSERVICE_API SearchForTextResult & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue