AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CalculateRouteResult.h
1
6#pragma once
7#include <aws/location/LocationService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/location/model/CalculateRouteSummary.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/location/model/Leg.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace LocationService
27{
28namespace Model
29{
37 {
38 public:
39 AWS_LOCATIONSERVICE_API CalculateRouteResult();
42
43
45
63 inline const Aws::Vector<Leg>& GetLegs() const{ return m_legs; }
64 inline void SetLegs(const Aws::Vector<Leg>& value) { m_legs = value; }
65 inline void SetLegs(Aws::Vector<Leg>&& value) { m_legs = std::move(value); }
66 inline CalculateRouteResult& WithLegs(const Aws::Vector<Leg>& value) { SetLegs(value); return *this;}
67 inline CalculateRouteResult& WithLegs(Aws::Vector<Leg>&& value) { SetLegs(std::move(value)); return *this;}
68 inline CalculateRouteResult& AddLegs(const Leg& value) { m_legs.push_back(value); return *this; }
69 inline CalculateRouteResult& AddLegs(Leg&& value) { m_legs.push_back(std::move(value)); return *this; }
71
73
78 inline const CalculateRouteSummary& GetSummary() const{ return m_summary; }
79 inline void SetSummary(const CalculateRouteSummary& value) { m_summary = value; }
80 inline void SetSummary(CalculateRouteSummary&& value) { m_summary = std::move(value); }
81 inline CalculateRouteResult& WithSummary(const CalculateRouteSummary& value) { SetSummary(value); return *this;}
82 inline CalculateRouteResult& WithSummary(CalculateRouteSummary&& value) { SetSummary(std::move(value)); return *this;}
84
86
87 inline const Aws::String& GetRequestId() const{ return m_requestId; }
88 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
89 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
90 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
91 inline CalculateRouteResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
92 inline CalculateRouteResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
93 inline CalculateRouteResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
95 private:
96
97 Aws::Vector<Leg> m_legs;
98
99 CalculateRouteSummary m_summary;
100
101 Aws::String m_requestId;
102 };
103
104} // namespace Model
105} // namespace LocationService
106} // namespace Aws
CalculateRouteResult & WithLegs(Aws::Vector< Leg > &&value)
CalculateRouteResult & WithSummary(const CalculateRouteSummary &value)
CalculateRouteResult & AddLegs(const Leg &value)
CalculateRouteResult & WithLegs(const Aws::Vector< Leg > &value)
CalculateRouteResult & WithRequestId(Aws::String &&value)
CalculateRouteResult & WithRequestId(const char *value)
void SetSummary(const CalculateRouteSummary &value)
CalculateRouteResult & WithRequestId(const Aws::String &value)
AWS_LOCATIONSERVICE_API CalculateRouteResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const CalculateRouteSummary & GetSummary() const
AWS_LOCATIONSERVICE_API CalculateRouteResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetLegs(const Aws::Vector< Leg > &value)
CalculateRouteResult & WithSummary(CalculateRouteSummary &&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