AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 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 SearchForPositionResult& WithPlace(const Place& value) { SetPlace(value); return *this;}
51 inline SearchForPositionResult& WithPlace(Place&& value) { SetPlace(std::move(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 inline void SetPlaceId(const Aws::String& value) { m_placeIdHasBeenSet = true; m_placeId = value; }
78 inline void SetPlaceId(Aws::String&& value) { m_placeIdHasBeenSet = true; m_placeId = std::move(value); }
79 inline void SetPlaceId(const char* value) { m_placeIdHasBeenSet = true; m_placeId.assign(value); }
80 inline SearchForPositionResult& WithPlaceId(const Aws::String& value) { SetPlaceId(value); return *this;}
81 inline SearchForPositionResult& WithPlaceId(Aws::String&& value) { SetPlaceId(std::move(value)); return *this;}
82 inline SearchForPositionResult& WithPlaceId(const char* value) { SetPlaceId(value); return *this;}
84 private:
85
86 Place m_place;
87 bool m_placeHasBeenSet = false;
88
89 double m_distance;
90 bool m_distanceHasBeenSet = false;
91
92 Aws::String m_placeId;
93 bool m_placeIdHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace LocationService
98} // namespace Aws
AWS_LOCATIONSERVICE_API SearchForPositionResult & operator=(Aws::Utils::Json::JsonView jsonValue)
SearchForPositionResult & WithPlaceId(const char *value)
SearchForPositionResult & WithPlace(Place &&value)
AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
SearchForPositionResult & WithPlace(const Place &value)
SearchForPositionResult & WithPlaceId(const Aws::String &value)
SearchForPositionResult & WithPlaceId(Aws::String &&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