AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
CalculateRoutesResult.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/geo-routes/model/GeometryFormat.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/geo-routes/model/RouteResponseNotice.h>
12#include <aws/geo-routes/model/Route.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace GeoRoutes
28{
29namespace Model
30{
32 {
33 public:
34 AWS_GEOROUTES_API CalculateRoutesResult() = default;
37
38
40
43 inline GeometryFormat GetLegGeometryFormat() const { return m_legGeometryFormat; }
44 inline void SetLegGeometryFormat(GeometryFormat value) { m_legGeometryFormatHasBeenSet = true; m_legGeometryFormat = value; }
47
49
53 inline const Aws::Vector<RouteResponseNotice>& GetNotices() const { return m_notices; }
54 template<typename NoticesT = Aws::Vector<RouteResponseNotice>>
55 void SetNotices(NoticesT&& value) { m_noticesHasBeenSet = true; m_notices = std::forward<NoticesT>(value); }
56 template<typename NoticesT = Aws::Vector<RouteResponseNotice>>
57 CalculateRoutesResult& WithNotices(NoticesT&& value) { SetNotices(std::forward<NoticesT>(value)); return *this;}
58 template<typename NoticesT = RouteResponseNotice>
59 CalculateRoutesResult& AddNotices(NoticesT&& value) { m_noticesHasBeenSet = true; m_notices.emplace_back(std::forward<NoticesT>(value)); return *this; }
61
63
66 inline const Aws::String& GetPricingBucket() const { return m_pricingBucket; }
67 template<typename PricingBucketT = Aws::String>
68 void SetPricingBucket(PricingBucketT&& value) { m_pricingBucketHasBeenSet = true; m_pricingBucket = std::forward<PricingBucketT>(value); }
69 template<typename PricingBucketT = Aws::String>
70 CalculateRoutesResult& WithPricingBucket(PricingBucketT&& value) { SetPricingBucket(std::forward<PricingBucketT>(value)); return *this;}
72
74
77 inline const Aws::Vector<Route>& GetRoutes() const { return m_routes; }
78 template<typename RoutesT = Aws::Vector<Route>>
79 void SetRoutes(RoutesT&& value) { m_routesHasBeenSet = true; m_routes = std::forward<RoutesT>(value); }
80 template<typename RoutesT = Aws::Vector<Route>>
81 CalculateRoutesResult& WithRoutes(RoutesT&& value) { SetRoutes(std::forward<RoutesT>(value)); return *this;}
82 template<typename RoutesT = Route>
83 CalculateRoutesResult& AddRoutes(RoutesT&& value) { m_routesHasBeenSet = true; m_routes.emplace_back(std::forward<RoutesT>(value)); return *this; }
85
87
88 inline const Aws::String& GetRequestId() const { return m_requestId; }
89 template<typename RequestIdT = Aws::String>
90 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
91 template<typename RequestIdT = Aws::String>
92 CalculateRoutesResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
94 private:
95
96 GeometryFormat m_legGeometryFormat{GeometryFormat::NOT_SET};
97 bool m_legGeometryFormatHasBeenSet = false;
98
100 bool m_noticesHasBeenSet = false;
101
102 Aws::String m_pricingBucket;
103 bool m_pricingBucketHasBeenSet = false;
104
105 Aws::Vector<Route> m_routes;
106 bool m_routesHasBeenSet = false;
107
108 Aws::String m_requestId;
109 bool m_requestIdHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace GeoRoutes
114} // namespace Aws
CalculateRoutesResult & WithRequestId(RequestIdT &&value)
CalculateRoutesResult & AddRoutes(RoutesT &&value)
CalculateRoutesResult & AddNotices(NoticesT &&value)
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