AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetPlace(const Place& value) { m_placeHasBeenSet = true; m_place = value; }
49 inline void SetPlace(Place&& value) { m_placeHasBeenSet = true; m_place = std::move(value); }
50 inline SearchForTextResult& WithPlace(const Place& value) { SetPlace(value); return *this;}
51 inline SearchForTextResult& WithPlace(Place&& value) { SetPlace(std::move(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 inline void SetPlaceId(const Aws::String& value) { m_placeIdHasBeenSet = true; m_placeId = value; }
92 inline void SetPlaceId(Aws::String&& value) { m_placeIdHasBeenSet = true; m_placeId = std::move(value); }
93 inline void SetPlaceId(const char* value) { m_placeIdHasBeenSet = true; m_placeId.assign(value); }
94 inline SearchForTextResult& WithPlaceId(const Aws::String& value) { SetPlaceId(value); return *this;}
95 inline SearchForTextResult& WithPlaceId(Aws::String&& value) { SetPlaceId(std::move(value)); return *this;}
96 inline SearchForTextResult& WithPlaceId(const char* value) { SetPlaceId(value); return *this;}
98 private:
99
100 Place m_place;
101 bool m_placeHasBeenSet = false;
102
103 double m_distance;
104 bool m_distanceHasBeenSet = false;
105
106 double m_relevance;
107 bool m_relevanceHasBeenSet = false;
108
109 Aws::String m_placeId;
110 bool m_placeIdHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace LocationService
115} // namespace Aws
AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
SearchForTextResult & WithPlaceId(const Aws::String &value)
AWS_LOCATIONSERVICE_API SearchForTextResult(Aws::Utils::Json::JsonView jsonValue)
SearchForTextResult & WithPlaceId(const char *value)
SearchForTextResult & WithRelevance(double value)
SearchForTextResult & WithPlace(const Place &value)
SearchForTextResult & WithPlace(Place &&value)
SearchForTextResult & WithDistance(double value)
AWS_LOCATIONSERVICE_API SearchForTextResult & operator=(Aws::Utils::Json::JsonView jsonValue)
SearchForTextResult & WithPlaceId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue