AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
RouteTollRate.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/geo-routes/model/RouteTollPrice.h>
10#include <aws/geo-routes/model/RouteTollPass.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/geo-routes/model/RouteTollPaymentMethod.h>
13#include <aws/geo-routes/model/RouteTransponder.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace GeoRoutes
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_GEOROUTES_API RouteTollRate() = default;
40 AWS_GEOROUTES_API RouteTollRate(Aws::Utils::Json::JsonView jsonValue);
41 AWS_GEOROUTES_API RouteTollRate& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetApplicableTimes() const { return m_applicableTimes; }
50 inline bool ApplicableTimesHasBeenSet() const { return m_applicableTimesHasBeenSet; }
51 template<typename ApplicableTimesT = Aws::String>
52 void SetApplicableTimes(ApplicableTimesT&& value) { m_applicableTimesHasBeenSet = true; m_applicableTimes = std::forward<ApplicableTimesT>(value); }
53 template<typename ApplicableTimesT = Aws::String>
54 RouteTollRate& WithApplicableTimes(ApplicableTimesT&& value) { SetApplicableTimes(std::forward<ApplicableTimesT>(value)); return *this;}
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) { m_convertedPriceHasBeenSet = true; m_convertedPrice = std::forward<ConvertedPriceT>(value); }
65 template<typename ConvertedPriceT = RouteTollPrice>
66 RouteTollRate& WithConvertedPrice(ConvertedPriceT&& value) { SetConvertedPrice(std::forward<ConvertedPriceT>(value)); return *this;}
68
70
73 inline const Aws::String& GetId() const { return m_id; }
74 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
75 template<typename IdT = Aws::String>
76 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
77 template<typename IdT = Aws::String>
78 RouteTollRate& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
80
82
85 inline const RouteTollPrice& GetLocalPrice() const { return m_localPrice; }
86 inline bool LocalPriceHasBeenSet() const { return m_localPriceHasBeenSet; }
87 template<typename LocalPriceT = RouteTollPrice>
88 void SetLocalPrice(LocalPriceT&& value) { m_localPriceHasBeenSet = true; m_localPrice = std::forward<LocalPriceT>(value); }
89 template<typename LocalPriceT = RouteTollPrice>
90 RouteTollRate& WithLocalPrice(LocalPriceT&& value) { SetLocalPrice(std::forward<LocalPriceT>(value)); return *this;}
92
94
97 inline const Aws::String& GetName() const { return m_name; }
98 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
99 template<typename NameT = Aws::String>
100 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
101 template<typename NameT = Aws::String>
102 RouteTollRate& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
104
106
109 inline const RouteTollPass& GetPass() const { return m_pass; }
110 inline bool PassHasBeenSet() const { return m_passHasBeenSet; }
111 template<typename PassT = RouteTollPass>
112 void SetPass(PassT&& value) { m_passHasBeenSet = true; m_pass = std::forward<PassT>(value); }
113 template<typename PassT = RouteTollPass>
114 RouteTollRate& WithPass(PassT&& value) { SetPass(std::forward<PassT>(value)); return *this;}
116
118
121 inline const Aws::Vector<RouteTollPaymentMethod>& GetPaymentMethods() const { return m_paymentMethods; }
122 inline bool PaymentMethodsHasBeenSet() const { return m_paymentMethodsHasBeenSet; }
123 template<typename PaymentMethodsT = Aws::Vector<RouteTollPaymentMethod>>
124 void SetPaymentMethods(PaymentMethodsT&& value) { m_paymentMethodsHasBeenSet = true; m_paymentMethods = std::forward<PaymentMethodsT>(value); }
125 template<typename PaymentMethodsT = Aws::Vector<RouteTollPaymentMethod>>
126 RouteTollRate& WithPaymentMethods(PaymentMethodsT&& value) { SetPaymentMethods(std::forward<PaymentMethodsT>(value)); return *this;}
127 inline RouteTollRate& AddPaymentMethods(RouteTollPaymentMethod value) { m_paymentMethodsHasBeenSet = true; m_paymentMethods.push_back(value); return *this; }
129
131
134 inline const Aws::Vector<RouteTransponder>& GetTransponders() const { return m_transponders; }
135 inline bool TranspondersHasBeenSet() const { return m_transpondersHasBeenSet; }
136 template<typename TranspondersT = Aws::Vector<RouteTransponder>>
137 void SetTransponders(TranspondersT&& value) { m_transpondersHasBeenSet = true; m_transponders = std::forward<TranspondersT>(value); }
138 template<typename TranspondersT = Aws::Vector<RouteTransponder>>
139 RouteTollRate& WithTransponders(TranspondersT&& value) { SetTransponders(std::forward<TranspondersT>(value)); return *this;}
140 template<typename TranspondersT = RouteTransponder>
141 RouteTollRate& AddTransponders(TranspondersT&& value) { m_transpondersHasBeenSet = true; m_transponders.emplace_back(std::forward<TranspondersT>(value)); return *this; }
143 private:
144
145 Aws::String m_applicableTimes;
146 bool m_applicableTimesHasBeenSet = false;
147
148 RouteTollPrice m_convertedPrice;
149 bool m_convertedPriceHasBeenSet = false;
150
151 Aws::String m_id;
152 bool m_idHasBeenSet = false;
153
154 RouteTollPrice m_localPrice;
155 bool m_localPriceHasBeenSet = false;
156
157 Aws::String m_name;
158 bool m_nameHasBeenSet = false;
159
160 RouteTollPass m_pass;
161 bool m_passHasBeenSet = false;
162
164 bool m_paymentMethodsHasBeenSet = false;
165
166 Aws::Vector<RouteTransponder> m_transponders;
167 bool m_transpondersHasBeenSet = false;
168 };
169
170} // namespace Model
171} // namespace GeoRoutes
172} // 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