AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 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 RouteTollPrice& WithCurrency(const Aws::String& value) { SetCurrency(value); return *this;}
52 inline RouteTollPrice& WithCurrency(Aws::String&& value) { SetCurrency(std::move(value)); return *this;}
53 inline RouteTollPrice& 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 RouteTollPrice& WithEstimate(bool value) { SetEstimate(value); return *this;}
65
67
71 inline long long GetPerDuration() const{ return m_perDuration; }
72 inline bool PerDurationHasBeenSet() const { return m_perDurationHasBeenSet; }
73 inline void SetPerDuration(long long value) { m_perDurationHasBeenSet = true; m_perDuration = value; }
74 inline RouteTollPrice& WithPerDuration(long long value) { SetPerDuration(value); return *this;}
76
78
82 inline bool GetRange() const{ return m_range; }
83 inline bool RangeHasBeenSet() const { return m_rangeHasBeenSet; }
84 inline void SetRange(bool value) { m_rangeHasBeenSet = true; m_range = value; }
85 inline RouteTollPrice& WithRange(bool value) { SetRange(value); return *this;}
87
89
92 inline const RouteTollPriceValueRange& GetRangeValue() const{ return m_rangeValue; }
93 inline bool RangeValueHasBeenSet() const { return m_rangeValueHasBeenSet; }
94 inline void SetRangeValue(const RouteTollPriceValueRange& value) { m_rangeValueHasBeenSet = true; m_rangeValue = value; }
95 inline void SetRangeValue(RouteTollPriceValueRange&& value) { m_rangeValueHasBeenSet = true; m_rangeValue = std::move(value); }
96 inline RouteTollPrice& WithRangeValue(const RouteTollPriceValueRange& value) { SetRangeValue(value); return *this;}
97 inline RouteTollPrice& WithRangeValue(RouteTollPriceValueRange&& value) { SetRangeValue(std::move(value)); return *this;}
99
101
104 inline double GetValue() const{ return m_value; }
105 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
106 inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; }
107 inline RouteTollPrice& WithValue(double value) { SetValue(value); return *this;}
109 private:
110
111 Aws::String m_currency;
112 bool m_currencyHasBeenSet = false;
113
114 bool m_estimate;
115 bool m_estimateHasBeenSet = false;
116
117 long long m_perDuration;
118 bool m_perDurationHasBeenSet = false;
119
120 bool m_range;
121 bool m_rangeHasBeenSet = false;
122
123 RouteTollPriceValueRange m_rangeValue;
124 bool m_rangeValueHasBeenSet = false;
125
126 double m_value;
127 bool m_valueHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace GeoRoutes
132} // namespace Aws
RouteTollPrice & WithCurrency(const Aws::String &value)
RouteTollPrice & WithRangeValue(RouteTollPriceValueRange &&value)
void SetCurrency(const char *value)
RouteTollPrice & WithRange(bool value)
void SetCurrency(Aws::String &&value)
RouteTollPrice & WithValue(double value)
RouteTollPrice & WithCurrency(const char *value)
RouteTollPrice & WithPerDuration(long long value)
RouteTollPrice & WithRangeValue(const RouteTollPriceValueRange &value)
const RouteTollPriceValueRange & GetRangeValue() const
void SetRangeValue(RouteTollPriceValueRange &&value)
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)
RouteTollPrice & WithCurrency(Aws::String &&value)
RouteTollPrice & WithEstimate(bool value)
void SetCurrency(const Aws::String &value)
const Aws::String & GetCurrency() const
void SetRangeValue(const RouteTollPriceValueRange &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue