AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
RouteTollPriceSummary.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 RouteTollPriceSummary() = default;
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 RouteTollPriceSummary& 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 RouteTollPriceSummary& WithEstimate(bool value) { SetEstimate(value); return *this;}
63
65
69 inline bool GetRange() const { return m_range; }
70 inline bool RangeHasBeenSet() const { return m_rangeHasBeenSet; }
71 inline void SetRange(bool value) { m_rangeHasBeenSet = true; m_range = value; }
72 inline RouteTollPriceSummary& WithRange(bool value) { SetRange(value); return *this;}
74
76
79 inline const RouteTollPriceValueRange& GetRangeValue() const { return m_rangeValue; }
80 inline bool RangeValueHasBeenSet() const { return m_rangeValueHasBeenSet; }
81 template<typename RangeValueT = RouteTollPriceValueRange>
82 void SetRangeValue(RangeValueT&& value) { m_rangeValueHasBeenSet = true; m_rangeValue = std::forward<RangeValueT>(value); }
83 template<typename RangeValueT = RouteTollPriceValueRange>
84 RouteTollPriceSummary& WithRangeValue(RangeValueT&& value) { SetRangeValue(std::forward<RangeValueT>(value)); return *this;}
86
88
91 inline double GetValue() const { return m_value; }
92 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
93 inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; }
94 inline RouteTollPriceSummary& WithValue(double value) { SetValue(value); return *this;}
96 private:
97
98 Aws::String m_currency;
99 bool m_currencyHasBeenSet = false;
100
101 bool m_estimate{false};
102 bool m_estimateHasBeenSet = false;
103
104 bool m_range{false};
105 bool m_rangeHasBeenSet = false;
106
107 RouteTollPriceValueRange m_rangeValue;
108 bool m_rangeValueHasBeenSet = false;
109
110 double m_value{0.0};
111 bool m_valueHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace GeoRoutes
116} // namespace Aws
RouteTollPriceSummary & WithValue(double value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
const RouteTollPriceValueRange & GetRangeValue() const
RouteTollPriceSummary & WithEstimate(bool value)
RouteTollPriceSummary & WithRange(bool value)
AWS_GEOROUTES_API RouteTollPriceSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API RouteTollPriceSummary()=default
RouteTollPriceSummary & WithCurrency(CurrencyT &&value)
RouteTollPriceSummary & WithRangeValue(RangeValueT &&value)
AWS_GEOROUTES_API RouteTollPriceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue