AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
OptimizeWaypointsResult.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/geo-routes/model/WaypointOptimizationTimeBreakdown.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 <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace GeoRoutes
29{
30namespace Model
31{
33 {
34 public:
35 AWS_GEOROUTES_API OptimizeWaypointsResult() = default;
38
39
41
45 inline const Aws::Vector<WaypointOptimizationConnection>& GetConnections() const { return m_connections; }
46 template<typename ConnectionsT = Aws::Vector<WaypointOptimizationConnection>>
47 void SetConnections(ConnectionsT&& value) { m_connectionsHasBeenSet = true; m_connections = std::forward<ConnectionsT>(value); }
48 template<typename ConnectionsT = Aws::Vector<WaypointOptimizationConnection>>
49 OptimizeWaypointsResult& WithConnections(ConnectionsT&& value) { SetConnections(std::forward<ConnectionsT>(value)); return *this;}
50 template<typename ConnectionsT = WaypointOptimizationConnection>
51 OptimizeWaypointsResult& AddConnections(ConnectionsT&& value) { m_connectionsHasBeenSet = true; m_connections.emplace_back(std::forward<ConnectionsT>(value)); return *this; }
53
55
58 inline long long GetDistance() const { return m_distance; }
59 inline void SetDistance(long long value) { m_distanceHasBeenSet = true; m_distance = value; }
60 inline OptimizeWaypointsResult& WithDistance(long long value) { SetDistance(value); return *this;}
62
64
68 inline long long GetDuration() const { return m_duration; }
69 inline void SetDuration(long long value) { m_durationHasBeenSet = true; m_duration = value; }
70 inline OptimizeWaypointsResult& WithDuration(long long value) { SetDuration(value); return *this;}
72
74
78 inline const Aws::Vector<WaypointOptimizationImpedingWaypoint>& GetImpedingWaypoints() const { return m_impedingWaypoints; }
79 template<typename ImpedingWaypointsT = Aws::Vector<WaypointOptimizationImpedingWaypoint>>
80 void SetImpedingWaypoints(ImpedingWaypointsT&& value) { m_impedingWaypointsHasBeenSet = true; m_impedingWaypoints = std::forward<ImpedingWaypointsT>(value); }
81 template<typename ImpedingWaypointsT = Aws::Vector<WaypointOptimizationImpedingWaypoint>>
82 OptimizeWaypointsResult& WithImpedingWaypoints(ImpedingWaypointsT&& value) { SetImpedingWaypoints(std::forward<ImpedingWaypointsT>(value)); return *this;}
83 template<typename ImpedingWaypointsT = WaypointOptimizationImpedingWaypoint>
84 OptimizeWaypointsResult& AddImpedingWaypoints(ImpedingWaypointsT&& value) { m_impedingWaypointsHasBeenSet = true; m_impedingWaypoints.emplace_back(std::forward<ImpedingWaypointsT>(value)); return *this; }
86
88
91 inline const Aws::Vector<WaypointOptimizationOptimizedWaypoint>& GetOptimizedWaypoints() const { return m_optimizedWaypoints; }
92 template<typename OptimizedWaypointsT = Aws::Vector<WaypointOptimizationOptimizedWaypoint>>
93 void SetOptimizedWaypoints(OptimizedWaypointsT&& value) { m_optimizedWaypointsHasBeenSet = true; m_optimizedWaypoints = std::forward<OptimizedWaypointsT>(value); }
94 template<typename OptimizedWaypointsT = Aws::Vector<WaypointOptimizationOptimizedWaypoint>>
95 OptimizeWaypointsResult& WithOptimizedWaypoints(OptimizedWaypointsT&& value) { SetOptimizedWaypoints(std::forward<OptimizedWaypointsT>(value)); return *this;}
96 template<typename OptimizedWaypointsT = WaypointOptimizationOptimizedWaypoint>
97 OptimizeWaypointsResult& AddOptimizedWaypoints(OptimizedWaypointsT&& value) { m_optimizedWaypointsHasBeenSet = true; m_optimizedWaypoints.emplace_back(std::forward<OptimizedWaypointsT>(value)); return *this; }
99
101
104 inline const Aws::String& GetPricingBucket() const { return m_pricingBucket; }
105 template<typename PricingBucketT = Aws::String>
106 void SetPricingBucket(PricingBucketT&& value) { m_pricingBucketHasBeenSet = true; m_pricingBucket = std::forward<PricingBucketT>(value); }
107 template<typename PricingBucketT = Aws::String>
108 OptimizeWaypointsResult& WithPricingBucket(PricingBucketT&& value) { SetPricingBucket(std::forward<PricingBucketT>(value)); return *this;}
110
112
115 inline const WaypointOptimizationTimeBreakdown& GetTimeBreakdown() const { return m_timeBreakdown; }
116 template<typename TimeBreakdownT = WaypointOptimizationTimeBreakdown>
117 void SetTimeBreakdown(TimeBreakdownT&& value) { m_timeBreakdownHasBeenSet = true; m_timeBreakdown = std::forward<TimeBreakdownT>(value); }
118 template<typename TimeBreakdownT = WaypointOptimizationTimeBreakdown>
119 OptimizeWaypointsResult& WithTimeBreakdown(TimeBreakdownT&& value) { SetTimeBreakdown(std::forward<TimeBreakdownT>(value)); return *this;}
121
123
124 inline const Aws::String& GetRequestId() const { return m_requestId; }
125 template<typename RequestIdT = Aws::String>
126 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
127 template<typename RequestIdT = Aws::String>
128 OptimizeWaypointsResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
130 private:
131
133 bool m_connectionsHasBeenSet = false;
134
135 long long m_distance{0};
136 bool m_distanceHasBeenSet = false;
137
138 long long m_duration{0};
139 bool m_durationHasBeenSet = false;
140
142 bool m_impedingWaypointsHasBeenSet = false;
143
145 bool m_optimizedWaypointsHasBeenSet = false;
146
147 Aws::String m_pricingBucket;
148 bool m_pricingBucketHasBeenSet = false;
149
150 WaypointOptimizationTimeBreakdown m_timeBreakdown;
151 bool m_timeBreakdownHasBeenSet = false;
152
153 Aws::String m_requestId;
154 bool m_requestIdHasBeenSet = false;
155 };
156
157} // namespace Model
158} // namespace GeoRoutes
159} // 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)
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