AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
GPSCoordinates.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace Pinpoint {
17namespace Model {
18
25 public:
26 AWS_PINPOINT_API GPSCoordinates() = default;
27 AWS_PINPOINT_API GPSCoordinates(Aws::Utils::Json::JsonView jsonValue);
29 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
30
32
35 inline double GetLatitude() const { return m_latitude; }
36 inline bool LatitudeHasBeenSet() const { return m_latitudeHasBeenSet; }
37 inline void SetLatitude(double value) {
38 m_latitudeHasBeenSet = true;
39 m_latitude = value;
40 }
41 inline GPSCoordinates& WithLatitude(double value) {
42 SetLatitude(value);
43 return *this;
44 }
46
48
51 inline double GetLongitude() const { return m_longitude; }
52 inline bool LongitudeHasBeenSet() const { return m_longitudeHasBeenSet; }
53 inline void SetLongitude(double value) {
54 m_longitudeHasBeenSet = true;
55 m_longitude = value;
56 }
57 inline GPSCoordinates& WithLongitude(double value) {
58 SetLongitude(value);
59 return *this;
60 }
62 private:
63 double m_latitude{0.0};
64 bool m_latitudeHasBeenSet = false;
65
66 double m_longitude{0.0};
67 bool m_longitudeHasBeenSet = false;
68};
69
70} // namespace Model
71} // namespace Pinpoint
72} // namespace Aws
AWS_PINPOINT_API GPSCoordinates(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
GPSCoordinates & WithLongitude(double value)
GPSCoordinates & WithLatitude(double value)
AWS_PINPOINT_API GPSCoordinates()=default
AWS_PINPOINT_API GPSCoordinates & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue