AWS SDK for C++

AWS SDK for C++ Version 1.11.762

Loading...
Searching...
No Matches
RouteFerrySpan.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
10#include <aws/geo-routes/model/LocalizedString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GeoRoutes {
22namespace Model {
23
31 public:
32 AWS_GEOROUTES_API RouteFerrySpan() = default;
33 AWS_GEOROUTES_API RouteFerrySpan(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetCountry() const { return m_country; }
42 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
43 template <typename CountryT = Aws::String>
44 void SetCountry(CountryT&& value) {
45 m_countryHasBeenSet = true;
46 m_country = std::forward<CountryT>(value);
47 }
48 template <typename CountryT = Aws::String>
49 RouteFerrySpan& WithCountry(CountryT&& value) {
50 SetCountry(std::forward<CountryT>(value));
51 return *this;
52 }
54
56
61 inline long long GetDistance() const { return m_distance; }
62 inline bool DistanceHasBeenSet() const { return m_distanceHasBeenSet; }
63 inline void SetDistance(long long value) {
64 m_distanceHasBeenSet = true;
65 m_distance = value;
66 }
67 inline RouteFerrySpan& WithDistance(long long value) {
68 SetDistance(value);
69 return *this;
70 }
72
74
79 inline long long GetDuration() const { return m_duration; }
80 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
81 inline void SetDuration(long long value) {
82 m_durationHasBeenSet = true;
83 m_duration = value;
84 }
85 inline RouteFerrySpan& WithDuration(long long value) {
86 SetDuration(value);
87 return *this;
88 }
90
92
95 inline int GetGeometryOffset() const { return m_geometryOffset; }
96 inline bool GeometryOffsetHasBeenSet() const { return m_geometryOffsetHasBeenSet; }
97 inline void SetGeometryOffset(int value) {
98 m_geometryOffsetHasBeenSet = true;
99 m_geometryOffset = value;
100 }
102 SetGeometryOffset(value);
103 return *this;
104 }
106
108
111 inline const Aws::Vector<LocalizedString>& GetNames() const { return m_names; }
112 inline bool NamesHasBeenSet() const { return m_namesHasBeenSet; }
113 template <typename NamesT = Aws::Vector<LocalizedString>>
114 void SetNames(NamesT&& value) {
115 m_namesHasBeenSet = true;
116 m_names = std::forward<NamesT>(value);
117 }
118 template <typename NamesT = Aws::Vector<LocalizedString>>
119 RouteFerrySpan& WithNames(NamesT&& value) {
120 SetNames(std::forward<NamesT>(value));
121 return *this;
122 }
123 template <typename NamesT = LocalizedString>
124 RouteFerrySpan& AddNames(NamesT&& value) {
125 m_namesHasBeenSet = true;
126 m_names.emplace_back(std::forward<NamesT>(value));
127 return *this;
128 }
130
132
136 inline const Aws::String& GetRegion() const { return m_region; }
137 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
138 template <typename RegionT = Aws::String>
139 void SetRegion(RegionT&& value) {
140 m_regionHasBeenSet = true;
141 m_region = std::forward<RegionT>(value);
142 }
143 template <typename RegionT = Aws::String>
144 RouteFerrySpan& WithRegion(RegionT&& value) {
145 SetRegion(std::forward<RegionT>(value));
146 return *this;
147 }
149 private:
150 Aws::String m_country;
151
152 long long m_distance{0};
153
154 long long m_duration{0};
155
156 int m_geometryOffset{0};
157
159
160 Aws::String m_region;
161 bool m_countryHasBeenSet = false;
162 bool m_distanceHasBeenSet = false;
163 bool m_durationHasBeenSet = false;
164 bool m_geometryOffsetHasBeenSet = false;
165 bool m_namesHasBeenSet = false;
166 bool m_regionHasBeenSet = false;
167};
168
169} // namespace Model
170} // namespace GeoRoutes
171} // namespace Aws
AWS_GEOROUTES_API RouteFerrySpan(Aws::Utils::Json::JsonView jsonValue)
RouteFerrySpan & WithDuration(long long value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
RouteFerrySpan & AddNames(NamesT &&value)
RouteFerrySpan & WithCountry(CountryT &&value)
const Aws::String & GetCountry() const
RouteFerrySpan & WithNames(NamesT &&value)
AWS_GEOROUTES_API RouteFerrySpan()=default
RouteFerrySpan & WithGeometryOffset(int value)
const Aws::String & GetRegion() const
const Aws::Vector< LocalizedString > & GetNames() const
RouteFerrySpan & WithRegion(RegionT &&value)
AWS_GEOROUTES_API RouteFerrySpan & operator=(Aws::Utils::Json::JsonView jsonValue)
RouteFerrySpan & WithDistance(long long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue