AWS SDK for C++

AWS SDK for C++ Version 1.11.771

Loading...
Searching...
No Matches
RouteTollPriceSummary.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 RouteTollPriceSummary() = default;
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 RouteTollPriceSummary& 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 RouteTollPriceSummary& WithEstimate(bool value) {
65 SetEstimate(value);
66 return *this;
67 }
69
71
75 inline bool GetRange() const { return m_range; }
76 inline bool RangeHasBeenSet() const { return m_rangeHasBeenSet; }
77 inline void SetRange(bool value) {
78 m_rangeHasBeenSet = true;
79 m_range = value;
80 }
81 inline RouteTollPriceSummary& WithRange(bool value) {
82 SetRange(value);
83 return *this;
84 }
86
88
91 inline const RouteTollPriceValueRange& GetRangeValue() const { return m_rangeValue; }
92 inline bool RangeValueHasBeenSet() const { return m_rangeValueHasBeenSet; }
93 template <typename RangeValueT = RouteTollPriceValueRange>
94 void SetRangeValue(RangeValueT&& value) {
95 m_rangeValueHasBeenSet = true;
96 m_rangeValue = std::forward<RangeValueT>(value);
97 }
98 template <typename RangeValueT = RouteTollPriceValueRange>
99 RouteTollPriceSummary& WithRangeValue(RangeValueT&& value) {
100 SetRangeValue(std::forward<RangeValueT>(value));
101 return *this;
102 }
104
106
109 inline double GetValue() const { return m_value; }
110 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
111 inline void SetValue(double value) {
112 m_valueHasBeenSet = true;
113 m_value = value;
114 }
115 inline RouteTollPriceSummary& WithValue(double value) {
116 SetValue(value);
117 return *this;
118 }
120 private:
121 Aws::String m_currency;
122
123 bool m_estimate{false};
124
125 bool m_range{false};
126
127 RouteTollPriceValueRange m_rangeValue;
128
129 double m_value{0.0};
130 bool m_currencyHasBeenSet = false;
131 bool m_estimateHasBeenSet = false;
132 bool m_rangeHasBeenSet = false;
133 bool m_rangeValueHasBeenSet = false;
134 bool m_valueHasBeenSet = false;
135};
136
137} // namespace Model
138} // namespace GeoRoutes
139} // 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