AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
BatchPutGeofenceError.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/location/LocationService_EXPORTS.h>
9#include <aws/location/model/BatchItemError.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace LocationService {
21namespace Model {
22
30 public:
31 AWS_LOCATIONSERVICE_API BatchPutGeofenceError() = default;
32 AWS_LOCATIONSERVICE_API BatchPutGeofenceError(Aws::Utils::Json::JsonView jsonValue);
33 AWS_LOCATIONSERVICE_API BatchPutGeofenceError& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetGeofenceId() const { return m_geofenceId; }
41 inline bool GeofenceIdHasBeenSet() const { return m_geofenceIdHasBeenSet; }
42 template <typename GeofenceIdT = Aws::String>
43 void SetGeofenceId(GeofenceIdT&& value) {
44 m_geofenceIdHasBeenSet = true;
45 m_geofenceId = std::forward<GeofenceIdT>(value);
46 }
47 template <typename GeofenceIdT = Aws::String>
48 BatchPutGeofenceError& WithGeofenceId(GeofenceIdT&& value) {
49 SetGeofenceId(std::forward<GeofenceIdT>(value));
50 return *this;
51 }
53
55
58 inline const BatchItemError& GetError() const { return m_error; }
59 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
60 template <typename ErrorT = BatchItemError>
61 void SetError(ErrorT&& value) {
62 m_errorHasBeenSet = true;
63 m_error = std::forward<ErrorT>(value);
64 }
65 template <typename ErrorT = BatchItemError>
67 SetError(std::forward<ErrorT>(value));
68 return *this;
69 }
71 private:
72 Aws::String m_geofenceId;
73
74 BatchItemError m_error;
75 bool m_geofenceIdHasBeenSet = false;
76 bool m_errorHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace LocationService
81} // namespace Aws
AWS_LOCATIONSERVICE_API BatchPutGeofenceError()=default
AWS_LOCATIONSERVICE_API BatchPutGeofenceError(Aws::Utils::Json::JsonView jsonValue)
BatchPutGeofenceError & WithError(ErrorT &&value)
AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LOCATIONSERVICE_API BatchPutGeofenceError & operator=(Aws::Utils::Json::JsonView jsonValue)
BatchPutGeofenceError & WithGeofenceId(GeofenceIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue