AWS SDK for C++

AWS SDK for C++ Version 1.11.609

Loading...
Searching...
No Matches
SearchForTextResult.h
1
6#pragma once
7#include <aws/location/LocationService_EXPORTS.h>
8#include <aws/location/model/Place.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace LocationService
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_LOCATIONSERVICE_API SearchForTextResult() = default;
37 AWS_LOCATIONSERVICE_API SearchForTextResult(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LOCATIONSERVICE_API SearchForTextResult& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Place& GetPlace() const { return m_place; }
47 inline bool PlaceHasBeenSet() const { return m_placeHasBeenSet; }
48 template<typename PlaceT = Place>
49 void SetPlace(PlaceT&& value) { m_placeHasBeenSet = true; m_place = std::forward<PlaceT>(value); }
50 template<typename PlaceT = Place>
51 SearchForTextResult& WithPlace(PlaceT&& value) { SetPlace(std::forward<PlaceT>(value)); return *this;}
53
55
62 inline double GetDistance() const { return m_distance; }
63 inline bool DistanceHasBeenSet() const { return m_distanceHasBeenSet; }
64 inline void SetDistance(double value) { m_distanceHasBeenSet = true; m_distance = value; }
65 inline SearchForTextResult& WithDistance(double value) { SetDistance(value); return *this;}
67
69
75 inline double GetRelevance() const { return m_relevance; }
76 inline bool RelevanceHasBeenSet() const { return m_relevanceHasBeenSet; }
77 inline void SetRelevance(double value) { m_relevanceHasBeenSet = true; m_relevance = value; }
78 inline SearchForTextResult& WithRelevance(double value) { SetRelevance(value); return *this;}
80
82
89 inline const Aws::String& GetPlaceId() const { return m_placeId; }
90 inline bool PlaceIdHasBeenSet() const { return m_placeIdHasBeenSet; }
91 template<typename PlaceIdT = Aws::String>
92 void SetPlaceId(PlaceIdT&& value) { m_placeIdHasBeenSet = true; m_placeId = std::forward<PlaceIdT>(value); }
93 template<typename PlaceIdT = Aws::String>
94 SearchForTextResult& WithPlaceId(PlaceIdT&& value) { SetPlaceId(std::forward<PlaceIdT>(value)); return *this;}
96 private:
97
98 Place m_place;
99 bool m_placeHasBeenSet = false;
100
101 double m_distance{0.0};
102 bool m_distanceHasBeenSet = false;
103
104 double m_relevance{0.0};
105 bool m_relevanceHasBeenSet = false;
106
107 Aws::String m_placeId;
108 bool m_placeIdHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace LocationService
113} // 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