AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
RouteSummary.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/geo-routes/model/RouteTollSummary.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GeoRoutes {
20namespace Model {
21
30 public:
31 AWS_GEOROUTES_API RouteSummary() = default;
32 AWS_GEOROUTES_API RouteSummary(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GEOROUTES_API RouteSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline long long GetDistance() const { return m_distance; }
41 inline bool DistanceHasBeenSet() const { return m_distanceHasBeenSet; }
42 inline void SetDistance(long long value) {
43 m_distanceHasBeenSet = true;
44 m_distance = value;
45 }
46 inline RouteSummary& WithDistance(long long value) {
47 SetDistance(value);
48 return *this;
49 }
51
53
56 inline long long GetDuration() const { return m_duration; }
57 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
58 inline void SetDuration(long long value) {
59 m_durationHasBeenSet = true;
60 m_duration = value;
61 }
62 inline RouteSummary& WithDuration(long long value) {
63 SetDuration(value);
64 return *this;
65 }
67
69
72 inline const RouteTollSummary& GetTolls() const { return m_tolls; }
73 inline bool TollsHasBeenSet() const { return m_tollsHasBeenSet; }
74 template <typename TollsT = RouteTollSummary>
75 void SetTolls(TollsT&& value) {
76 m_tollsHasBeenSet = true;
77 m_tolls = std::forward<TollsT>(value);
78 }
79 template <typename TollsT = RouteTollSummary>
80 RouteSummary& WithTolls(TollsT&& value) {
81 SetTolls(std::forward<TollsT>(value));
82 return *this;
83 }
85 private:
86 long long m_distance{0};
87
88 long long m_duration{0};
89
90 RouteTollSummary m_tolls;
91 bool m_distanceHasBeenSet = false;
92 bool m_durationHasBeenSet = false;
93 bool m_tollsHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace GeoRoutes
98} // namespace Aws
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
const RouteTollSummary & GetTolls() const
AWS_GEOROUTES_API RouteSummary(Aws::Utils::Json::JsonView jsonValue)
void SetDistance(long long value)
RouteSummary & WithTolls(TollsT &&value)
void SetDuration(long long value)
RouteSummary & WithDuration(long long value)
RouteSummary & WithDistance(long long value)
AWS_GEOROUTES_API RouteSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API RouteSummary()=default
Aws::Utils::Json::JsonValue JsonValue