AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
BatchGetDevicePositionResult.h
1
6#pragma once
7#include <aws/location/LocationService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/location/model/BatchGetDevicePositionError.h>
11#include <aws/location/model/DevicePosition.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 BatchGetDevicePositionResult() = default;
36
37
39
43 inline const Aws::Vector<BatchGetDevicePositionError>& GetErrors() const { return m_errors; }
44 template<typename ErrorsT = Aws::Vector<BatchGetDevicePositionError>>
45 void SetErrors(ErrorsT&& value) { m_errorsHasBeenSet = true; m_errors = std::forward<ErrorsT>(value); }
46 template<typename ErrorsT = Aws::Vector<BatchGetDevicePositionError>>
47 BatchGetDevicePositionResult& WithErrors(ErrorsT&& value) { SetErrors(std::forward<ErrorsT>(value)); return *this;}
48 template<typename ErrorsT = BatchGetDevicePositionError>
49 BatchGetDevicePositionResult& AddErrors(ErrorsT&& value) { m_errorsHasBeenSet = true; m_errors.emplace_back(std::forward<ErrorsT>(value)); return *this; }
51
53
57 inline const Aws::Vector<DevicePosition>& GetDevicePositions() const { return m_devicePositions; }
58 template<typename DevicePositionsT = Aws::Vector<DevicePosition>>
59 void SetDevicePositions(DevicePositionsT&& value) { m_devicePositionsHasBeenSet = true; m_devicePositions = std::forward<DevicePositionsT>(value); }
60 template<typename DevicePositionsT = Aws::Vector<DevicePosition>>
61 BatchGetDevicePositionResult& WithDevicePositions(DevicePositionsT&& value) { SetDevicePositions(std::forward<DevicePositionsT>(value)); return *this;}
62 template<typename DevicePositionsT = DevicePosition>
63 BatchGetDevicePositionResult& AddDevicePositions(DevicePositionsT&& value) { m_devicePositionsHasBeenSet = true; m_devicePositions.emplace_back(std::forward<DevicePositionsT>(value)); return *this; }
65
67
68 inline const Aws::String& GetRequestId() const { return m_requestId; }
69 template<typename RequestIdT = Aws::String>
70 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
71 template<typename RequestIdT = Aws::String>
72 BatchGetDevicePositionResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
74 private:
75
77 bool m_errorsHasBeenSet = false;
78
79 Aws::Vector<DevicePosition> m_devicePositions;
80 bool m_devicePositionsHasBeenSet = false;
81
82 Aws::String m_requestId;
83 bool m_requestIdHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace LocationService
88} // namespace Aws
BatchGetDevicePositionResult & WithRequestId(RequestIdT &&value)
AWS_LOCATIONSERVICE_API BatchGetDevicePositionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchGetDevicePositionResult & WithErrors(ErrorsT &&value)
BatchGetDevicePositionResult & AddErrors(ErrorsT &&value)
AWS_LOCATIONSERVICE_API BatchGetDevicePositionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchGetDevicePositionResult & AddDevicePositions(DevicePositionsT &&value)
const Aws::Vector< DevicePosition > & GetDevicePositions() const
AWS_LOCATIONSERVICE_API BatchGetDevicePositionResult()=default
BatchGetDevicePositionResult & WithDevicePositions(DevicePositionsT &&value)
const Aws::Vector< BatchGetDevicePositionError > & GetErrors() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue