AWS SDK for C++

AWS SDK for C++ Version 1.11.772

Loading...
Searching...
No Matches
RouteTollPrice.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
9#include <aws/geo-routes/model/RouteTollPriceValueRange.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GeoRoutes {
21namespace Model {
22
29 public:
30 AWS_GEOROUTES_API RouteTollPrice() = default;
31 AWS_GEOROUTES_API RouteTollPrice(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetCurrency() const { return m_currency; }
41 inline bool CurrencyHasBeenSet() const { return m_currencyHasBeenSet; }
42 template <typename CurrencyT = Aws::String>
43 void SetCurrency(CurrencyT&& value) {
44 m_currencyHasBeenSet = true;
45 m_currency = std::forward<CurrencyT>(value);
46 }
47 template <typename CurrencyT = Aws::String>
48 RouteTollPrice& WithCurrency(CurrencyT&& value) {
49 SetCurrency(std::forward<CurrencyT>(value));
50 return *this;
51 }
53
55
58 inline bool GetEstimate() const { return m_estimate; }
59 inline bool EstimateHasBeenSet() const { return m_estimateHasBeenSet; }
60 inline void SetEstimate(bool value) {
61 m_estimateHasBeenSet = true;
62 m_estimate = value;
63 }
64 inline RouteTollPrice& WithEstimate(bool value) {
65 SetEstimate(value);
66 return *this;
67 }
69
71
75 inline long long GetPerDuration() const { return m_perDuration; }
76 inline bool PerDurationHasBeenSet() const { return m_perDurationHasBeenSet; }
77 inline void SetPerDuration(long long value) {
78 m_perDurationHasBeenSet = true;
79 m_perDuration = value;
80 }
81 inline RouteTollPrice& WithPerDuration(long long value) {
82 SetPerDuration(value);
83 return *this;
84 }
86
88
92 inline bool GetRange() const { return m_range; }
93 inline bool RangeHasBeenSet() const { return m_rangeHasBeenSet; }
94 inline void SetRange(bool value) {
95 m_rangeHasBeenSet = true;
96 m_range = value;
97 }
98 inline RouteTollPrice& WithRange(bool value) {
99 SetRange(value);
100 return *this;
101 }
103
105
108 inline const RouteTollPriceValueRange& GetRangeValue() const { return m_rangeValue; }
109 inline bool RangeValueHasBeenSet() const { return m_rangeValueHasBeenSet; }
110 template <typename RangeValueT = RouteTollPriceValueRange>
111 void SetRangeValue(RangeValueT&& value) {
112 m_rangeValueHasBeenSet = true;
113 m_rangeValue = std::forward<RangeValueT>(value);
114 }
115 template <typename RangeValueT = RouteTollPriceValueRange>
116 RouteTollPrice& WithRangeValue(RangeValueT&& value) {
117 SetRangeValue(std::forward<RangeValueT>(value));
118 return *this;
119 }
121
123
126 inline double GetValue() const { return m_value; }
127 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
128 inline void SetValue(double value) {
129 m_valueHasBeenSet = true;
130 m_value = value;
131 }
132 inline RouteTollPrice& WithValue(double value) {
133 SetValue(value);
134 return *this;
135 }
137 private:
138 Aws::String m_currency;
139
140 bool m_estimate{false};
141
142 long long m_perDuration{0};
143
144 bool m_range{false};
145
146 RouteTollPriceValueRange m_rangeValue;
147
148 double m_value{0.0};
149 bool m_currencyHasBeenSet = false;
150 bool m_estimateHasBeenSet = false;
151 bool m_perDurationHasBeenSet = false;
152 bool m_rangeHasBeenSet = false;
153 bool m_rangeValueHasBeenSet = false;
154 bool m_valueHasBeenSet = false;
155};
156
157} // namespace Model
158} // namespace GeoRoutes
159} // 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