AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
BatchGetDevicePositionResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/location/LocationService_EXPORTS.h>
10#include <aws/location/model/BatchGetDevicePositionError.h>
11#include <aws/location/model/DevicePosition.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace LocationService {
25namespace Model {
27 public:
28 AWS_LOCATIONSERVICE_API BatchGetDevicePositionResult() = default;
31
33
37 inline const Aws::Vector<BatchGetDevicePositionError>& GetErrors() const { return m_errors; }
38 template <typename ErrorsT = Aws::Vector<BatchGetDevicePositionError>>
39 void SetErrors(ErrorsT&& value) {
40 m_errorsHasBeenSet = true;
41 m_errors = std::forward<ErrorsT>(value);
42 }
43 template <typename ErrorsT = Aws::Vector<BatchGetDevicePositionError>>
45 SetErrors(std::forward<ErrorsT>(value));
46 return *this;
47 }
48 template <typename ErrorsT = BatchGetDevicePositionError>
50 m_errorsHasBeenSet = true;
51 m_errors.emplace_back(std::forward<ErrorsT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::Vector<DevicePosition>& GetDevicePositions() const { return m_devicePositions; }
62 template <typename DevicePositionsT = Aws::Vector<DevicePosition>>
63 void SetDevicePositions(DevicePositionsT&& value) {
64 m_devicePositionsHasBeenSet = true;
65 m_devicePositions = std::forward<DevicePositionsT>(value);
66 }
67 template <typename DevicePositionsT = Aws::Vector<DevicePosition>>
69 SetDevicePositions(std::forward<DevicePositionsT>(value));
70 return *this;
71 }
72 template <typename DevicePositionsT = DevicePosition>
74 m_devicePositionsHasBeenSet = true;
75 m_devicePositions.emplace_back(std::forward<DevicePositionsT>(value));
76 return *this;
77 }
79
81
82 inline const Aws::String& GetRequestId() const { return m_requestId; }
83 template <typename RequestIdT = Aws::String>
84 void SetRequestId(RequestIdT&& value) {
85 m_requestIdHasBeenSet = true;
86 m_requestId = std::forward<RequestIdT>(value);
87 }
88 template <typename RequestIdT = Aws::String>
90 SetRequestId(std::forward<RequestIdT>(value));
91 return *this;
92 }
94 private:
96
97 Aws::Vector<DevicePosition> m_devicePositions;
98
99 Aws::String m_requestId;
100 bool m_errorsHasBeenSet = false;
101 bool m_devicePositionsHasBeenSet = false;
102 bool m_requestIdHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace LocationService
107} // 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