AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
SearchForPositionResult.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 SearchForPositionResult() = default;
32 AWS_LOCATIONSERVICE_API SearchForPositionResult(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>
49 SetPlace(std::forward<PlaceT>(value));
50 return *this;
51 }
53
55
61 inline double GetDistance() const { return m_distance; }
62 inline bool DistanceHasBeenSet() const { return m_distanceHasBeenSet; }
63 inline void SetDistance(double value) {
64 m_distanceHasBeenSet = true;
65 m_distance = value;
66 }
67 inline SearchForPositionResult& WithDistance(double value) {
68 SetDistance(value);
69 return *this;
70 }
72
74
81 inline const Aws::String& GetPlaceId() const { return m_placeId; }
82 inline bool PlaceIdHasBeenSet() const { return m_placeIdHasBeenSet; }
83 template <typename PlaceIdT = Aws::String>
84 void SetPlaceId(PlaceIdT&& value) {
85 m_placeIdHasBeenSet = true;
86 m_placeId = std::forward<PlaceIdT>(value);
87 }
88 template <typename PlaceIdT = Aws::String>
90 SetPlaceId(std::forward<PlaceIdT>(value));
91 return *this;
92 }
94 private:
95 Place m_place;
96
97 double m_distance{0.0};
98
99 Aws::String m_placeId;
100 bool m_placeHasBeenSet = false;
101 bool m_distanceHasBeenSet = false;
102 bool m_placeIdHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace LocationService
107} // namespace Aws
SearchForPositionResult & WithPlace(PlaceT &&value)
AWS_LOCATIONSERVICE_API SearchForPositionResult & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LOCATIONSERVICE_API SearchForPositionResult()=default
SearchForPositionResult & WithPlaceId(PlaceIdT &&value)
SearchForPositionResult & WithDistance(double value)
AWS_LOCATIONSERVICE_API SearchForPositionResult(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue