AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
GetGeofenceResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/location/LocationService_EXPORTS.h>
12#include <aws/location/model/GeofenceGeometry.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 GetGeofenceResult() = default;
32
34
37 inline const Aws::String& GetGeofenceId() const { return m_geofenceId; }
38 template <typename GeofenceIdT = Aws::String>
39 void SetGeofenceId(GeofenceIdT&& value) {
40 m_geofenceIdHasBeenSet = true;
41 m_geofenceId = std::forward<GeofenceIdT>(value);
42 }
43 template <typename GeofenceIdT = Aws::String>
44 GetGeofenceResult& WithGeofenceId(GeofenceIdT&& value) {
45 SetGeofenceId(std::forward<GeofenceIdT>(value));
46 return *this;
47 }
49
51
55 inline const GeofenceGeometry& GetGeometry() const { return m_geometry; }
56 template <typename GeometryT = GeofenceGeometry>
57 void SetGeometry(GeometryT&& value) {
58 m_geometryHasBeenSet = true;
59 m_geometry = std::forward<GeometryT>(value);
60 }
61 template <typename GeometryT = GeofenceGeometry>
62 GetGeofenceResult& WithGeometry(GeometryT&& value) {
63 SetGeometry(std::forward<GeometryT>(value));
64 return *this;
65 }
67
69
79 inline const Aws::String& GetStatus() const { return m_status; }
80 template <typename StatusT = Aws::String>
81 void SetStatus(StatusT&& value) {
82 m_statusHasBeenSet = true;
83 m_status = std::forward<StatusT>(value);
84 }
85 template <typename StatusT = Aws::String>
86 GetGeofenceResult& WithStatus(StatusT&& value) {
87 SetStatus(std::forward<StatusT>(value));
88 return *this;
89 }
91
93
98 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
99 template <typename CreateTimeT = Aws::Utils::DateTime>
100 void SetCreateTime(CreateTimeT&& value) {
101 m_createTimeHasBeenSet = true;
102 m_createTime = std::forward<CreateTimeT>(value);
103 }
104 template <typename CreateTimeT = Aws::Utils::DateTime>
105 GetGeofenceResult& WithCreateTime(CreateTimeT&& value) {
106 SetCreateTime(std::forward<CreateTimeT>(value));
107 return *this;
108 }
110
112
117 inline const Aws::Utils::DateTime& GetUpdateTime() const { return m_updateTime; }
118 template <typename UpdateTimeT = Aws::Utils::DateTime>
119 void SetUpdateTime(UpdateTimeT&& value) {
120 m_updateTimeHasBeenSet = true;
121 m_updateTime = std::forward<UpdateTimeT>(value);
122 }
123 template <typename UpdateTimeT = Aws::Utils::DateTime>
124 GetGeofenceResult& WithUpdateTime(UpdateTimeT&& value) {
125 SetUpdateTime(std::forward<UpdateTimeT>(value));
126 return *this;
127 }
129
131
136 inline const Aws::Map<Aws::String, Aws::String>& GetGeofenceProperties() const { return m_geofenceProperties; }
137 template <typename GeofencePropertiesT = Aws::Map<Aws::String, Aws::String>>
138 void SetGeofenceProperties(GeofencePropertiesT&& value) {
139 m_geofencePropertiesHasBeenSet = true;
140 m_geofenceProperties = std::forward<GeofencePropertiesT>(value);
141 }
142 template <typename GeofencePropertiesT = Aws::Map<Aws::String, Aws::String>>
143 GetGeofenceResult& WithGeofenceProperties(GeofencePropertiesT&& value) {
144 SetGeofenceProperties(std::forward<GeofencePropertiesT>(value));
145 return *this;
146 }
147 template <typename GeofencePropertiesKeyT = Aws::String, typename GeofencePropertiesValueT = Aws::String>
148 GetGeofenceResult& AddGeofenceProperties(GeofencePropertiesKeyT&& key, GeofencePropertiesValueT&& value) {
149 m_geofencePropertiesHasBeenSet = true;
150 m_geofenceProperties.emplace(std::forward<GeofencePropertiesKeyT>(key), std::forward<GeofencePropertiesValueT>(value));
151 return *this;
152 }
154
156
157 inline const Aws::String& GetRequestId() const { return m_requestId; }
158 template <typename RequestIdT = Aws::String>
159 void SetRequestId(RequestIdT&& value) {
160 m_requestIdHasBeenSet = true;
161 m_requestId = std::forward<RequestIdT>(value);
162 }
163 template <typename RequestIdT = Aws::String>
164 GetGeofenceResult& WithRequestId(RequestIdT&& value) {
165 SetRequestId(std::forward<RequestIdT>(value));
166 return *this;
167 }
169 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
170
171 private:
172 Aws::String m_geofenceId;
173
174 GeofenceGeometry m_geometry;
175
176 Aws::String m_status;
177
178 Aws::Utils::DateTime m_createTime{};
179
180 Aws::Utils::DateTime m_updateTime{};
181
182 Aws::Map<Aws::String, Aws::String> m_geofenceProperties;
183
184 Aws::String m_requestId;
185 Aws::Http::HttpResponseCode m_HttpResponseCode;
186 bool m_geofenceIdHasBeenSet = false;
187 bool m_geometryHasBeenSet = false;
188 bool m_statusHasBeenSet = false;
189 bool m_createTimeHasBeenSet = false;
190 bool m_updateTimeHasBeenSet = false;
191 bool m_geofencePropertiesHasBeenSet = false;
192 bool m_requestIdHasBeenSet = false;
193};
194
195} // namespace Model
196} // namespace LocationService
197} // 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
Aws::Http::HttpResponseCode GetHttpResponseCode() 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