AWS SDK for C++

AWS SDK for C++ Version 1.11.770

Loading...
Searching...
No Matches
RouteTollRate.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/RouteTollPass.h>
11#include <aws/geo-routes/model/RouteTollPaymentMethod.h>
12#include <aws/geo-routes/model/RouteTollPrice.h>
13#include <aws/geo-routes/model/RouteTransponder.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace GeoRoutes {
25namespace Model {
26
33 public:
34 AWS_GEOROUTES_API RouteTollRate() = default;
35 AWS_GEOROUTES_API RouteTollRate(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GEOROUTES_API RouteTollRate& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetApplicableTimes() const { return m_applicableTimes; }
44 inline bool ApplicableTimesHasBeenSet() const { return m_applicableTimesHasBeenSet; }
45 template <typename ApplicableTimesT = Aws::String>
46 void SetApplicableTimes(ApplicableTimesT&& value) {
47 m_applicableTimesHasBeenSet = true;
48 m_applicableTimes = std::forward<ApplicableTimesT>(value);
49 }
50 template <typename ApplicableTimesT = Aws::String>
51 RouteTollRate& WithApplicableTimes(ApplicableTimesT&& value) {
52 SetApplicableTimes(std::forward<ApplicableTimesT>(value));
53 return *this;
54 }
56
58
61 inline const RouteTollPrice& GetConvertedPrice() const { return m_convertedPrice; }
62 inline bool ConvertedPriceHasBeenSet() const { return m_convertedPriceHasBeenSet; }
63 template <typename ConvertedPriceT = RouteTollPrice>
64 void SetConvertedPrice(ConvertedPriceT&& value) {
65 m_convertedPriceHasBeenSet = true;
66 m_convertedPrice = std::forward<ConvertedPriceT>(value);
67 }
68 template <typename ConvertedPriceT = RouteTollPrice>
69 RouteTollRate& WithConvertedPrice(ConvertedPriceT&& value) {
70 SetConvertedPrice(std::forward<ConvertedPriceT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetId() const { return m_id; }
80 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
81 template <typename IdT = Aws::String>
82 void SetId(IdT&& value) {
83 m_idHasBeenSet = true;
84 m_id = std::forward<IdT>(value);
85 }
86 template <typename IdT = Aws::String>
87 RouteTollRate& WithId(IdT&& value) {
88 SetId(std::forward<IdT>(value));
89 return *this;
90 }
92
94
97 inline const RouteTollPrice& GetLocalPrice() const { return m_localPrice; }
98 inline bool LocalPriceHasBeenSet() const { return m_localPriceHasBeenSet; }
99 template <typename LocalPriceT = RouteTollPrice>
100 void SetLocalPrice(LocalPriceT&& value) {
101 m_localPriceHasBeenSet = true;
102 m_localPrice = std::forward<LocalPriceT>(value);
103 }
104 template <typename LocalPriceT = RouteTollPrice>
105 RouteTollRate& WithLocalPrice(LocalPriceT&& value) {
106 SetLocalPrice(std::forward<LocalPriceT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetName() const { return m_name; }
116 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
117 template <typename NameT = Aws::String>
118 void SetName(NameT&& value) {
119 m_nameHasBeenSet = true;
120 m_name = std::forward<NameT>(value);
121 }
122 template <typename NameT = Aws::String>
123 RouteTollRate& WithName(NameT&& value) {
124 SetName(std::forward<NameT>(value));
125 return *this;
126 }
128
130
133 inline const RouteTollPass& GetPass() const { return m_pass; }
134 inline bool PassHasBeenSet() const { return m_passHasBeenSet; }
135 template <typename PassT = RouteTollPass>
136 void SetPass(PassT&& value) {
137 m_passHasBeenSet = true;
138 m_pass = std::forward<PassT>(value);
139 }
140 template <typename PassT = RouteTollPass>
141 RouteTollRate& WithPass(PassT&& value) {
142 SetPass(std::forward<PassT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::Vector<RouteTollPaymentMethod>& GetPaymentMethods() const { return m_paymentMethods; }
152 inline bool PaymentMethodsHasBeenSet() const { return m_paymentMethodsHasBeenSet; }
153 template <typename PaymentMethodsT = Aws::Vector<RouteTollPaymentMethod>>
154 void SetPaymentMethods(PaymentMethodsT&& value) {
155 m_paymentMethodsHasBeenSet = true;
156 m_paymentMethods = std::forward<PaymentMethodsT>(value);
157 }
158 template <typename PaymentMethodsT = Aws::Vector<RouteTollPaymentMethod>>
159 RouteTollRate& WithPaymentMethods(PaymentMethodsT&& value) {
160 SetPaymentMethods(std::forward<PaymentMethodsT>(value));
161 return *this;
162 }
164 m_paymentMethodsHasBeenSet = true;
165 m_paymentMethods.push_back(value);
166 return *this;
167 }
169
171
174 inline const Aws::Vector<RouteTransponder>& GetTransponders() const { return m_transponders; }
175 inline bool TranspondersHasBeenSet() const { return m_transpondersHasBeenSet; }
176 template <typename TranspondersT = Aws::Vector<RouteTransponder>>
177 void SetTransponders(TranspondersT&& value) {
178 m_transpondersHasBeenSet = true;
179 m_transponders = std::forward<TranspondersT>(value);
180 }
181 template <typename TranspondersT = Aws::Vector<RouteTransponder>>
182 RouteTollRate& WithTransponders(TranspondersT&& value) {
183 SetTransponders(std::forward<TranspondersT>(value));
184 return *this;
185 }
186 template <typename TranspondersT = RouteTransponder>
187 RouteTollRate& AddTransponders(TranspondersT&& value) {
188 m_transpondersHasBeenSet = true;
189 m_transponders.emplace_back(std::forward<TranspondersT>(value));
190 return *this;
191 }
193 private:
194 Aws::String m_applicableTimes;
195
196 RouteTollPrice m_convertedPrice;
197
198 Aws::String m_id;
199
200 RouteTollPrice m_localPrice;
201
202 Aws::String m_name;
203
204 RouteTollPass m_pass;
205
207
208 Aws::Vector<RouteTransponder> m_transponders;
209 bool m_applicableTimesHasBeenSet = false;
210 bool m_convertedPriceHasBeenSet = false;
211 bool m_idHasBeenSet = false;
212 bool m_localPriceHasBeenSet = false;
213 bool m_nameHasBeenSet = false;
214 bool m_passHasBeenSet = false;
215 bool m_paymentMethodsHasBeenSet = false;
216 bool m_transpondersHasBeenSet = false;
217};
218
219} // namespace Model
220} // namespace GeoRoutes
221} // namespace Aws
const Aws::String & GetName() const
RouteTollRate & AddPaymentMethods(RouteTollPaymentMethod value)
RouteTollRate & WithPass(PassT &&value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
RouteTollRate & WithId(IdT &&value)
RouteTollRate & WithName(NameT &&value)
RouteTollRate & WithConvertedPrice(ConvertedPriceT &&value)
AWS_GEOROUTES_API RouteTollRate()=default
void SetApplicableTimes(ApplicableTimesT &&value)
void SetTransponders(TranspondersT &&value)
void SetPaymentMethods(PaymentMethodsT &&value)
RouteTollRate & WithLocalPrice(LocalPriceT &&value)
const Aws::String & GetApplicableTimes() const
const RouteTollPass & GetPass() const
void SetLocalPrice(LocalPriceT &&value)
RouteTollRate & WithTransponders(TranspondersT &&value)
AWS_GEOROUTES_API RouteTollRate(Aws::Utils::Json::JsonView jsonValue)
RouteTollRate & WithApplicableTimes(ApplicableTimesT &&value)
const RouteTollPrice & GetLocalPrice() const
AWS_GEOROUTES_API RouteTollRate & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< RouteTollPaymentMethod > & GetPaymentMethods() const
const Aws::String & GetId() const
RouteTollRate & WithPaymentMethods(PaymentMethodsT &&value)
RouteTollRate & AddTransponders(TranspondersT &&value)
const RouteTollPrice & GetConvertedPrice() const
void SetConvertedPrice(ConvertedPriceT &&value)
const Aws::Vector< RouteTransponder > & GetTransponders() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue