AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCurrency(const Aws::String& value) { m_currencyHasBeenSet = true; m_currency = value; }
49 inline void SetCurrency(Aws::String&& value) { m_currencyHasBeenSet = true; m_currency = std::move(value); }
50 inline void SetCurrency(const char* value) { m_currencyHasBeenSet = true; m_currency.assign(value); }
51 inline RouteTollPriceSummary& WithCurrency(const Aws::String& value) { SetCurrency(value); return *this;}
52 inline RouteTollPriceSummary& WithCurrency(Aws::String&& value) { SetCurrency(std::move(value)); return *this;}
53 inline RouteTollPriceSummary& WithCurrency(const char* value) { SetCurrency(value); return *this;}
55
57
60 inline bool GetEstimate() const{ return m_estimate; }
61 inline bool EstimateHasBeenSet() const { return m_estimateHasBeenSet; }
62 inline void SetEstimate(bool value) { m_estimateHasBeenSet = true; m_estimate = value; }
63 inline RouteTollPriceSummary& WithEstimate(bool value) { SetEstimate(value); return *this;}
65
67
71 inline bool GetRange() const{ return m_range; }
72 inline bool RangeHasBeenSet() const { return m_rangeHasBeenSet; }
73 inline void SetRange(bool value) { m_rangeHasBeenSet = true; m_range = value; }
74 inline RouteTollPriceSummary& WithRange(bool value) { SetRange(value); return *this;}
76
78
81 inline const RouteTollPriceValueRange& GetRangeValue() const{ return m_rangeValue; }
82 inline bool RangeValueHasBeenSet() const { return m_rangeValueHasBeenSet; }
83 inline void SetRangeValue(const RouteTollPriceValueRange& value) { m_rangeValueHasBeenSet = true; m_rangeValue = value; }
84 inline void SetRangeValue(RouteTollPriceValueRange&& value) { m_rangeValueHasBeenSet = true; m_rangeValue = std::move(value); }
85 inline RouteTollPriceSummary& WithRangeValue(const RouteTollPriceValueRange& value) { SetRangeValue(value); return *this;}
86 inline RouteTollPriceSummary& WithRangeValue(RouteTollPriceValueRange&& value) { SetRangeValue(std::move(value)); return *this;}
88
90
93 inline double GetValue() const{ return m_value; }
94 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
95 inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; }
96 inline RouteTollPriceSummary& WithValue(double value) { SetValue(value); return *this;}
98 private:
99
100 Aws::String m_currency;
101 bool m_currencyHasBeenSet = false;
102
103 bool m_estimate;
104 bool m_estimateHasBeenSet = false;
105
106 bool m_range;
107 bool m_rangeHasBeenSet = false;
108
109 RouteTollPriceValueRange m_rangeValue;
110 bool m_rangeValueHasBeenSet = false;
111
112 double m_value;
113 bool m_valueHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace GeoRoutes
118} // namespace Aws
void SetRangeValue(const RouteTollPriceValueRange &value)
RouteTollPriceSummary & WithValue(double value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
const RouteTollPriceValueRange & GetRangeValue() const
RouteTollPriceSummary & WithRangeValue(RouteTollPriceValueRange &&value)
RouteTollPriceSummary & WithCurrency(Aws::String &&value)
RouteTollPriceSummary & WithCurrency(const Aws::String &value)
RouteTollPriceSummary & WithCurrency(const char *value)
RouteTollPriceSummary & WithEstimate(bool value)
RouteTollPriceSummary & WithRange(bool value)
void SetRangeValue(RouteTollPriceValueRange &&value)
AWS_GEOROUTES_API RouteTollPriceSummary(Aws::Utils::Json::JsonView jsonValue)
RouteTollPriceSummary & WithRangeValue(const RouteTollPriceValueRange &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