AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCountry(const Aws::String& value) { m_countryHasBeenSet = true; m_country = value; }
52 inline void SetCountry(Aws::String&& value) { m_countryHasBeenSet = true; m_country = std::move(value); }
53 inline void SetCountry(const char* value) { m_countryHasBeenSet = true; m_country.assign(value); }
54 inline RouteToll& WithCountry(const Aws::String& value) { SetCountry(value); return *this;}
55 inline RouteToll& WithCountry(Aws::String&& value) { SetCountry(std::move(value)); return *this;}
56 inline RouteToll& WithCountry(const char* value) { SetCountry(value); return *this;}
58
60
63 inline const Aws::Vector<RouteTollPaymentSite>& GetPaymentSites() const{ return m_paymentSites; }
64 inline bool PaymentSitesHasBeenSet() const { return m_paymentSitesHasBeenSet; }
65 inline void SetPaymentSites(const Aws::Vector<RouteTollPaymentSite>& value) { m_paymentSitesHasBeenSet = true; m_paymentSites = value; }
66 inline void SetPaymentSites(Aws::Vector<RouteTollPaymentSite>&& value) { m_paymentSitesHasBeenSet = true; m_paymentSites = std::move(value); }
67 inline RouteToll& WithPaymentSites(const Aws::Vector<RouteTollPaymentSite>& value) { SetPaymentSites(value); return *this;}
68 inline RouteToll& WithPaymentSites(Aws::Vector<RouteTollPaymentSite>&& value) { SetPaymentSites(std::move(value)); return *this;}
69 inline RouteToll& AddPaymentSites(const RouteTollPaymentSite& value) { m_paymentSitesHasBeenSet = true; m_paymentSites.push_back(value); return *this; }
70 inline RouteToll& AddPaymentSites(RouteTollPaymentSite&& value) { m_paymentSitesHasBeenSet = true; m_paymentSites.push_back(std::move(value)); return *this; }
72
74
77 inline const Aws::Vector<RouteTollRate>& GetRates() const{ return m_rates; }
78 inline bool RatesHasBeenSet() const { return m_ratesHasBeenSet; }
79 inline void SetRates(const Aws::Vector<RouteTollRate>& value) { m_ratesHasBeenSet = true; m_rates = value; }
80 inline void SetRates(Aws::Vector<RouteTollRate>&& value) { m_ratesHasBeenSet = true; m_rates = std::move(value); }
81 inline RouteToll& WithRates(const Aws::Vector<RouteTollRate>& value) { SetRates(value); return *this;}
82 inline RouteToll& WithRates(Aws::Vector<RouteTollRate>&& value) { SetRates(std::move(value)); return *this;}
83 inline RouteToll& AddRates(const RouteTollRate& value) { m_ratesHasBeenSet = true; m_rates.push_back(value); return *this; }
84 inline RouteToll& AddRates(RouteTollRate&& value) { m_ratesHasBeenSet = true; m_rates.push_back(std::move(value)); return *this; }
86
88
91 inline const Aws::Vector<int>& GetSystems() const{ return m_systems; }
92 inline bool SystemsHasBeenSet() const { return m_systemsHasBeenSet; }
93 inline void SetSystems(const Aws::Vector<int>& value) { m_systemsHasBeenSet = true; m_systems = value; }
94 inline void SetSystems(Aws::Vector<int>&& value) { m_systemsHasBeenSet = true; m_systems = std::move(value); }
95 inline RouteToll& WithSystems(const Aws::Vector<int>& value) { SetSystems(value); return *this;}
96 inline RouteToll& WithSystems(Aws::Vector<int>&& value) { SetSystems(std::move(value)); return *this;}
97 inline RouteToll& AddSystems(int value) { m_systemsHasBeenSet = true; m_systems.push_back(value); return *this; }
99 private:
100
101 Aws::String m_country;
102 bool m_countryHasBeenSet = false;
103
105 bool m_paymentSitesHasBeenSet = false;
106
108 bool m_ratesHasBeenSet = false;
109
110 Aws::Vector<int> m_systems;
111 bool m_systemsHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace GeoRoutes
116} // namespace Aws
void SetRates(const Aws::Vector< RouteTollRate > &value)
Definition RouteToll.h:79
const Aws::String & GetCountry() const
Definition RouteToll.h:49
AWS_GEOROUTES_API RouteToll & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRates(Aws::Vector< RouteTollRate > &&value)
Definition RouteToll.h:80
AWS_GEOROUTES_API RouteToll(Aws::Utils::Json::JsonView jsonValue)
void SetPaymentSites(const Aws::Vector< RouteTollPaymentSite > &value)
Definition RouteToll.h:65
RouteToll & AddPaymentSites(RouteTollPaymentSite &&value)
Definition RouteToll.h:70
void SetCountry(Aws::String &&value)
Definition RouteToll.h:52
RouteToll & WithPaymentSites(Aws::Vector< RouteTollPaymentSite > &&value)
Definition RouteToll.h:68
const Aws::Vector< RouteTollPaymentSite > & GetPaymentSites() const
Definition RouteToll.h:63
AWS_GEOROUTES_API RouteToll()
void SetCountry(const Aws::String &value)
Definition RouteToll.h:51
RouteToll & WithPaymentSites(const Aws::Vector< RouteTollPaymentSite > &value)
Definition RouteToll.h:67
RouteToll & WithSystems(const Aws::Vector< int > &value)
Definition RouteToll.h:95
RouteToll & WithCountry(const char *value)
Definition RouteToll.h:56
void SetPaymentSites(Aws::Vector< RouteTollPaymentSite > &&value)
Definition RouteToll.h:66
RouteToll & WithRates(Aws::Vector< RouteTollRate > &&value)
Definition RouteToll.h:82
RouteToll & WithSystems(Aws::Vector< int > &&value)
Definition RouteToll.h:96
RouteToll & AddRates(RouteTollRate &&value)
Definition RouteToll.h:84
RouteToll & WithCountry(const Aws::String &value)
Definition RouteToll.h:54
RouteToll & WithCountry(Aws::String &&value)
Definition RouteToll.h:55
void SetSystems(const Aws::Vector< int > &value)
Definition RouteToll.h:93
const Aws::Vector< int > & GetSystems() const
Definition RouteToll.h:91
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSystems(Aws::Vector< int > &&value)
Definition RouteToll.h:94
void SetCountry(const char *value)
Definition RouteToll.h:53
RouteToll & WithRates(const Aws::Vector< RouteTollRate > &value)
Definition RouteToll.h:81
RouteToll & AddPaymentSites(const RouteTollPaymentSite &value)
Definition RouteToll.h:69
RouteToll & AddSystems(int value)
Definition RouteToll.h:97
const Aws::Vector< RouteTollRate > & GetRates() const
Definition RouteToll.h:77
RouteToll & AddRates(const RouteTollRate &value)
Definition RouteToll.h:83
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue