AWS SDK for C++

AWS SDK for C++ Version 1.11.791

Loading...
Searching...
No Matches
CalculateRoutesResult.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/GeometryFormat.h>
12#include <aws/geo-routes/model/Route.h>
13#include <aws/geo-routes/model/RouteResponseNotice.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace GeoRoutes {
27namespace Model {
29 public:
30 AWS_GEOROUTES_API CalculateRoutesResult() = default;
33
35
38 inline GeometryFormat GetLegGeometryFormat() const { return m_legGeometryFormat; }
40 m_legGeometryFormatHasBeenSet = true;
41 m_legGeometryFormat = value;
42 }
45 return *this;
46 }
48
50
57 inline const Aws::Vector<RouteResponseNotice>& GetNotices() const { return m_notices; }
58 template <typename NoticesT = Aws::Vector<RouteResponseNotice>>
59 void SetNotices(NoticesT&& value) {
60 m_noticesHasBeenSet = true;
61 m_notices = std::forward<NoticesT>(value);
62 }
63 template <typename NoticesT = Aws::Vector<RouteResponseNotice>>
65 SetNotices(std::forward<NoticesT>(value));
66 return *this;
67 }
68 template <typename NoticesT = RouteResponseNotice>
69 CalculateRoutesResult& AddNotices(NoticesT&& value) {
70 m_noticesHasBeenSet = true;
71 m_notices.emplace_back(std::forward<NoticesT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetPricingBucket() const { return m_pricingBucket; }
81 template <typename PricingBucketT = Aws::String>
82 void SetPricingBucket(PricingBucketT&& value) {
83 m_pricingBucketHasBeenSet = true;
84 m_pricingBucket = std::forward<PricingBucketT>(value);
85 }
86 template <typename PricingBucketT = Aws::String>
87 CalculateRoutesResult& WithPricingBucket(PricingBucketT&& value) {
88 SetPricingBucket(std::forward<PricingBucketT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::Vector<Route>& GetRoutes() const { return m_routes; }
98 template <typename RoutesT = Aws::Vector<Route>>
99 void SetRoutes(RoutesT&& value) {
100 m_routesHasBeenSet = true;
101 m_routes = std::forward<RoutesT>(value);
102 }
103 template <typename RoutesT = Aws::Vector<Route>>
105 SetRoutes(std::forward<RoutesT>(value));
106 return *this;
107 }
108 template <typename RoutesT = Route>
110 m_routesHasBeenSet = true;
111 m_routes.emplace_back(std::forward<RoutesT>(value));
112 return *this;
113 }
115
117
118 inline const Aws::String& GetRequestId() const { return m_requestId; }
119 template <typename RequestIdT = Aws::String>
120 void SetRequestId(RequestIdT&& value) {
121 m_requestIdHasBeenSet = true;
122 m_requestId = std::forward<RequestIdT>(value);
123 }
124 template <typename RequestIdT = Aws::String>
126 SetRequestId(std::forward<RequestIdT>(value));
127 return *this;
128 }
130 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
131
132 private:
133 GeometryFormat m_legGeometryFormat{GeometryFormat::NOT_SET};
134
136
137 Aws::String m_pricingBucket;
138
139 Aws::Vector<Route> m_routes;
140
141 Aws::String m_requestId;
142 Aws::Http::HttpResponseCode m_HttpResponseCode;
143 bool m_legGeometryFormatHasBeenSet = false;
144 bool m_noticesHasBeenSet = false;
145 bool m_pricingBucketHasBeenSet = false;
146 bool m_routesHasBeenSet = false;
147 bool m_requestIdHasBeenSet = false;
148};
149
150} // namespace Model
151} // namespace GeoRoutes
152} // namespace Aws
CalculateRoutesResult & WithRequestId(RequestIdT &&value)
CalculateRoutesResult & AddRoutes(RoutesT &&value)
CalculateRoutesResult & AddNotices(NoticesT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
CalculateRoutesResult & WithPricingBucket(PricingBucketT &&value)
CalculateRoutesResult & WithRoutes(RoutesT &&value)
CalculateRoutesResult & WithNotices(NoticesT &&value)
AWS_GEOROUTES_API CalculateRoutesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< RouteResponseNotice > & GetNotices() const
const Aws::Vector< Route > & GetRoutes() const
AWS_GEOROUTES_API CalculateRoutesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CalculateRoutesResult & WithLegGeometryFormat(GeometryFormat value)
AWS_GEOROUTES_API CalculateRoutesResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue