AWS SDK for C++

AWS SDK for C++ Version 1.11.770

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
54 inline const Aws::Vector<RouteResponseNotice>& GetNotices() const { return m_notices; }
55 template <typename NoticesT = Aws::Vector<RouteResponseNotice>>
56 void SetNotices(NoticesT&& value) {
57 m_noticesHasBeenSet = true;
58 m_notices = std::forward<NoticesT>(value);
59 }
60 template <typename NoticesT = Aws::Vector<RouteResponseNotice>>
62 SetNotices(std::forward<NoticesT>(value));
63 return *this;
64 }
65 template <typename NoticesT = RouteResponseNotice>
66 CalculateRoutesResult& AddNotices(NoticesT&& value) {
67 m_noticesHasBeenSet = true;
68 m_notices.emplace_back(std::forward<NoticesT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetPricingBucket() const { return m_pricingBucket; }
78 template <typename PricingBucketT = Aws::String>
79 void SetPricingBucket(PricingBucketT&& value) {
80 m_pricingBucketHasBeenSet = true;
81 m_pricingBucket = std::forward<PricingBucketT>(value);
82 }
83 template <typename PricingBucketT = Aws::String>
84 CalculateRoutesResult& WithPricingBucket(PricingBucketT&& value) {
85 SetPricingBucket(std::forward<PricingBucketT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::Vector<Route>& GetRoutes() const { return m_routes; }
95 template <typename RoutesT = Aws::Vector<Route>>
96 void SetRoutes(RoutesT&& value) {
97 m_routesHasBeenSet = true;
98 m_routes = std::forward<RoutesT>(value);
99 }
100 template <typename RoutesT = Aws::Vector<Route>>
102 SetRoutes(std::forward<RoutesT>(value));
103 return *this;
104 }
105 template <typename RoutesT = Route>
107 m_routesHasBeenSet = true;
108 m_routes.emplace_back(std::forward<RoutesT>(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 GeometryFormat m_legGeometryFormat{GeometryFormat::NOT_SET};
131
133
134 Aws::String m_pricingBucket;
135
136 Aws::Vector<Route> m_routes;
137
138 Aws::String m_requestId;
139 Aws::Http::HttpResponseCode m_HttpResponseCode;
140 bool m_legGeometryFormatHasBeenSet = false;
141 bool m_noticesHasBeenSet = false;
142 bool m_pricingBucketHasBeenSet = false;
143 bool m_routesHasBeenSet = false;
144 bool m_requestIdHasBeenSet = false;
145};
146
147} // namespace Model
148} // namespace GeoRoutes
149} // 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