AWS SDK for C++

AWS SDK for C++ Version 1.11.609

Loading...
Searching...
No Matches
SearchForPositionResult.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 SearchForPositionResult() = default;
37 AWS_LOCATIONSERVICE_API SearchForPositionResult(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 SearchForPositionResult& WithPlace(PlaceT&& value) { SetPlace(std::forward<PlaceT>(value)); return *this;}
53
55
61 inline double GetDistance() const { return m_distance; }
62 inline bool DistanceHasBeenSet() const { return m_distanceHasBeenSet; }
63 inline void SetDistance(double value) { m_distanceHasBeenSet = true; m_distance = value; }
64 inline SearchForPositionResult& WithDistance(double value) { SetDistance(value); return *this;}
66
68
75 inline const Aws::String& GetPlaceId() const { return m_placeId; }
76 inline bool PlaceIdHasBeenSet() const { return m_placeIdHasBeenSet; }
77 template<typename PlaceIdT = Aws::String>
78 void SetPlaceId(PlaceIdT&& value) { m_placeIdHasBeenSet = true; m_placeId = std::forward<PlaceIdT>(value); }
79 template<typename PlaceIdT = Aws::String>
80 SearchForPositionResult& WithPlaceId(PlaceIdT&& value) { SetPlaceId(std::forward<PlaceIdT>(value)); return *this;}
82 private:
83
84 Place m_place;
85 bool m_placeHasBeenSet = false;
86
87 double m_distance{0.0};
88 bool m_distanceHasBeenSet = false;
89
90 Aws::String m_placeId;
91 bool m_placeIdHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace LocationService
96} // 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