AWS SDK for C++

AWS SDK for C++ Version 1.11.771

Loading...
Searching...
No Matches
RouteTollOptions.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
9#include <aws/geo-routes/model/RouteEmissionType.h>
10#include <aws/geo-routes/model/RouteTollVehicleCategory.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
30 public:
31 AWS_GEOROUTES_API RouteTollOptions() = default;
32 AWS_GEOROUTES_API RouteTollOptions(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
42 inline bool GetAllTransponders() const { return m_allTransponders; }
43 inline bool AllTranspondersHasBeenSet() const { return m_allTranspondersHasBeenSet; }
44 inline void SetAllTransponders(bool value) {
45 m_allTranspondersHasBeenSet = true;
46 m_allTransponders = value;
47 }
49 SetAllTransponders(value);
50 return *this;
51 }
53
55
60 inline bool GetAllVignettes() const { return m_allVignettes; }
61 inline bool AllVignettesHasBeenSet() const { return m_allVignettesHasBeenSet; }
62 inline void SetAllVignettes(bool value) {
63 m_allVignettesHasBeenSet = true;
64 m_allVignettes = value;
65 }
66 inline RouteTollOptions& WithAllVignettes(bool value) {
67 SetAllVignettes(value);
68 return *this;
69 }
71
73
77 inline const Aws::String& GetCurrency() const { return m_currency; }
78 inline bool CurrencyHasBeenSet() const { return m_currencyHasBeenSet; }
79 template <typename CurrencyT = Aws::String>
80 void SetCurrency(CurrencyT&& value) {
81 m_currencyHasBeenSet = true;
82 m_currency = std::forward<CurrencyT>(value);
83 }
84 template <typename CurrencyT = Aws::String>
85 RouteTollOptions& WithCurrency(CurrencyT&& value) {
86 SetCurrency(std::forward<CurrencyT>(value));
87 return *this;
88 }
90
92
96 inline const RouteEmissionType& GetEmissionType() const { return m_emissionType; }
97 inline bool EmissionTypeHasBeenSet() const { return m_emissionTypeHasBeenSet; }
98 template <typename EmissionTypeT = RouteEmissionType>
99 void SetEmissionType(EmissionTypeT&& value) {
100 m_emissionTypeHasBeenSet = true;
101 m_emissionType = std::forward<EmissionTypeT>(value);
102 }
103 template <typename EmissionTypeT = RouteEmissionType>
104 RouteTollOptions& WithEmissionType(EmissionTypeT&& value) {
105 SetEmissionType(std::forward<EmissionTypeT>(value));
106 return *this;
107 }
109
111
114 inline RouteTollVehicleCategory GetVehicleCategory() const { return m_vehicleCategory; }
115 inline bool VehicleCategoryHasBeenSet() const { return m_vehicleCategoryHasBeenSet; }
117 m_vehicleCategoryHasBeenSet = true;
118 m_vehicleCategory = value;
119 }
121 SetVehicleCategory(value);
122 return *this;
123 }
125 private:
126 bool m_allTransponders{false};
127
128 bool m_allVignettes{false};
129
130 Aws::String m_currency;
131
132 RouteEmissionType m_emissionType;
133
135 bool m_allTranspondersHasBeenSet = false;
136 bool m_allVignettesHasBeenSet = false;
137 bool m_currencyHasBeenSet = false;
138 bool m_emissionTypeHasBeenSet = false;
139 bool m_vehicleCategoryHasBeenSet = false;
140};
141
142} // namespace Model
143} // namespace GeoRoutes
144} // namespace Aws
RouteTollVehicleCategory GetVehicleCategory() const
RouteTollOptions & WithCurrency(CurrencyT &&value)
AWS_GEOROUTES_API RouteTollOptions()=default
void SetEmissionType(EmissionTypeT &&value)
RouteTollOptions & WithVehicleCategory(RouteTollVehicleCategory value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
RouteTollOptions & WithEmissionType(EmissionTypeT &&value)
RouteTollOptions & WithAllTransponders(bool value)
AWS_GEOROUTES_API RouteTollOptions(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API RouteTollOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
RouteTollOptions & WithAllVignettes(bool value)
const RouteEmissionType & GetEmissionType() const
const Aws::String & GetCurrency() const
void SetVehicleCategory(RouteTollVehicleCategory value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue