AWS SDK for C++

AWS SDK for C++ Version 1.11.832

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
26 public:
27 AWS_GEOROUTES_API RouteVehicleOverviewSummary() = default;
30 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
38 inline long long GetBestCaseDuration() const { return m_bestCaseDuration; }
39 inline bool BestCaseDurationHasBeenSet() const { return m_bestCaseDurationHasBeenSet; }
40 inline void SetBestCaseDuration(long long value) {
41 m_bestCaseDurationHasBeenSet = true;
42 m_bestCaseDuration = value;
43 }
46 return *this;
47 }
49
51
54 inline long long GetDistance() const { return m_distance; }
55 inline bool DistanceHasBeenSet() const { return m_distanceHasBeenSet; }
56 inline void SetDistance(long long value) {
57 m_distanceHasBeenSet = true;
58 m_distance = value;
59 }
60 inline RouteVehicleOverviewSummary& WithDistance(long long value) {
61 SetDistance(value);
62 return *this;
63 }
65
67
70 inline long long GetDuration() const { return m_duration; }
71 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
72 inline void SetDuration(long long value) {
73 m_durationHasBeenSet = true;
74 m_duration = value;
75 }
76 inline RouteVehicleOverviewSummary& WithDuration(long long value) {
77 SetDuration(value);
78 return *this;
79 }
81
83
87 inline long long GetTypicalDuration() const { return m_typicalDuration; }
88 inline bool TypicalDurationHasBeenSet() const { return m_typicalDurationHasBeenSet; }
89 inline void SetTypicalDuration(long long value) {
90 m_typicalDurationHasBeenSet = true;
91 m_typicalDuration = value;
92 }
94 SetTypicalDuration(value);
95 return *this;
96 }
98 private:
99 long long m_bestCaseDuration{0};
100
101 long long m_distance{0};
102
103 long long m_duration{0};
104
105 long long m_typicalDuration{0};
106 bool m_bestCaseDurationHasBeenSet = false;
107 bool m_distanceHasBeenSet = false;
108 bool m_durationHasBeenSet = false;
109 bool m_typicalDurationHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace GeoRoutes
114} // 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