AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCountry(const Aws::String& value) { m_countryHasBeenSet = true; m_country = value; }
50 inline void SetCountry(Aws::String&& value) { m_countryHasBeenSet = true; m_country = std::move(value); }
51 inline void SetCountry(const char* value) { m_countryHasBeenSet = true; m_country.assign(value); }
52 inline RouteFerrySpan& WithCountry(const Aws::String& value) { SetCountry(value); return *this;}
53 inline RouteFerrySpan& WithCountry(Aws::String&& value) { SetCountry(std::move(value)); return *this;}
54 inline RouteFerrySpan& WithCountry(const char* value) { SetCountry(value); return *this;}
56
58
62 inline long long GetDistance() const{ return m_distance; }
63 inline bool DistanceHasBeenSet() const { return m_distanceHasBeenSet; }
64 inline void SetDistance(long long value) { m_distanceHasBeenSet = true; m_distance = value; }
65 inline RouteFerrySpan& WithDistance(long long value) { SetDistance(value); return *this;}
67
69
74 inline long long GetDuration() const{ return m_duration; }
75 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
76 inline void SetDuration(long long value) { m_durationHasBeenSet = true; m_duration = value; }
77 inline RouteFerrySpan& WithDuration(long long value) { SetDuration(value); return *this;}
79
81
84 inline int GetGeometryOffset() const{ return m_geometryOffset; }
85 inline bool GeometryOffsetHasBeenSet() const { return m_geometryOffsetHasBeenSet; }
86 inline void SetGeometryOffset(int value) { m_geometryOffsetHasBeenSet = true; m_geometryOffset = value; }
87 inline RouteFerrySpan& WithGeometryOffset(int value) { SetGeometryOffset(value); return *this;}
89
91
94 inline const Aws::Vector<LocalizedString>& GetNames() const{ return m_names; }
95 inline bool NamesHasBeenSet() const { return m_namesHasBeenSet; }
96 inline void SetNames(const Aws::Vector<LocalizedString>& value) { m_namesHasBeenSet = true; m_names = value; }
97 inline void SetNames(Aws::Vector<LocalizedString>&& value) { m_namesHasBeenSet = true; m_names = std::move(value); }
98 inline RouteFerrySpan& WithNames(const Aws::Vector<LocalizedString>& value) { SetNames(value); return *this;}
99 inline RouteFerrySpan& WithNames(Aws::Vector<LocalizedString>&& value) { SetNames(std::move(value)); return *this;}
100 inline RouteFerrySpan& AddNames(const LocalizedString& value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; }
101 inline RouteFerrySpan& AddNames(LocalizedString&& value) { m_namesHasBeenSet = true; m_names.push_back(std::move(value)); return *this; }
103
105
109 inline const Aws::String& GetRegion() const{ return m_region; }
110 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
111 inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
112 inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
113 inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
114 inline RouteFerrySpan& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
115 inline RouteFerrySpan& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
116 inline RouteFerrySpan& WithRegion(const char* value) { SetRegion(value); return *this;}
118 private:
119
120 Aws::String m_country;
121 bool m_countryHasBeenSet = false;
122
123 long long m_distance;
124 bool m_distanceHasBeenSet = false;
125
126 long long m_duration;
127 bool m_durationHasBeenSet = false;
128
129 int m_geometryOffset;
130 bool m_geometryOffsetHasBeenSet = false;
131
133 bool m_namesHasBeenSet = false;
134
135 Aws::String m_region;
136 bool m_regionHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace GeoRoutes
141} // namespace Aws
void SetCountry(const Aws::String &value)
AWS_GEOROUTES_API RouteFerrySpan(Aws::Utils::Json::JsonView jsonValue)
RouteFerrySpan & WithDuration(long long value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
void SetNames(const Aws::Vector< LocalizedString > &value)
RouteFerrySpan & WithRegion(const char *value)
void SetRegion(Aws::String &&value)
RouteFerrySpan & WithRegion(Aws::String &&value)
RouteFerrySpan & WithCountry(const Aws::String &value)
const Aws::String & GetCountry() const
RouteFerrySpan & WithGeometryOffset(int value)
const Aws::String & GetRegion() const
RouteFerrySpan & AddNames(LocalizedString &&value)
RouteFerrySpan & WithRegion(const Aws::String &value)
RouteFerrySpan & WithNames(const Aws::Vector< LocalizedString > &value)
const Aws::Vector< LocalizedString > & GetNames() const
void SetNames(Aws::Vector< LocalizedString > &&value)
AWS_GEOROUTES_API RouteFerrySpan & operator=(Aws::Utils::Json::JsonView jsonValue)
RouteFerrySpan & WithCountry(Aws::String &&value)
void SetCountry(Aws::String &&value)
RouteFerrySpan & WithCountry(const char *value)
RouteFerrySpan & WithDistance(long long value)
RouteFerrySpan & WithNames(Aws::Vector< LocalizedString > &&value)
RouteFerrySpan & AddNames(const LocalizedString &value)
void SetRegion(const Aws::String &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