AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
ForecastGeofenceEventsResult.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/location/LocationService_EXPORTS.h>
11#include <aws/location/model/DistanceUnit.h>
12#include <aws/location/model/ForecastedEvent.h>
13#include <aws/location/model/SpeedUnit.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 LocationService {
27namespace Model {
29 public:
30 AWS_LOCATIONSERVICE_API ForecastGeofenceEventsResult() = default;
33
35
38 inline const Aws::Vector<ForecastedEvent>& GetForecastedEvents() const { return m_forecastedEvents; }
39 template <typename ForecastedEventsT = Aws::Vector<ForecastedEvent>>
40 void SetForecastedEvents(ForecastedEventsT&& value) {
41 m_forecastedEventsHasBeenSet = true;
42 m_forecastedEvents = std::forward<ForecastedEventsT>(value);
43 }
44 template <typename ForecastedEventsT = Aws::Vector<ForecastedEvent>>
46 SetForecastedEvents(std::forward<ForecastedEventsT>(value));
47 return *this;
48 }
49 template <typename ForecastedEventsT = ForecastedEvent>
51 m_forecastedEventsHasBeenSet = true;
52 m_forecastedEvents.emplace_back(std::forward<ForecastedEventsT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetNextToken() const { return m_nextToken; }
63 template <typename NextTokenT = Aws::String>
64 void SetNextToken(NextTokenT&& value) {
65 m_nextTokenHasBeenSet = true;
66 m_nextToken = std::forward<NextTokenT>(value);
67 }
68 template <typename NextTokenT = Aws::String>
70 SetNextToken(std::forward<NextTokenT>(value));
71 return *this;
72 }
74
76
79 inline DistanceUnit GetDistanceUnit() const { return m_distanceUnit; }
80 inline void SetDistanceUnit(DistanceUnit value) {
81 m_distanceUnitHasBeenSet = true;
82 m_distanceUnit = value;
83 }
85 SetDistanceUnit(value);
86 return *this;
87 }
89
91
94 inline SpeedUnit GetSpeedUnit() const { return m_speedUnit; }
95 inline void SetSpeedUnit(SpeedUnit value) {
96 m_speedUnitHasBeenSet = true;
97 m_speedUnit = value;
98 }
100 SetSpeedUnit(value);
101 return *this;
102 }
104
106
107 inline const Aws::String& GetRequestId() const { return m_requestId; }
108 template <typename RequestIdT = Aws::String>
109 void SetRequestId(RequestIdT&& value) {
110 m_requestIdHasBeenSet = true;
111 m_requestId = std::forward<RequestIdT>(value);
112 }
113 template <typename RequestIdT = Aws::String>
115 SetRequestId(std::forward<RequestIdT>(value));
116 return *this;
117 }
119 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
120
121 private:
122 Aws::Vector<ForecastedEvent> m_forecastedEvents;
123
124 Aws::String m_nextToken;
125
126 DistanceUnit m_distanceUnit{DistanceUnit::NOT_SET};
127
128 SpeedUnit m_speedUnit{SpeedUnit::NOT_SET};
129
130 Aws::String m_requestId;
131 Aws::Http::HttpResponseCode m_HttpResponseCode;
132 bool m_forecastedEventsHasBeenSet = false;
133 bool m_nextTokenHasBeenSet = false;
134 bool m_distanceUnitHasBeenSet = false;
135 bool m_speedUnitHasBeenSet = false;
136 bool m_requestIdHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace LocationService
141} // namespace Aws
AWS_LOCATIONSERVICE_API ForecastGeofenceEventsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ForecastGeofenceEventsResult & WithNextToken(NextTokenT &&value)
ForecastGeofenceEventsResult & WithSpeedUnit(SpeedUnit value)
const Aws::Vector< ForecastedEvent > & GetForecastedEvents() const
AWS_LOCATIONSERVICE_API ForecastGeofenceEventsResult()=default
ForecastGeofenceEventsResult & WithForecastedEvents(ForecastedEventsT &&value)
ForecastGeofenceEventsResult & WithDistanceUnit(DistanceUnit value)
AWS_LOCATIONSERVICE_API ForecastGeofenceEventsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ForecastGeofenceEventsResult & AddForecastedEvents(ForecastedEventsT &&value)
ForecastGeofenceEventsResult & WithRequestId(RequestIdT &&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