AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
WaypointOptimizationConnection.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/geo-routes/GeoRoutes_EXPORTS.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
29 public:
30 AWS_GEOROUTES_API WaypointOptimizationConnection() = default;
33 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline long long GetDistance() const { return m_distance; }
40 inline bool DistanceHasBeenSet() const { return m_distanceHasBeenSet; }
41 inline void SetDistance(long long value) {
42 m_distanceHasBeenSet = true;
43 m_distance = value;
44 }
46 SetDistance(value);
47 return *this;
48 }
50
52
55 inline const Aws::String& GetFrom() const { return m_from; }
56 inline bool FromHasBeenSet() const { return m_fromHasBeenSet; }
57 template <typename FromT = Aws::String>
58 void SetFrom(FromT&& value) {
59 m_fromHasBeenSet = true;
60 m_from = std::forward<FromT>(value);
61 }
62 template <typename FromT = Aws::String>
64 SetFrom(std::forward<FromT>(value));
65 return *this;
66 }
68
70
73 inline long long GetRestDuration() const { return m_restDuration; }
74 inline bool RestDurationHasBeenSet() const { return m_restDurationHasBeenSet; }
75 inline void SetRestDuration(long long value) {
76 m_restDurationHasBeenSet = true;
77 m_restDuration = value;
78 }
80 SetRestDuration(value);
81 return *this;
82 }
84
86
89 inline const Aws::String& GetTo() const { return m_to; }
90 inline bool ToHasBeenSet() const { return m_toHasBeenSet; }
91 template <typename ToT = Aws::String>
92 void SetTo(ToT&& value) {
93 m_toHasBeenSet = true;
94 m_to = std::forward<ToT>(value);
95 }
96 template <typename ToT = Aws::String>
98 SetTo(std::forward<ToT>(value));
99 return *this;
100 }
102
104
107 inline long long GetTravelDuration() const { return m_travelDuration; }
108 inline bool TravelDurationHasBeenSet() const { return m_travelDurationHasBeenSet; }
109 inline void SetTravelDuration(long long value) {
110 m_travelDurationHasBeenSet = true;
111 m_travelDuration = value;
112 }
114 SetTravelDuration(value);
115 return *this;
116 }
118
120
123 inline long long GetWaitDuration() const { return m_waitDuration; }
124 inline bool WaitDurationHasBeenSet() const { return m_waitDurationHasBeenSet; }
125 inline void SetWaitDuration(long long value) {
126 m_waitDurationHasBeenSet = true;
127 m_waitDuration = value;
128 }
130 SetWaitDuration(value);
131 return *this;
132 }
134 private:
135 long long m_distance{0};
136
137 Aws::String m_from;
138
139 long long m_restDuration{0};
140
141 Aws::String m_to;
142
143 long long m_travelDuration{0};
144
145 long long m_waitDuration{0};
146 bool m_distanceHasBeenSet = false;
147 bool m_fromHasBeenSet = false;
148 bool m_restDurationHasBeenSet = false;
149 bool m_toHasBeenSet = false;
150 bool m_travelDurationHasBeenSet = false;
151 bool m_waitDurationHasBeenSet = false;
152};
153
154} // namespace Model
155} // namespace GeoRoutes
156} // namespace Aws
WaypointOptimizationConnection & WithTravelDuration(long long value)
WaypointOptimizationConnection & WithWaitDuration(long long value)
WaypointOptimizationConnection & WithFrom(FromT &&value)
AWS_GEOROUTES_API WaypointOptimizationConnection()=default
WaypointOptimizationConnection & WithRestDuration(long long value)
WaypointOptimizationConnection & WithDistance(long long value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GEOROUTES_API WaypointOptimizationConnection & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API WaypointOptimizationConnection(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue