AWS SDK for C++

AWS SDK for C++ Version 1.11.770

Loading...
Searching...
No Matches
CalculateRouteMatrixResult.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/RouteMatrixBoundary.h>
12#include <aws/geo-routes/model/RouteMatrixEntry.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace GeoRoutes {
26namespace Model {
28 public:
29 AWS_GEOROUTES_API CalculateRouteMatrixResult() = default;
32
34
38 inline int GetErrorCount() const { return m_errorCount; }
39 inline void SetErrorCount(int value) {
40 m_errorCountHasBeenSet = true;
41 m_errorCount = value;
42 }
44 SetErrorCount(value);
45 return *this;
46 }
48
50
53 inline const Aws::String& GetPricingBucket() const { return m_pricingBucket; }
54 template <typename PricingBucketT = Aws::String>
55 void SetPricingBucket(PricingBucketT&& value) {
56 m_pricingBucketHasBeenSet = true;
57 m_pricingBucket = std::forward<PricingBucketT>(value);
58 }
59 template <typename PricingBucketT = Aws::String>
61 SetPricingBucket(std::forward<PricingBucketT>(value));
62 return *this;
63 }
65
67
73 inline const Aws::Vector<Aws::Vector<RouteMatrixEntry>>& GetRouteMatrix() const { return m_routeMatrix; }
74 template <typename RouteMatrixT = Aws::Vector<Aws::Vector<RouteMatrixEntry>>>
75 void SetRouteMatrix(RouteMatrixT&& value) {
76 m_routeMatrixHasBeenSet = true;
77 m_routeMatrix = std::forward<RouteMatrixT>(value);
78 }
79 template <typename RouteMatrixT = Aws::Vector<Aws::Vector<RouteMatrixEntry>>>
81 SetRouteMatrix(std::forward<RouteMatrixT>(value));
82 return *this;
83 }
84 template <typename RouteMatrixT = Aws::Vector<RouteMatrixEntry>>
86 m_routeMatrixHasBeenSet = true;
87 m_routeMatrix.emplace_back(std::forward<RouteMatrixT>(value));
88 return *this;
89 }
91
93
99 inline const RouteMatrixBoundary& GetRoutingBoundary() const { return m_routingBoundary; }
100 template <typename RoutingBoundaryT = RouteMatrixBoundary>
101 void SetRoutingBoundary(RoutingBoundaryT&& value) {
102 m_routingBoundaryHasBeenSet = true;
103 m_routingBoundary = std::forward<RoutingBoundaryT>(value);
104 }
105 template <typename RoutingBoundaryT = RouteMatrixBoundary>
107 SetRoutingBoundary(std::forward<RoutingBoundaryT>(value));
108 return *this;
109 }
111
113
114 inline const Aws::String& GetRequestId() const { return m_requestId; }
115 template <typename RequestIdT = Aws::String>
116 void SetRequestId(RequestIdT&& value) {
117 m_requestIdHasBeenSet = true;
118 m_requestId = std::forward<RequestIdT>(value);
119 }
120 template <typename RequestIdT = Aws::String>
122 SetRequestId(std::forward<RequestIdT>(value));
123 return *this;
124 }
126 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
127
128 private:
129 int m_errorCount{0};
130
131 Aws::String m_pricingBucket;
132
134
135 RouteMatrixBoundary m_routingBoundary;
136
137 Aws::String m_requestId;
138 Aws::Http::HttpResponseCode m_HttpResponseCode;
139 bool m_errorCountHasBeenSet = false;
140 bool m_pricingBucketHasBeenSet = false;
141 bool m_routeMatrixHasBeenSet = false;
142 bool m_routingBoundaryHasBeenSet = false;
143 bool m_requestIdHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace GeoRoutes
148} // 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