AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
37
38
40
43 inline const GeometryFormat& GetLegGeometryFormat() const{ return m_legGeometryFormat; }
44 inline void SetLegGeometryFormat(const GeometryFormat& value) { m_legGeometryFormat = value; }
45 inline void SetLegGeometryFormat(GeometryFormat&& value) { m_legGeometryFormat = std::move(value); }
47 inline CalculateRoutesResult& WithLegGeometryFormat(GeometryFormat&& value) { SetLegGeometryFormat(std::move(value)); return *this;}
49
51
55 inline const Aws::Vector<RouteResponseNotice>& GetNotices() const{ return m_notices; }
56 inline void SetNotices(const Aws::Vector<RouteResponseNotice>& value) { m_notices = value; }
57 inline void SetNotices(Aws::Vector<RouteResponseNotice>&& value) { m_notices = std::move(value); }
59 inline CalculateRoutesResult& WithNotices(Aws::Vector<RouteResponseNotice>&& value) { SetNotices(std::move(value)); return *this;}
60 inline CalculateRoutesResult& AddNotices(const RouteResponseNotice& value) { m_notices.push_back(value); return *this; }
61 inline CalculateRoutesResult& AddNotices(RouteResponseNotice&& value) { m_notices.push_back(std::move(value)); return *this; }
63
65
68 inline const Aws::String& GetPricingBucket() const{ return m_pricingBucket; }
69 inline void SetPricingBucket(const Aws::String& value) { m_pricingBucket = value; }
70 inline void SetPricingBucket(Aws::String&& value) { m_pricingBucket = std::move(value); }
71 inline void SetPricingBucket(const char* value) { m_pricingBucket.assign(value); }
72 inline CalculateRoutesResult& WithPricingBucket(const Aws::String& value) { SetPricingBucket(value); return *this;}
73 inline CalculateRoutesResult& WithPricingBucket(Aws::String&& value) { SetPricingBucket(std::move(value)); return *this;}
74 inline CalculateRoutesResult& WithPricingBucket(const char* value) { SetPricingBucket(value); return *this;}
76
78
81 inline const Aws::Vector<Route>& GetRoutes() const{ return m_routes; }
82 inline void SetRoutes(const Aws::Vector<Route>& value) { m_routes = value; }
83 inline void SetRoutes(Aws::Vector<Route>&& value) { m_routes = std::move(value); }
84 inline CalculateRoutesResult& WithRoutes(const Aws::Vector<Route>& value) { SetRoutes(value); return *this;}
85 inline CalculateRoutesResult& WithRoutes(Aws::Vector<Route>&& value) { SetRoutes(std::move(value)); return *this;}
86 inline CalculateRoutesResult& AddRoutes(const Route& value) { m_routes.push_back(value); return *this; }
87 inline CalculateRoutesResult& AddRoutes(Route&& value) { m_routes.push_back(std::move(value)); return *this; }
89
91
92 inline const Aws::String& GetRequestId() const{ return m_requestId; }
93 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
94 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
95 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
96 inline CalculateRoutesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
97 inline CalculateRoutesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
98 inline CalculateRoutesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
100 private:
101
102 GeometryFormat m_legGeometryFormat;
103
105
106 Aws::String m_pricingBucket;
107
108 Aws::Vector<Route> m_routes;
109
110 Aws::String m_requestId;
111 };
112
113} // namespace Model
114} // namespace GeoRoutes
115} // namespace Aws
CalculateRoutesResult & AddNotices(const RouteResponseNotice &value)
void SetLegGeometryFormat(const GeometryFormat &value)
CalculateRoutesResult & WithRoutes(Aws::Vector< Route > &&value)
const GeometryFormat & GetLegGeometryFormat() const
CalculateRoutesResult & WithPricingBucket(Aws::String &&value)
CalculateRoutesResult & WithNotices(const Aws::Vector< RouteResponseNotice > &value)
CalculateRoutesResult & WithLegGeometryFormat(GeometryFormat &&value)
CalculateRoutesResult & WithRequestId(const Aws::String &value)
void SetNotices(Aws::Vector< RouteResponseNotice > &&value)
void SetRoutes(Aws::Vector< Route > &&value)
CalculateRoutesResult & WithRequestId(Aws::String &&value)
void SetRoutes(const Aws::Vector< Route > &value)
CalculateRoutesResult & AddNotices(RouteResponseNotice &&value)
CalculateRoutesResult & WithNotices(Aws::Vector< RouteResponseNotice > &&value)
AWS_GEOROUTES_API CalculateRoutesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CalculateRoutesResult & WithRequestId(const char *value)
CalculateRoutesResult & WithPricingBucket(const Aws::String &value)
CalculateRoutesResult & AddRoutes(Route &&value)
const Aws::Vector< RouteResponseNotice > & GetNotices() const
const Aws::Vector< Route > & GetRoutes() const
AWS_GEOROUTES_API CalculateRoutesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetNotices(const Aws::Vector< RouteResponseNotice > &value)
CalculateRoutesResult & WithPricingBucket(const char *value)
CalculateRoutesResult & AddRoutes(const Route &value)
CalculateRoutesResult & WithRoutes(const Aws::Vector< Route > &value)
CalculateRoutesResult & WithLegGeometryFormat(const GeometryFormat &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