AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
WaypointOptimizationTimeBreakdown.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 WaypointOptimizationTimeBreakdown() = default;
29 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
30
32
35 inline long long GetRestDuration() const { return m_restDuration; }
36 inline bool RestDurationHasBeenSet() const { return m_restDurationHasBeenSet; }
37 inline void SetRestDuration(long long value) {
38 m_restDurationHasBeenSet = true;
39 m_restDuration = value;
40 }
42 SetRestDuration(value);
43 return *this;
44 }
46
48
53 inline long long GetServiceDuration() const { return m_serviceDuration; }
54 inline bool ServiceDurationHasBeenSet() const { return m_serviceDurationHasBeenSet; }
55 inline void SetServiceDuration(long long value) {
56 m_serviceDurationHasBeenSet = true;
57 m_serviceDuration = value;
58 }
60 SetServiceDuration(value);
61 return *this;
62 }
64
66
69 inline long long GetTravelDuration() const { return m_travelDuration; }
70 inline bool TravelDurationHasBeenSet() const { return m_travelDurationHasBeenSet; }
71 inline void SetTravelDuration(long long value) {
72 m_travelDurationHasBeenSet = true;
73 m_travelDuration = value;
74 }
76 SetTravelDuration(value);
77 return *this;
78 }
80
82
85 inline long long GetWaitDuration() const { return m_waitDuration; }
86 inline bool WaitDurationHasBeenSet() const { return m_waitDurationHasBeenSet; }
87 inline void SetWaitDuration(long long value) {
88 m_waitDurationHasBeenSet = true;
89 m_waitDuration = value;
90 }
92 SetWaitDuration(value);
93 return *this;
94 }
96 private:
97 long long m_restDuration{0};
98
99 long long m_serviceDuration{0};
100
101 long long m_travelDuration{0};
102
103 long long m_waitDuration{0};
104 bool m_restDurationHasBeenSet = false;
105 bool m_serviceDurationHasBeenSet = false;
106 bool m_travelDurationHasBeenSet = false;
107 bool m_waitDurationHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace GeoRoutes
112} // namespace Aws
WaypointOptimizationTimeBreakdown & WithTravelDuration(long long value)
AWS_GEOROUTES_API WaypointOptimizationTimeBreakdown()=default
WaypointOptimizationTimeBreakdown & WithWaitDuration(long long value)
WaypointOptimizationTimeBreakdown & WithServiceDuration(long long value)
AWS_GEOROUTES_API WaypointOptimizationTimeBreakdown(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API WaypointOptimizationTimeBreakdown & operator=(Aws::Utils::Json::JsonView jsonValue)
WaypointOptimizationTimeBreakdown & WithRestDuration(long long value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue