AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
RouteToll.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/RouteTollPaymentSite.h>
11#include <aws/geo-routes/model/RouteTollRate.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace GeoRoutes
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_GEOROUTES_API RouteToll() = default;
40 AWS_GEOROUTES_API RouteToll(Aws::Utils::Json::JsonView jsonValue);
41 AWS_GEOROUTES_API RouteToll& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetCountry() const { return m_country; }
50 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
51 template<typename CountryT = Aws::String>
52 void SetCountry(CountryT&& value) { m_countryHasBeenSet = true; m_country = std::forward<CountryT>(value); }
53 template<typename CountryT = Aws::String>
54 RouteToll& WithCountry(CountryT&& value) { SetCountry(std::forward<CountryT>(value)); return *this;}
56
58
61 inline const Aws::Vector<RouteTollPaymentSite>& GetPaymentSites() const { return m_paymentSites; }
62 inline bool PaymentSitesHasBeenSet() const { return m_paymentSitesHasBeenSet; }
63 template<typename PaymentSitesT = Aws::Vector<RouteTollPaymentSite>>
64 void SetPaymentSites(PaymentSitesT&& value) { m_paymentSitesHasBeenSet = true; m_paymentSites = std::forward<PaymentSitesT>(value); }
65 template<typename PaymentSitesT = Aws::Vector<RouteTollPaymentSite>>
66 RouteToll& WithPaymentSites(PaymentSitesT&& value) { SetPaymentSites(std::forward<PaymentSitesT>(value)); return *this;}
67 template<typename PaymentSitesT = RouteTollPaymentSite>
68 RouteToll& AddPaymentSites(PaymentSitesT&& value) { m_paymentSitesHasBeenSet = true; m_paymentSites.emplace_back(std::forward<PaymentSitesT>(value)); return *this; }
70
72
75 inline const Aws::Vector<RouteTollRate>& GetRates() const { return m_rates; }
76 inline bool RatesHasBeenSet() const { return m_ratesHasBeenSet; }
77 template<typename RatesT = Aws::Vector<RouteTollRate>>
78 void SetRates(RatesT&& value) { m_ratesHasBeenSet = true; m_rates = std::forward<RatesT>(value); }
79 template<typename RatesT = Aws::Vector<RouteTollRate>>
80 RouteToll& WithRates(RatesT&& value) { SetRates(std::forward<RatesT>(value)); return *this;}
81 template<typename RatesT = RouteTollRate>
82 RouteToll& AddRates(RatesT&& value) { m_ratesHasBeenSet = true; m_rates.emplace_back(std::forward<RatesT>(value)); return *this; }
84
86
89 inline const Aws::Vector<int>& GetSystems() const { return m_systems; }
90 inline bool SystemsHasBeenSet() const { return m_systemsHasBeenSet; }
91 template<typename SystemsT = Aws::Vector<int>>
92 void SetSystems(SystemsT&& value) { m_systemsHasBeenSet = true; m_systems = std::forward<SystemsT>(value); }
93 template<typename SystemsT = Aws::Vector<int>>
94 RouteToll& WithSystems(SystemsT&& value) { SetSystems(std::forward<SystemsT>(value)); return *this;}
95 inline RouteToll& AddSystems(int value) { m_systemsHasBeenSet = true; m_systems.push_back(value); return *this; }
97 private:
98
99 Aws::String m_country;
100 bool m_countryHasBeenSet = false;
101
103 bool m_paymentSitesHasBeenSet = false;
104
106 bool m_ratesHasBeenSet = false;
107
108 Aws::Vector<int> m_systems;
109 bool m_systemsHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace GeoRoutes
114} // namespace Aws
RouteToll & AddRates(RatesT &&value)
Definition RouteToll.h:82
const Aws::String & GetCountry() const
Definition RouteToll.h:49
AWS_GEOROUTES_API RouteToll & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API RouteToll(Aws::Utils::Json::JsonView jsonValue)
RouteToll & WithSystems(SystemsT &&value)
Definition RouteToll.h:94
RouteToll & WithPaymentSites(PaymentSitesT &&value)
Definition RouteToll.h:66
void SetPaymentSites(PaymentSitesT &&value)
Definition RouteToll.h:64
RouteToll & WithCountry(CountryT &&value)
Definition RouteToll.h:54
const Aws::Vector< RouteTollPaymentSite > & GetPaymentSites() const
Definition RouteToll.h:61
AWS_GEOROUTES_API RouteToll()=default
RouteToll & AddPaymentSites(PaymentSitesT &&value)
Definition RouteToll.h:68
void SetSystems(SystemsT &&value)
Definition RouteToll.h:92
void SetCountry(CountryT &&value)
Definition RouteToll.h:52
void SetRates(RatesT &&value)
Definition RouteToll.h:78
const Aws::Vector< int > & GetSystems() const
Definition RouteToll.h:89
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
RouteToll & AddSystems(int value)
Definition RouteToll.h:95
const Aws::Vector< RouteTollRate > & GetRates() const
Definition RouteToll.h:75
RouteToll & WithRates(RatesT &&value)
Definition RouteToll.h:80
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue