AWS SDK for C++

AWS SDK for C++ Version 1.11.609

Loading...
Searching...
No Matches
BatchUpdateDevicePositionError.h
1
6#pragma once
7#include <aws/location/LocationService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/location/model/BatchItemError.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace LocationService
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_LOCATIONSERVICE_API BatchUpdateDevicePositionError() = default;
40 AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetDeviceId() const { return m_deviceId; }
48 inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
49 template<typename DeviceIdT = Aws::String>
50 void SetDeviceId(DeviceIdT&& value) { m_deviceIdHasBeenSet = true; m_deviceId = std::forward<DeviceIdT>(value); }
51 template<typename DeviceIdT = Aws::String>
52 BatchUpdateDevicePositionError& WithDeviceId(DeviceIdT&& value) { SetDeviceId(std::forward<DeviceIdT>(value)); return *this;}
54
56
61 inline const Aws::Utils::DateTime& GetSampleTime() const { return m_sampleTime; }
62 inline bool SampleTimeHasBeenSet() const { return m_sampleTimeHasBeenSet; }
63 template<typename SampleTimeT = Aws::Utils::DateTime>
64 void SetSampleTime(SampleTimeT&& value) { m_sampleTimeHasBeenSet = true; m_sampleTime = std::forward<SampleTimeT>(value); }
65 template<typename SampleTimeT = Aws::Utils::DateTime>
66 BatchUpdateDevicePositionError& WithSampleTime(SampleTimeT&& value) { SetSampleTime(std::forward<SampleTimeT>(value)); return *this;}
68
70
74 inline const BatchItemError& GetError() const { return m_error; }
75 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
76 template<typename ErrorT = BatchItemError>
77 void SetError(ErrorT&& value) { m_errorHasBeenSet = true; m_error = std::forward<ErrorT>(value); }
78 template<typename ErrorT = BatchItemError>
79 BatchUpdateDevicePositionError& WithError(ErrorT&& value) { SetError(std::forward<ErrorT>(value)); return *this;}
81 private:
82
83 Aws::String m_deviceId;
84 bool m_deviceIdHasBeenSet = false;
85
86 Aws::Utils::DateTime m_sampleTime{};
87 bool m_sampleTimeHasBeenSet = false;
88
89 BatchItemError m_error;
90 bool m_errorHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace LocationService
95} // namespace Aws
BatchUpdateDevicePositionError & WithDeviceId(DeviceIdT &&value)
AWS_LOCATIONSERVICE_API BatchUpdateDevicePositionError(Aws::Utils::Json::JsonView jsonValue)
BatchUpdateDevicePositionError & WithSampleTime(SampleTimeT &&value)
AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LOCATIONSERVICE_API BatchUpdateDevicePositionError()=default
AWS_LOCATIONSERVICE_API BatchUpdateDevicePositionError & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue