AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
CalculateRouteMatrixResult.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/geo-routes/model/RouteMatrixBoundary.h>
11#include <aws/geo-routes/model/RouteMatrixEntry.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace GeoRoutes
27{
28namespace Model
29{
31 {
32 public:
33 AWS_GEOROUTES_API CalculateRouteMatrixResult() = default;
36
37
39
43 inline int GetErrorCount() const { return m_errorCount; }
44 inline void SetErrorCount(int value) { m_errorCountHasBeenSet = true; m_errorCount = value; }
45 inline CalculateRouteMatrixResult& WithErrorCount(int value) { SetErrorCount(value); return *this;}
47
49
52 inline const Aws::String& GetPricingBucket() const { return m_pricingBucket; }
53 template<typename PricingBucketT = Aws::String>
54 void SetPricingBucket(PricingBucketT&& value) { m_pricingBucketHasBeenSet = true; m_pricingBucket = std::forward<PricingBucketT>(value); }
55 template<typename PricingBucketT = Aws::String>
56 CalculateRouteMatrixResult& WithPricingBucket(PricingBucketT&& value) { SetPricingBucket(std::forward<PricingBucketT>(value)); return *this;}
58
60
66 inline const Aws::Vector<Aws::Vector<RouteMatrixEntry>>& GetRouteMatrix() const { return m_routeMatrix; }
67 template<typename RouteMatrixT = Aws::Vector<Aws::Vector<RouteMatrixEntry>>>
68 void SetRouteMatrix(RouteMatrixT&& value) { m_routeMatrixHasBeenSet = true; m_routeMatrix = std::forward<RouteMatrixT>(value); }
69 template<typename RouteMatrixT = Aws::Vector<Aws::Vector<RouteMatrixEntry>>>
70 CalculateRouteMatrixResult& WithRouteMatrix(RouteMatrixT&& value) { SetRouteMatrix(std::forward<RouteMatrixT>(value)); return *this;}
71 template<typename RouteMatrixT = Aws::Vector<RouteMatrixEntry>>
72 CalculateRouteMatrixResult& AddRouteMatrix(RouteMatrixT&& value) { m_routeMatrixHasBeenSet = true; m_routeMatrix.emplace_back(std::forward<RouteMatrixT>(value)); return *this; }
74
76
82 inline const RouteMatrixBoundary& GetRoutingBoundary() const { return m_routingBoundary; }
83 template<typename RoutingBoundaryT = RouteMatrixBoundary>
84 void SetRoutingBoundary(RoutingBoundaryT&& value) { m_routingBoundaryHasBeenSet = true; m_routingBoundary = std::forward<RoutingBoundaryT>(value); }
85 template<typename RoutingBoundaryT = RouteMatrixBoundary>
86 CalculateRouteMatrixResult& WithRoutingBoundary(RoutingBoundaryT&& value) { SetRoutingBoundary(std::forward<RoutingBoundaryT>(value)); return *this;}
88
90
91 inline const Aws::String& GetRequestId() const { return m_requestId; }
92 template<typename RequestIdT = Aws::String>
93 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
94 template<typename RequestIdT = Aws::String>
95 CalculateRouteMatrixResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
97 private:
98
99 int m_errorCount{0};
100 bool m_errorCountHasBeenSet = false;
101
102 Aws::String m_pricingBucket;
103 bool m_pricingBucketHasBeenSet = false;
104
106 bool m_routeMatrixHasBeenSet = false;
107
108 RouteMatrixBoundary m_routingBoundary;
109 bool m_routingBoundaryHasBeenSet = false;
110
111 Aws::String m_requestId;
112 bool m_requestIdHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace GeoRoutes
117} // namespace Aws
CalculateRouteMatrixResult & WithRequestId(RequestIdT &&value)
AWS_GEOROUTES_API CalculateRouteMatrixResult()=default
AWS_GEOROUTES_API CalculateRouteMatrixResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_GEOROUTES_API CalculateRouteMatrixResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CalculateRouteMatrixResult & WithPricingBucket(PricingBucketT &&value)
CalculateRouteMatrixResult & WithRouteMatrix(RouteMatrixT &&value)
const Aws::Vector< Aws::Vector< RouteMatrixEntry > > & GetRouteMatrix() const
CalculateRouteMatrixResult & AddRouteMatrix(RouteMatrixT &&value)
CalculateRouteMatrixResult & WithRoutingBoundary(RoutingBoundaryT &&value)
CalculateRouteMatrixResult & WithErrorCount(int 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