AWS SDK for C++

AWS SDK for C++ Version 1.11.771

Loading...
Searching...
No Matches
RouteVehicleOverviewSummary.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace GeoRoutes {
17namespace Model {
18
25 public:
26 AWS_GEOROUTES_API RouteVehicleOverviewSummary() = default;
29 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
30
32
37 inline long long GetBestCaseDuration() const { return m_bestCaseDuration; }
38 inline bool BestCaseDurationHasBeenSet() const { return m_bestCaseDurationHasBeenSet; }
39 inline void SetBestCaseDuration(long long value) {
40 m_bestCaseDurationHasBeenSet = true;
41 m_bestCaseDuration = value;
42 }
45 return *this;
46 }
48
50
53 inline long long GetDistance() const { return m_distance; }
54 inline bool DistanceHasBeenSet() const { return m_distanceHasBeenSet; }
55 inline void SetDistance(long long value) {
56 m_distanceHasBeenSet = true;
57 m_distance = value;
58 }
59 inline RouteVehicleOverviewSummary& WithDistance(long long value) {
60 SetDistance(value);
61 return *this;
62 }
64
66
69 inline long long GetDuration() const { return m_duration; }
70 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
71 inline void SetDuration(long long value) {
72 m_durationHasBeenSet = true;
73 m_duration = value;
74 }
75 inline RouteVehicleOverviewSummary& WithDuration(long long value) {
76 SetDuration(value);
77 return *this;
78 }
80
82
86 inline long long GetTypicalDuration() const { return m_typicalDuration; }
87 inline bool TypicalDurationHasBeenSet() const { return m_typicalDurationHasBeenSet; }
88 inline void SetTypicalDuration(long long value) {
89 m_typicalDurationHasBeenSet = true;
90 m_typicalDuration = value;
91 }
93 SetTypicalDuration(value);
94 return *this;
95 }
97 private:
98 long long m_bestCaseDuration{0};
99
100 long long m_distance{0};
101
102 long long m_duration{0};
103
104 long long m_typicalDuration{0};
105 bool m_bestCaseDurationHasBeenSet = false;
106 bool m_distanceHasBeenSet = false;
107 bool m_durationHasBeenSet = false;
108 bool m_typicalDurationHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace GeoRoutes
113} // namespace Aws
RouteVehicleOverviewSummary & WithTypicalDuration(long long value)
AWS_GEOROUTES_API RouteVehicleOverviewSummary()=default
AWS_GEOROUTES_API RouteVehicleOverviewSummary(Aws::Utils::Json::JsonView jsonValue)
RouteVehicleOverviewSummary & WithBestCaseDuration(long long value)
RouteVehicleOverviewSummary & WithDuration(long long value)
AWS_GEOROUTES_API RouteVehicleOverviewSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
RouteVehicleOverviewSummary & WithDistance(long long value)
Aws::Utils::Json::JsonValue JsonValue