AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GetGeofenceResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/location/LocationService_EXPORTS.h>
11#include <aws/location/model/GeofenceGeometry.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace LocationService {
25namespace Model {
27 public:
28 AWS_LOCATIONSERVICE_API GetGeofenceResult() = default;
31
33
36 inline const Aws::String& GetGeofenceId() const { return m_geofenceId; }
37 template <typename GeofenceIdT = Aws::String>
38 void SetGeofenceId(GeofenceIdT&& value) {
39 m_geofenceIdHasBeenSet = true;
40 m_geofenceId = std::forward<GeofenceIdT>(value);
41 }
42 template <typename GeofenceIdT = Aws::String>
43 GetGeofenceResult& WithGeofenceId(GeofenceIdT&& value) {
44 SetGeofenceId(std::forward<GeofenceIdT>(value));
45 return *this;
46 }
48
50
54 inline const GeofenceGeometry& GetGeometry() const { return m_geometry; }
55 template <typename GeometryT = GeofenceGeometry>
56 void SetGeometry(GeometryT&& value) {
57 m_geometryHasBeenSet = true;
58 m_geometry = std::forward<GeometryT>(value);
59 }
60 template <typename GeometryT = GeofenceGeometry>
61 GetGeofenceResult& WithGeometry(GeometryT&& value) {
62 SetGeometry(std::forward<GeometryT>(value));
63 return *this;
64 }
66
68
78 inline const Aws::String& GetStatus() const { return m_status; }
79 template <typename StatusT = Aws::String>
80 void SetStatus(StatusT&& value) {
81 m_statusHasBeenSet = true;
82 m_status = std::forward<StatusT>(value);
83 }
84 template <typename StatusT = Aws::String>
85 GetGeofenceResult& WithStatus(StatusT&& value) {
86 SetStatus(std::forward<StatusT>(value));
87 return *this;
88 }
90
92
97 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
98 template <typename CreateTimeT = Aws::Utils::DateTime>
99 void SetCreateTime(CreateTimeT&& value) {
100 m_createTimeHasBeenSet = true;
101 m_createTime = std::forward<CreateTimeT>(value);
102 }
103 template <typename CreateTimeT = Aws::Utils::DateTime>
104 GetGeofenceResult& WithCreateTime(CreateTimeT&& value) {
105 SetCreateTime(std::forward<CreateTimeT>(value));
106 return *this;
107 }
109
111
116 inline const Aws::Utils::DateTime& GetUpdateTime() const { return m_updateTime; }
117 template <typename UpdateTimeT = Aws::Utils::DateTime>
118 void SetUpdateTime(UpdateTimeT&& value) {
119 m_updateTimeHasBeenSet = true;
120 m_updateTime = std::forward<UpdateTimeT>(value);
121 }
122 template <typename UpdateTimeT = Aws::Utils::DateTime>
123 GetGeofenceResult& WithUpdateTime(UpdateTimeT&& value) {
124 SetUpdateTime(std::forward<UpdateTimeT>(value));
125 return *this;
126 }
128
130
135 inline const Aws::Map<Aws::String, Aws::String>& GetGeofenceProperties() const { return m_geofenceProperties; }
136 template <typename GeofencePropertiesT = Aws::Map<Aws::String, Aws::String>>
137 void SetGeofenceProperties(GeofencePropertiesT&& value) {
138 m_geofencePropertiesHasBeenSet = true;
139 m_geofenceProperties = std::forward<GeofencePropertiesT>(value);
140 }
141 template <typename GeofencePropertiesT = Aws::Map<Aws::String, Aws::String>>
142 GetGeofenceResult& WithGeofenceProperties(GeofencePropertiesT&& value) {
143 SetGeofenceProperties(std::forward<GeofencePropertiesT>(value));
144 return *this;
145 }
146 template <typename GeofencePropertiesKeyT = Aws::String, typename GeofencePropertiesValueT = Aws::String>
147 GetGeofenceResult& AddGeofenceProperties(GeofencePropertiesKeyT&& key, GeofencePropertiesValueT&& value) {
148 m_geofencePropertiesHasBeenSet = true;
149 m_geofenceProperties.emplace(std::forward<GeofencePropertiesKeyT>(key), std::forward<GeofencePropertiesValueT>(value));
150 return *this;
151 }
153
155
156 inline const Aws::String& GetRequestId() const { return m_requestId; }
157 template <typename RequestIdT = Aws::String>
158 void SetRequestId(RequestIdT&& value) {
159 m_requestIdHasBeenSet = true;
160 m_requestId = std::forward<RequestIdT>(value);
161 }
162 template <typename RequestIdT = Aws::String>
163 GetGeofenceResult& WithRequestId(RequestIdT&& value) {
164 SetRequestId(std::forward<RequestIdT>(value));
165 return *this;
166 }
168 private:
169 Aws::String m_geofenceId;
170
171 GeofenceGeometry m_geometry;
172
173 Aws::String m_status;
174
175 Aws::Utils::DateTime m_createTime{};
176
177 Aws::Utils::DateTime m_updateTime{};
178
179 Aws::Map<Aws::String, Aws::String> m_geofenceProperties;
180
181 Aws::String m_requestId;
182 bool m_geofenceIdHasBeenSet = false;
183 bool m_geometryHasBeenSet = false;
184 bool m_statusHasBeenSet = false;
185 bool m_createTimeHasBeenSet = false;
186 bool m_updateTimeHasBeenSet = false;
187 bool m_geofencePropertiesHasBeenSet = false;
188 bool m_requestIdHasBeenSet = false;
189};
190
191} // namespace Model
192} // namespace LocationService
193} // namespace Aws
GetGeofenceResult & WithGeofenceId(GeofenceIdT &&value)
GetGeofenceResult & WithStatus(StatusT &&value)
AWS_LOCATIONSERVICE_API GetGeofenceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Map< Aws::String, Aws::String > & GetGeofenceProperties() const
const GeofenceGeometry & GetGeometry() const
GetGeofenceResult & WithGeofenceProperties(GeofencePropertiesT &&value)
const Aws::Utils::DateTime & GetCreateTime() const
void SetGeofenceProperties(GeofencePropertiesT &&value)
GetGeofenceResult & WithRequestId(RequestIdT &&value)
AWS_LOCATIONSERVICE_API GetGeofenceResult()=default
AWS_LOCATIONSERVICE_API GetGeofenceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetGeofenceResult & WithGeometry(GeometryT &&value)
GetGeofenceResult & WithCreateTime(CreateTimeT &&value)
GetGeofenceResult & AddGeofenceProperties(GeofencePropertiesKeyT &&key, GeofencePropertiesValueT &&value)
const Aws::Utils::DateTime & GetUpdateTime() const
GetGeofenceResult & WithUpdateTime(UpdateTimeT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue