AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
Location.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/networkmanager/NetworkManager_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace NetworkManager {
20namespace Model {
21
27class Location {
28 public:
29 AWS_NETWORKMANAGER_API Location() = default;
30 AWS_NETWORKMANAGER_API Location(Aws::Utils::Json::JsonView jsonValue);
31 AWS_NETWORKMANAGER_API Location& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetAddress() const { return m_address; }
39 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
40 template <typename AddressT = Aws::String>
41 void SetAddress(AddressT&& value) {
42 m_addressHasBeenSet = true;
43 m_address = std::forward<AddressT>(value);
44 }
45 template <typename AddressT = Aws::String>
46 Location& WithAddress(AddressT&& value) {
47 SetAddress(std::forward<AddressT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetLatitude() const { return m_latitude; }
57 inline bool LatitudeHasBeenSet() const { return m_latitudeHasBeenSet; }
58 template <typename LatitudeT = Aws::String>
59 void SetLatitude(LatitudeT&& value) {
60 m_latitudeHasBeenSet = true;
61 m_latitude = std::forward<LatitudeT>(value);
62 }
63 template <typename LatitudeT = Aws::String>
64 Location& WithLatitude(LatitudeT&& value) {
65 SetLatitude(std::forward<LatitudeT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetLongitude() const { return m_longitude; }
75 inline bool LongitudeHasBeenSet() const { return m_longitudeHasBeenSet; }
76 template <typename LongitudeT = Aws::String>
77 void SetLongitude(LongitudeT&& value) {
78 m_longitudeHasBeenSet = true;
79 m_longitude = std::forward<LongitudeT>(value);
80 }
81 template <typename LongitudeT = Aws::String>
82 Location& WithLongitude(LongitudeT&& value) {
83 SetLongitude(std::forward<LongitudeT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_address;
89
90 Aws::String m_latitude;
91
92 Aws::String m_longitude;
93 bool m_addressHasBeenSet = false;
94 bool m_latitudeHasBeenSet = false;
95 bool m_longitudeHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace NetworkManager
100} // namespace Aws
void SetLongitude(LongitudeT &&value)
Definition Location.h:77
const Aws::String & GetLatitude() const
Definition Location.h:56
Location & WithAddress(AddressT &&value)
Definition Location.h:46
Location & WithLatitude(LatitudeT &&value)
Definition Location.h:64
void SetLatitude(LatitudeT &&value)
Definition Location.h:59
void SetAddress(AddressT &&value)
Definition Location.h:41
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetLongitude() const
Definition Location.h:74
AWS_NETWORKMANAGER_API Location()=default
Location & WithLongitude(LongitudeT &&value)
Definition Location.h:82
const Aws::String & GetAddress() const
Definition Location.h:38
AWS_NETWORKMANAGER_API Location(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKMANAGER_API Location & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue