AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ForecastGeofenceEventsResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/location/LocationService_EXPORTS.h>
10#include <aws/location/model/DistanceUnit.h>
11#include <aws/location/model/ForecastedEvent.h>
12#include <aws/location/model/SpeedUnit.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace LocationService {
26namespace Model {
28 public:
29 AWS_LOCATIONSERVICE_API ForecastGeofenceEventsResult() = default;
32
34
37 inline const Aws::Vector<ForecastedEvent>& GetForecastedEvents() const { return m_forecastedEvents; }
38 template <typename ForecastedEventsT = Aws::Vector<ForecastedEvent>>
39 void SetForecastedEvents(ForecastedEventsT&& value) {
40 m_forecastedEventsHasBeenSet = true;
41 m_forecastedEvents = std::forward<ForecastedEventsT>(value);
42 }
43 template <typename ForecastedEventsT = Aws::Vector<ForecastedEvent>>
45 SetForecastedEvents(std::forward<ForecastedEventsT>(value));
46 return *this;
47 }
48 template <typename ForecastedEventsT = ForecastedEvent>
50 m_forecastedEventsHasBeenSet = true;
51 m_forecastedEvents.emplace_back(std::forward<ForecastedEventsT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetNextToken() const { return m_nextToken; }
62 template <typename NextTokenT = Aws::String>
63 void SetNextToken(NextTokenT&& value) {
64 m_nextTokenHasBeenSet = true;
65 m_nextToken = std::forward<NextTokenT>(value);
66 }
67 template <typename NextTokenT = Aws::String>
69 SetNextToken(std::forward<NextTokenT>(value));
70 return *this;
71 }
73
75
78 inline DistanceUnit GetDistanceUnit() const { return m_distanceUnit; }
79 inline void SetDistanceUnit(DistanceUnit value) {
80 m_distanceUnitHasBeenSet = true;
81 m_distanceUnit = value;
82 }
84 SetDistanceUnit(value);
85 return *this;
86 }
88
90
93 inline SpeedUnit GetSpeedUnit() const { return m_speedUnit; }
94 inline void SetSpeedUnit(SpeedUnit value) {
95 m_speedUnitHasBeenSet = true;
96 m_speedUnit = value;
97 }
99 SetSpeedUnit(value);
100 return *this;
101 }
103
105
106 inline const Aws::String& GetRequestId() const { return m_requestId; }
107 template <typename RequestIdT = Aws::String>
108 void SetRequestId(RequestIdT&& value) {
109 m_requestIdHasBeenSet = true;
110 m_requestId = std::forward<RequestIdT>(value);
111 }
112 template <typename RequestIdT = Aws::String>
114 SetRequestId(std::forward<RequestIdT>(value));
115 return *this;
116 }
118 private:
119 Aws::Vector<ForecastedEvent> m_forecastedEvents;
120
121 Aws::String m_nextToken;
122
123 DistanceUnit m_distanceUnit{DistanceUnit::NOT_SET};
124
125 SpeedUnit m_speedUnit{SpeedUnit::NOT_SET};
126
127 Aws::String m_requestId;
128 bool m_forecastedEventsHasBeenSet = false;
129 bool m_nextTokenHasBeenSet = false;
130 bool m_distanceUnitHasBeenSet = false;
131 bool m_speedUnitHasBeenSet = false;
132 bool m_requestIdHasBeenSet = false;
133};
134
135} // namespace Model
136} // namespace LocationService
137} // 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