AWS SDK for C++

AWS SDK for C++ Version 1.11.832

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
100 inline const RouteMatrixBoundary& GetRoutingBoundary() const { return m_routingBoundary; }
101 template <typename RoutingBoundaryT = RouteMatrixBoundary>
102 void SetRoutingBoundary(RoutingBoundaryT&& value) {
103 m_routingBoundaryHasBeenSet = true;
104 m_routingBoundary = std::forward<RoutingBoundaryT>(value);
105 }
106 template <typename RoutingBoundaryT = RouteMatrixBoundary>
108 SetRoutingBoundary(std::forward<RoutingBoundaryT>(value));
109 return *this;
110 }
112
114
115 inline const Aws::String& GetRequestId() const { return m_requestId; }
116 template <typename RequestIdT = Aws::String>
117 void SetRequestId(RequestIdT&& value) {
118 m_requestIdHasBeenSet = true;
119 m_requestId = std::forward<RequestIdT>(value);
120 }
121 template <typename RequestIdT = Aws::String>
123 SetRequestId(std::forward<RequestIdT>(value));
124 return *this;
125 }
127 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
128
129 private:
130 int m_errorCount{0};
131
132 Aws::String m_pricingBucket;
133
135
136 RouteMatrixBoundary m_routingBoundary;
137
138 Aws::String m_requestId;
139 Aws::Http::HttpResponseCode m_HttpResponseCode;
140 bool m_errorCountHasBeenSet = false;
141 bool m_pricingBucketHasBeenSet = false;
142 bool m_routeMatrixHasBeenSet = false;
143 bool m_routingBoundaryHasBeenSet = false;
144 bool m_requestIdHasBeenSet = false;
145};
146
147} // namespace Model
148} // namespace GeoRoutes
149} // 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