AWS SDK for C++

AWS SDK for C++ Version 1.11.632

Loading...
Searching...
No Matches
GetGeofenceResult.h
1
6#pragma once
7#include <aws/location/LocationService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/location/model/GeofenceGeometry.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSMap.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{
31 {
32 public:
33 AWS_LOCATIONSERVICE_API GetGeofenceResult() = default;
36
37
39
42 inline const Aws::String& GetGeofenceId() const { return m_geofenceId; }
43 template<typename GeofenceIdT = Aws::String>
44 void SetGeofenceId(GeofenceIdT&& value) { m_geofenceIdHasBeenSet = true; m_geofenceId = std::forward<GeofenceIdT>(value); }
45 template<typename GeofenceIdT = Aws::String>
46 GetGeofenceResult& WithGeofenceId(GeofenceIdT&& value) { SetGeofenceId(std::forward<GeofenceIdT>(value)); return *this;}
48
50
54 inline const GeofenceGeometry& GetGeometry() const { return m_geometry; }
55 template<typename GeometryT = GeofenceGeometry>
56 void SetGeometry(GeometryT&& value) { m_geometryHasBeenSet = true; m_geometry = std::forward<GeometryT>(value); }
57 template<typename GeometryT = GeofenceGeometry>
58 GetGeofenceResult& WithGeometry(GeometryT&& value) { SetGeometry(std::forward<GeometryT>(value)); return *this;}
60
62
72 inline const Aws::String& GetStatus() const { return m_status; }
73 template<typename StatusT = Aws::String>
74 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
75 template<typename StatusT = Aws::String>
76 GetGeofenceResult& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
78
80
85 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
86 template<typename CreateTimeT = Aws::Utils::DateTime>
87 void SetCreateTime(CreateTimeT&& value) { m_createTimeHasBeenSet = true; m_createTime = std::forward<CreateTimeT>(value); }
88 template<typename CreateTimeT = Aws::Utils::DateTime>
89 GetGeofenceResult& WithCreateTime(CreateTimeT&& value) { SetCreateTime(std::forward<CreateTimeT>(value)); return *this;}
91
93
98 inline const Aws::Utils::DateTime& GetUpdateTime() const { return m_updateTime; }
99 template<typename UpdateTimeT = Aws::Utils::DateTime>
100 void SetUpdateTime(UpdateTimeT&& value) { m_updateTimeHasBeenSet = true; m_updateTime = std::forward<UpdateTimeT>(value); }
101 template<typename UpdateTimeT = Aws::Utils::DateTime>
102 GetGeofenceResult& WithUpdateTime(UpdateTimeT&& value) { SetUpdateTime(std::forward<UpdateTimeT>(value)); return *this;}
104
106
111 inline const Aws::Map<Aws::String, Aws::String>& GetGeofenceProperties() const { return m_geofenceProperties; }
112 template<typename GeofencePropertiesT = Aws::Map<Aws::String, Aws::String>>
113 void SetGeofenceProperties(GeofencePropertiesT&& value) { m_geofencePropertiesHasBeenSet = true; m_geofenceProperties = std::forward<GeofencePropertiesT>(value); }
114 template<typename GeofencePropertiesT = Aws::Map<Aws::String, Aws::String>>
115 GetGeofenceResult& WithGeofenceProperties(GeofencePropertiesT&& value) { SetGeofenceProperties(std::forward<GeofencePropertiesT>(value)); return *this;}
116 template<typename GeofencePropertiesKeyT = Aws::String, typename GeofencePropertiesValueT = Aws::String>
117 GetGeofenceResult& AddGeofenceProperties(GeofencePropertiesKeyT&& key, GeofencePropertiesValueT&& value) {
118 m_geofencePropertiesHasBeenSet = true; m_geofenceProperties.emplace(std::forward<GeofencePropertiesKeyT>(key), std::forward<GeofencePropertiesValueT>(value)); return *this;
119 }
121
123
124 inline const Aws::String& GetRequestId() const { return m_requestId; }
125 template<typename RequestIdT = Aws::String>
126 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
127 template<typename RequestIdT = Aws::String>
128 GetGeofenceResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
130 private:
131
132 Aws::String m_geofenceId;
133 bool m_geofenceIdHasBeenSet = false;
134
135 GeofenceGeometry m_geometry;
136 bool m_geometryHasBeenSet = false;
137
138 Aws::String m_status;
139 bool m_statusHasBeenSet = false;
140
141 Aws::Utils::DateTime m_createTime{};
142 bool m_createTimeHasBeenSet = false;
143
144 Aws::Utils::DateTime m_updateTime{};
145 bool m_updateTimeHasBeenSet = false;
146
147 Aws::Map<Aws::String, Aws::String> m_geofenceProperties;
148 bool m_geofencePropertiesHasBeenSet = false;
149
150 Aws::String m_requestId;
151 bool m_requestIdHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace LocationService
156} // 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