AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
BatchEvaluateGeofencesError.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/location/LocationService_EXPORTS.h>
10#include <aws/location/model/BatchItemError.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace LocationService {
22namespace Model {
23
32 public:
33 AWS_LOCATIONSERVICE_API BatchEvaluateGeofencesError() = default;
34 AWS_LOCATIONSERVICE_API BatchEvaluateGeofencesError(Aws::Utils::Json::JsonView jsonValue);
36 AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetDeviceId() const { return m_deviceId; }
43 inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
44 template <typename DeviceIdT = Aws::String>
45 void SetDeviceId(DeviceIdT&& value) {
46 m_deviceIdHasBeenSet = true;
47 m_deviceId = std::forward<DeviceIdT>(value);
48 }
49 template <typename DeviceIdT = Aws::String>
51 SetDeviceId(std::forward<DeviceIdT>(value));
52 return *this;
53 }
55
57
62 inline const Aws::Utils::DateTime& GetSampleTime() const { return m_sampleTime; }
63 inline bool SampleTimeHasBeenSet() const { return m_sampleTimeHasBeenSet; }
64 template <typename SampleTimeT = Aws::Utils::DateTime>
65 void SetSampleTime(SampleTimeT&& value) {
66 m_sampleTimeHasBeenSet = true;
67 m_sampleTime = std::forward<SampleTimeT>(value);
68 }
69 template <typename SampleTimeT = Aws::Utils::DateTime>
71 SetSampleTime(std::forward<SampleTimeT>(value));
72 return *this;
73 }
75
77
80 inline const BatchItemError& GetError() const { return m_error; }
81 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
82 template <typename ErrorT = BatchItemError>
83 void SetError(ErrorT&& value) {
84 m_errorHasBeenSet = true;
85 m_error = std::forward<ErrorT>(value);
86 }
87 template <typename ErrorT = BatchItemError>
89 SetError(std::forward<ErrorT>(value));
90 return *this;
91 }
93 private:
94 Aws::String m_deviceId;
95
96 Aws::Utils::DateTime m_sampleTime{};
97
98 BatchItemError m_error;
99 bool m_deviceIdHasBeenSet = false;
100 bool m_sampleTimeHasBeenSet = false;
101 bool m_errorHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace LocationService
106} // namespace Aws
BatchEvaluateGeofencesError & WithSampleTime(SampleTimeT &&value)
BatchEvaluateGeofencesError & WithError(ErrorT &&value)
AWS_LOCATIONSERVICE_API BatchEvaluateGeofencesError & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LOCATIONSERVICE_API BatchEvaluateGeofencesError()=default
AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LOCATIONSERVICE_API BatchEvaluateGeofencesError(Aws::Utils::Json::JsonView jsonValue)
BatchEvaluateGeofencesError & WithDeviceId(DeviceIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue