AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
OptimizeWaypointsResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
11#include <aws/geo-routes/model/WaypointOptimizationConnection.h>
12#include <aws/geo-routes/model/WaypointOptimizationImpedingWaypoint.h>
13#include <aws/geo-routes/model/WaypointOptimizationOptimizedWaypoint.h>
14#include <aws/geo-routes/model/WaypointOptimizationTimeBreakdown.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace GeoRoutes {
28namespace Model {
30 public:
31 AWS_GEOROUTES_API OptimizeWaypointsResult() = default;
34
36
40 inline const Aws::Vector<WaypointOptimizationConnection>& GetConnections() const { return m_connections; }
41 template <typename ConnectionsT = Aws::Vector<WaypointOptimizationConnection>>
42 void SetConnections(ConnectionsT&& value) {
43 m_connectionsHasBeenSet = true;
44 m_connections = std::forward<ConnectionsT>(value);
45 }
46 template <typename ConnectionsT = Aws::Vector<WaypointOptimizationConnection>>
48 SetConnections(std::forward<ConnectionsT>(value));
49 return *this;
50 }
51 template <typename ConnectionsT = WaypointOptimizationConnection>
52 OptimizeWaypointsResult& AddConnections(ConnectionsT&& value) {
53 m_connectionsHasBeenSet = true;
54 m_connections.emplace_back(std::forward<ConnectionsT>(value));
55 return *this;
56 }
58
60
63 inline long long GetDistance() const { return m_distance; }
64 inline void SetDistance(long long value) {
65 m_distanceHasBeenSet = true;
66 m_distance = value;
67 }
68 inline OptimizeWaypointsResult& WithDistance(long long value) {
69 SetDistance(value);
70 return *this;
71 }
73
75
79 inline long long GetDuration() const { return m_duration; }
80 inline void SetDuration(long long value) {
81 m_durationHasBeenSet = true;
82 m_duration = value;
83 }
84 inline OptimizeWaypointsResult& WithDuration(long long value) {
85 SetDuration(value);
86 return *this;
87 }
89
91
95 inline const Aws::Vector<WaypointOptimizationImpedingWaypoint>& GetImpedingWaypoints() const { return m_impedingWaypoints; }
96 template <typename ImpedingWaypointsT = Aws::Vector<WaypointOptimizationImpedingWaypoint>>
97 void SetImpedingWaypoints(ImpedingWaypointsT&& value) {
98 m_impedingWaypointsHasBeenSet = true;
99 m_impedingWaypoints = std::forward<ImpedingWaypointsT>(value);
100 }
101 template <typename ImpedingWaypointsT = Aws::Vector<WaypointOptimizationImpedingWaypoint>>
102 OptimizeWaypointsResult& WithImpedingWaypoints(ImpedingWaypointsT&& value) {
103 SetImpedingWaypoints(std::forward<ImpedingWaypointsT>(value));
104 return *this;
105 }
106 template <typename ImpedingWaypointsT = WaypointOptimizationImpedingWaypoint>
107 OptimizeWaypointsResult& AddImpedingWaypoints(ImpedingWaypointsT&& value) {
108 m_impedingWaypointsHasBeenSet = true;
109 m_impedingWaypoints.emplace_back(std::forward<ImpedingWaypointsT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::Vector<WaypointOptimizationOptimizedWaypoint>& GetOptimizedWaypoints() const { return m_optimizedWaypoints; }
119 template <typename OptimizedWaypointsT = Aws::Vector<WaypointOptimizationOptimizedWaypoint>>
120 void SetOptimizedWaypoints(OptimizedWaypointsT&& value) {
121 m_optimizedWaypointsHasBeenSet = true;
122 m_optimizedWaypoints = std::forward<OptimizedWaypointsT>(value);
123 }
124 template <typename OptimizedWaypointsT = Aws::Vector<WaypointOptimizationOptimizedWaypoint>>
125 OptimizeWaypointsResult& WithOptimizedWaypoints(OptimizedWaypointsT&& value) {
126 SetOptimizedWaypoints(std::forward<OptimizedWaypointsT>(value));
127 return *this;
128 }
129 template <typename OptimizedWaypointsT = WaypointOptimizationOptimizedWaypoint>
130 OptimizeWaypointsResult& AddOptimizedWaypoints(OptimizedWaypointsT&& value) {
131 m_optimizedWaypointsHasBeenSet = true;
132 m_optimizedWaypoints.emplace_back(std::forward<OptimizedWaypointsT>(value));
133 return *this;
134 }
136
138
141 inline const Aws::String& GetPricingBucket() const { return m_pricingBucket; }
142 template <typename PricingBucketT = Aws::String>
143 void SetPricingBucket(PricingBucketT&& value) {
144 m_pricingBucketHasBeenSet = true;
145 m_pricingBucket = std::forward<PricingBucketT>(value);
146 }
147 template <typename PricingBucketT = Aws::String>
149 SetPricingBucket(std::forward<PricingBucketT>(value));
150 return *this;
151 }
153
155
158 inline const WaypointOptimizationTimeBreakdown& GetTimeBreakdown() const { return m_timeBreakdown; }
159 template <typename TimeBreakdownT = WaypointOptimizationTimeBreakdown>
160 void SetTimeBreakdown(TimeBreakdownT&& value) {
161 m_timeBreakdownHasBeenSet = true;
162 m_timeBreakdown = std::forward<TimeBreakdownT>(value);
163 }
164 template <typename TimeBreakdownT = WaypointOptimizationTimeBreakdown>
166 SetTimeBreakdown(std::forward<TimeBreakdownT>(value));
167 return *this;
168 }
170
172
173 inline const Aws::String& GetRequestId() const { return m_requestId; }
174 template <typename RequestIdT = Aws::String>
175 void SetRequestId(RequestIdT&& value) {
176 m_requestIdHasBeenSet = true;
177 m_requestId = std::forward<RequestIdT>(value);
178 }
179 template <typename RequestIdT = Aws::String>
181 SetRequestId(std::forward<RequestIdT>(value));
182 return *this;
183 }
185 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
186
187 private:
189
190 long long m_distance{0};
191
192 long long m_duration{0};
193
195
197
198 Aws::String m_pricingBucket;
199
200 WaypointOptimizationTimeBreakdown m_timeBreakdown;
201
202 Aws::String m_requestId;
203 Aws::Http::HttpResponseCode m_HttpResponseCode;
204 bool m_connectionsHasBeenSet = false;
205 bool m_distanceHasBeenSet = false;
206 bool m_durationHasBeenSet = false;
207 bool m_impedingWaypointsHasBeenSet = false;
208 bool m_optimizedWaypointsHasBeenSet = false;
209 bool m_pricingBucketHasBeenSet = false;
210 bool m_timeBreakdownHasBeenSet = false;
211 bool m_requestIdHasBeenSet = false;
212};
213
214} // namespace Model
215} // namespace GeoRoutes
216} // namespace Aws
const WaypointOptimizationTimeBreakdown & GetTimeBreakdown() const
OptimizeWaypointsResult & WithImpedingWaypoints(ImpedingWaypointsT &&value)
AWS_GEOROUTES_API OptimizeWaypointsResult()=default
const Aws::Vector< WaypointOptimizationConnection > & GetConnections() const
AWS_GEOROUTES_API OptimizeWaypointsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
OptimizeWaypointsResult & AddImpedingWaypoints(ImpedingWaypointsT &&value)
OptimizeWaypointsResult & WithConnections(ConnectionsT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
OptimizeWaypointsResult & WithDuration(long long value)
void SetImpedingWaypoints(ImpedingWaypointsT &&value)
const Aws::Vector< WaypointOptimizationOptimizedWaypoint > & GetOptimizedWaypoints() const
void SetOptimizedWaypoints(OptimizedWaypointsT &&value)
AWS_GEOROUTES_API OptimizeWaypointsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< WaypointOptimizationImpedingWaypoint > & GetImpedingWaypoints() const
OptimizeWaypointsResult & WithPricingBucket(PricingBucketT &&value)
OptimizeWaypointsResult & AddOptimizedWaypoints(OptimizedWaypointsT &&value)
OptimizeWaypointsResult & WithRequestId(RequestIdT &&value)
OptimizeWaypointsResult & WithOptimizedWaypoints(OptimizedWaypointsT &&value)
OptimizeWaypointsResult & AddConnections(ConnectionsT &&value)
OptimizeWaypointsResult & WithTimeBreakdown(TimeBreakdownT &&value)
OptimizeWaypointsResult & WithDistance(long long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue