AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
RouteTollPrice.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/RouteTollPriceValueRange.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GeoRoutes
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_GEOROUTES_API RouteTollPrice() = default;
36 AWS_GEOROUTES_API RouteTollPrice(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::String& GetCurrency() const { return m_currency; }
47 inline bool CurrencyHasBeenSet() const { return m_currencyHasBeenSet; }
48 template<typename CurrencyT = Aws::String>
49 void SetCurrency(CurrencyT&& value) { m_currencyHasBeenSet = true; m_currency = std::forward<CurrencyT>(value); }
50 template<typename CurrencyT = Aws::String>
51 RouteTollPrice& WithCurrency(CurrencyT&& value) { SetCurrency(std::forward<CurrencyT>(value)); return *this;}
53
55
58 inline bool GetEstimate() const { return m_estimate; }
59 inline bool EstimateHasBeenSet() const { return m_estimateHasBeenSet; }
60 inline void SetEstimate(bool value) { m_estimateHasBeenSet = true; m_estimate = value; }
61 inline RouteTollPrice& WithEstimate(bool value) { SetEstimate(value); return *this;}
63
65
69 inline long long GetPerDuration() const { return m_perDuration; }
70 inline bool PerDurationHasBeenSet() const { return m_perDurationHasBeenSet; }
71 inline void SetPerDuration(long long value) { m_perDurationHasBeenSet = true; m_perDuration = value; }
72 inline RouteTollPrice& WithPerDuration(long long value) { SetPerDuration(value); return *this;}
74
76
80 inline bool GetRange() const { return m_range; }
81 inline bool RangeHasBeenSet() const { return m_rangeHasBeenSet; }
82 inline void SetRange(bool value) { m_rangeHasBeenSet = true; m_range = value; }
83 inline RouteTollPrice& WithRange(bool value) { SetRange(value); return *this;}
85
87
90 inline const RouteTollPriceValueRange& GetRangeValue() const { return m_rangeValue; }
91 inline bool RangeValueHasBeenSet() const { return m_rangeValueHasBeenSet; }
92 template<typename RangeValueT = RouteTollPriceValueRange>
93 void SetRangeValue(RangeValueT&& value) { m_rangeValueHasBeenSet = true; m_rangeValue = std::forward<RangeValueT>(value); }
94 template<typename RangeValueT = RouteTollPriceValueRange>
95 RouteTollPrice& WithRangeValue(RangeValueT&& value) { SetRangeValue(std::forward<RangeValueT>(value)); return *this;}
97
99
102 inline double GetValue() const { return m_value; }
103 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
104 inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; }
105 inline RouteTollPrice& WithValue(double value) { SetValue(value); return *this;}
107 private:
108
109 Aws::String m_currency;
110 bool m_currencyHasBeenSet = false;
111
112 bool m_estimate{false};
113 bool m_estimateHasBeenSet = false;
114
115 long long m_perDuration{0};
116 bool m_perDurationHasBeenSet = false;
117
118 bool m_range{false};
119 bool m_rangeHasBeenSet = false;
120
121 RouteTollPriceValueRange m_rangeValue;
122 bool m_rangeValueHasBeenSet = false;
123
124 double m_value{0.0};
125 bool m_valueHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace GeoRoutes
130} // namespace Aws
RouteTollPrice & WithRange(bool value)
RouteTollPrice & WithValue(double value)
void SetRangeValue(RangeValueT &&value)
RouteTollPrice & WithPerDuration(long long value)
void SetCurrency(CurrencyT &&value)
const RouteTollPriceValueRange & GetRangeValue() const
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GEOROUTES_API RouteTollPrice & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API RouteTollPrice(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API RouteTollPrice()=default
RouteTollPrice & WithEstimate(bool value)
RouteTollPrice & WithRangeValue(RangeValueT &&value)
const Aws::String & GetCurrency() const
RouteTollPrice & WithCurrency(CurrencyT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue