AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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