AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDeviceId(const Aws::String& value) { m_deviceIdHasBeenSet = true; m_deviceId = value; }
50 inline void SetDeviceId(Aws::String&& value) { m_deviceIdHasBeenSet = true; m_deviceId = std::move(value); }
51 inline void SetDeviceId(const char* value) { m_deviceIdHasBeenSet = true; m_deviceId.assign(value); }
52 inline BatchUpdateDevicePositionError& WithDeviceId(const Aws::String& value) { SetDeviceId(value); return *this;}
53 inline BatchUpdateDevicePositionError& WithDeviceId(Aws::String&& value) { SetDeviceId(std::move(value)); return *this;}
54 inline BatchUpdateDevicePositionError& WithDeviceId(const char* value) { SetDeviceId(value); return *this;}
56
58
63 inline const Aws::Utils::DateTime& GetSampleTime() const{ return m_sampleTime; }
64 inline bool SampleTimeHasBeenSet() const { return m_sampleTimeHasBeenSet; }
65 inline void SetSampleTime(const Aws::Utils::DateTime& value) { m_sampleTimeHasBeenSet = true; m_sampleTime = value; }
66 inline void SetSampleTime(Aws::Utils::DateTime&& value) { m_sampleTimeHasBeenSet = true; m_sampleTime = std::move(value); }
68 inline BatchUpdateDevicePositionError& WithSampleTime(Aws::Utils::DateTime&& value) { SetSampleTime(std::move(value)); return *this;}
70
72
76 inline const BatchItemError& GetError() const{ return m_error; }
77 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
78 inline void SetError(const BatchItemError& value) { m_errorHasBeenSet = true; m_error = value; }
79 inline void SetError(BatchItemError&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
80 inline BatchUpdateDevicePositionError& WithError(const BatchItemError& value) { SetError(value); return *this;}
81 inline BatchUpdateDevicePositionError& WithError(BatchItemError&& value) { SetError(std::move(value)); return *this;}
83 private:
84
85 Aws::String m_deviceId;
86 bool m_deviceIdHasBeenSet = false;
87
88 Aws::Utils::DateTime m_sampleTime;
89 bool m_sampleTimeHasBeenSet = false;
90
91 BatchItemError m_error;
92 bool m_errorHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace LocationService
97} // namespace Aws
BatchUpdateDevicePositionError & WithSampleTime(Aws::Utils::DateTime &&value)
AWS_LOCATIONSERVICE_API BatchUpdateDevicePositionError(Aws::Utils::Json::JsonView jsonValue)
BatchUpdateDevicePositionError & WithDeviceId(const Aws::String &value)
BatchUpdateDevicePositionError & WithError(const BatchItemError &value)
AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
BatchUpdateDevicePositionError & WithSampleTime(const Aws::Utils::DateTime &value)
BatchUpdateDevicePositionError & WithError(BatchItemError &&value)
BatchUpdateDevicePositionError & WithDeviceId(Aws::String &&value)
BatchUpdateDevicePositionError & WithDeviceId(const char *value)
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