AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
RouteFerrySpan.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/geo-routes/model/LocalizedString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GeoRoutes
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_GEOROUTES_API RouteFerrySpan() = default;
38 AWS_GEOROUTES_API RouteFerrySpan(Aws::Utils::Json::JsonView jsonValue);
40 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetCountry() const { return m_country; }
48 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
49 template<typename CountryT = Aws::String>
50 void SetCountry(CountryT&& value) { m_countryHasBeenSet = true; m_country = std::forward<CountryT>(value); }
51 template<typename CountryT = Aws::String>
52 RouteFerrySpan& WithCountry(CountryT&& value) { SetCountry(std::forward<CountryT>(value)); return *this;}
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) { m_distanceHasBeenSet = true; m_distance = value; }
64 inline RouteFerrySpan& WithDistance(long long value) { SetDistance(value); return *this;}
66
68
73 inline long long GetDuration() const { return m_duration; }
74 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
75 inline void SetDuration(long long value) { m_durationHasBeenSet = true; m_duration = value; }
76 inline RouteFerrySpan& WithDuration(long long value) { SetDuration(value); return *this;}
78
80
83 inline int GetGeometryOffset() const { return m_geometryOffset; }
84 inline bool GeometryOffsetHasBeenSet() const { return m_geometryOffsetHasBeenSet; }
85 inline void SetGeometryOffset(int value) { m_geometryOffsetHasBeenSet = true; m_geometryOffset = value; }
86 inline RouteFerrySpan& WithGeometryOffset(int value) { SetGeometryOffset(value); return *this;}
88
90
93 inline const Aws::Vector<LocalizedString>& GetNames() const { return m_names; }
94 inline bool NamesHasBeenSet() const { return m_namesHasBeenSet; }
95 template<typename NamesT = Aws::Vector<LocalizedString>>
96 void SetNames(NamesT&& value) { m_namesHasBeenSet = true; m_names = std::forward<NamesT>(value); }
97 template<typename NamesT = Aws::Vector<LocalizedString>>
98 RouteFerrySpan& WithNames(NamesT&& value) { SetNames(std::forward<NamesT>(value)); return *this;}
99 template<typename NamesT = LocalizedString>
100 RouteFerrySpan& AddNames(NamesT&& value) { m_namesHasBeenSet = true; m_names.emplace_back(std::forward<NamesT>(value)); return *this; }
102
104
108 inline const Aws::String& GetRegion() const { return m_region; }
109 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
110 template<typename RegionT = Aws::String>
111 void SetRegion(RegionT&& value) { m_regionHasBeenSet = true; m_region = std::forward<RegionT>(value); }
112 template<typename RegionT = Aws::String>
113 RouteFerrySpan& WithRegion(RegionT&& value) { SetRegion(std::forward<RegionT>(value)); return *this;}
115 private:
116
117 Aws::String m_country;
118 bool m_countryHasBeenSet = false;
119
120 long long m_distance{0};
121 bool m_distanceHasBeenSet = false;
122
123 long long m_duration{0};
124 bool m_durationHasBeenSet = false;
125
126 int m_geometryOffset{0};
127 bool m_geometryOffsetHasBeenSet = false;
128
130 bool m_namesHasBeenSet = false;
131
132 Aws::String m_region;
133 bool m_regionHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace GeoRoutes
138} // 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