AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
38
39
41
45 inline const Aws::Vector<WaypointOptimizationConnection>& GetConnections() const{ return m_connections; }
46 inline void SetConnections(const Aws::Vector<WaypointOptimizationConnection>& value) { m_connections = value; }
47 inline void SetConnections(Aws::Vector<WaypointOptimizationConnection>&& value) { m_connections = std::move(value); }
50 inline OptimizeWaypointsResult& AddConnections(const WaypointOptimizationConnection& value) { m_connections.push_back(value); return *this; }
51 inline OptimizeWaypointsResult& AddConnections(WaypointOptimizationConnection&& value) { m_connections.push_back(std::move(value)); return *this; }
53
55
58 inline long long GetDistance() const{ return m_distance; }
59 inline void SetDistance(long long value) { 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_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 inline void SetImpedingWaypoints(const Aws::Vector<WaypointOptimizationImpedingWaypoint>& value) { m_impedingWaypoints = value; }
80 inline void SetImpedingWaypoints(Aws::Vector<WaypointOptimizationImpedingWaypoint>&& value) { m_impedingWaypoints = std::move(value); }
83 inline OptimizeWaypointsResult& AddImpedingWaypoints(const WaypointOptimizationImpedingWaypoint& value) { m_impedingWaypoints.push_back(value); return *this; }
84 inline OptimizeWaypointsResult& AddImpedingWaypoints(WaypointOptimizationImpedingWaypoint&& value) { m_impedingWaypoints.push_back(std::move(value)); return *this; }
86
88
91 inline const Aws::Vector<WaypointOptimizationOptimizedWaypoint>& GetOptimizedWaypoints() const{ return m_optimizedWaypoints; }
92 inline void SetOptimizedWaypoints(const Aws::Vector<WaypointOptimizationOptimizedWaypoint>& value) { m_optimizedWaypoints = value; }
93 inline void SetOptimizedWaypoints(Aws::Vector<WaypointOptimizationOptimizedWaypoint>&& value) { m_optimizedWaypoints = std::move(value); }
96 inline OptimizeWaypointsResult& AddOptimizedWaypoints(const WaypointOptimizationOptimizedWaypoint& value) { m_optimizedWaypoints.push_back(value); return *this; }
97 inline OptimizeWaypointsResult& AddOptimizedWaypoints(WaypointOptimizationOptimizedWaypoint&& value) { m_optimizedWaypoints.push_back(std::move(value)); return *this; }
99
101
104 inline const Aws::String& GetPricingBucket() const{ return m_pricingBucket; }
105 inline void SetPricingBucket(const Aws::String& value) { m_pricingBucket = value; }
106 inline void SetPricingBucket(Aws::String&& value) { m_pricingBucket = std::move(value); }
107 inline void SetPricingBucket(const char* value) { m_pricingBucket.assign(value); }
108 inline OptimizeWaypointsResult& WithPricingBucket(const Aws::String& value) { SetPricingBucket(value); return *this;}
109 inline OptimizeWaypointsResult& WithPricingBucket(Aws::String&& value) { SetPricingBucket(std::move(value)); return *this;}
110 inline OptimizeWaypointsResult& WithPricingBucket(const char* value) { SetPricingBucket(value); return *this;}
112
114
117 inline const WaypointOptimizationTimeBreakdown& GetTimeBreakdown() const{ return m_timeBreakdown; }
118 inline void SetTimeBreakdown(const WaypointOptimizationTimeBreakdown& value) { m_timeBreakdown = value; }
119 inline void SetTimeBreakdown(WaypointOptimizationTimeBreakdown&& value) { m_timeBreakdown = std::move(value); }
123
125
126 inline const Aws::String& GetRequestId() const{ return m_requestId; }
127 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
128 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
129 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
130 inline OptimizeWaypointsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
131 inline OptimizeWaypointsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
132 inline OptimizeWaypointsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
134 private:
135
137
138 long long m_distance;
139
140 long long m_duration;
141
143
145
146 Aws::String m_pricingBucket;
147
148 WaypointOptimizationTimeBreakdown m_timeBreakdown;
149
150 Aws::String m_requestId;
151 };
152
153} // namespace Model
154} // namespace GeoRoutes
155} // namespace Aws
const WaypointOptimizationTimeBreakdown & GetTimeBreakdown() const
const Aws::Vector< WaypointOptimizationConnection > & GetConnections() const
OptimizeWaypointsResult & WithImpedingWaypoints(Aws::Vector< WaypointOptimizationImpedingWaypoint > &&value)
OptimizeWaypointsResult & AddImpedingWaypoints(WaypointOptimizationImpedingWaypoint &&value)
OptimizeWaypointsResult & AddImpedingWaypoints(const WaypointOptimizationImpedingWaypoint &value)
void SetConnections(Aws::Vector< WaypointOptimizationConnection > &&value)
OptimizeWaypointsResult & AddOptimizedWaypoints(WaypointOptimizationOptimizedWaypoint &&value)
AWS_GEOROUTES_API OptimizeWaypointsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
OptimizeWaypointsResult & WithRequestId(const Aws::String &value)
OptimizeWaypointsResult & WithPricingBucket(const Aws::String &value)
OptimizeWaypointsResult & WithPricingBucket(Aws::String &&value)
OptimizeWaypointsResult & AddConnections(WaypointOptimizationConnection &&value)
void SetTimeBreakdown(WaypointOptimizationTimeBreakdown &&value)
void SetTimeBreakdown(const WaypointOptimizationTimeBreakdown &value)
OptimizeWaypointsResult & WithOptimizedWaypoints(const Aws::Vector< WaypointOptimizationOptimizedWaypoint > &value)
void SetOptimizedWaypoints(const Aws::Vector< WaypointOptimizationOptimizedWaypoint > &value)
void SetImpedingWaypoints(Aws::Vector< WaypointOptimizationImpedingWaypoint > &&value)
OptimizeWaypointsResult & WithImpedingWaypoints(const Aws::Vector< WaypointOptimizationImpedingWaypoint > &value)
OptimizeWaypointsResult & WithConnections(Aws::Vector< WaypointOptimizationConnection > &&value)
OptimizeWaypointsResult & WithRequestId(Aws::String &&value)
OptimizeWaypointsResult & WithDuration(long long value)
OptimizeWaypointsResult & WithConnections(const Aws::Vector< WaypointOptimizationConnection > &value)
const Aws::Vector< WaypointOptimizationOptimizedWaypoint > & GetOptimizedWaypoints() const
AWS_GEOROUTES_API OptimizeWaypointsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetConnections(const Aws::Vector< WaypointOptimizationConnection > &value)
const Aws::Vector< WaypointOptimizationImpedingWaypoint > & GetImpedingWaypoints() const
OptimizeWaypointsResult & WithRequestId(const char *value)
OptimizeWaypointsResult & WithPricingBucket(const char *value)
void SetOptimizedWaypoints(Aws::Vector< WaypointOptimizationOptimizedWaypoint > &&value)
OptimizeWaypointsResult & WithTimeBreakdown(const WaypointOptimizationTimeBreakdown &value)
OptimizeWaypointsResult & WithTimeBreakdown(WaypointOptimizationTimeBreakdown &&value)
void SetImpedingWaypoints(const Aws::Vector< WaypointOptimizationImpedingWaypoint > &value)
OptimizeWaypointsResult & AddOptimizedWaypoints(const WaypointOptimizationOptimizedWaypoint &value)
OptimizeWaypointsResult & WithOptimizedWaypoints(Aws::Vector< WaypointOptimizationOptimizedWaypoint > &&value)
OptimizeWaypointsResult & AddConnections(const WaypointOptimizationConnection &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