AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
BatchGetDevicePositionResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/location/LocationService_EXPORTS.h>
11#include <aws/location/model/BatchGetDevicePositionError.h>
12#include <aws/location/model/DevicePosition.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace LocationService {
26namespace Model {
28 public:
29 AWS_LOCATIONSERVICE_API BatchGetDevicePositionResult() = default;
32
34
38 inline const Aws::Vector<BatchGetDevicePositionError>& GetErrors() const { return m_errors; }
39 template <typename ErrorsT = Aws::Vector<BatchGetDevicePositionError>>
40 void SetErrors(ErrorsT&& value) {
41 m_errorsHasBeenSet = true;
42 m_errors = std::forward<ErrorsT>(value);
43 }
44 template <typename ErrorsT = Aws::Vector<BatchGetDevicePositionError>>
46 SetErrors(std::forward<ErrorsT>(value));
47 return *this;
48 }
49 template <typename ErrorsT = BatchGetDevicePositionError>
51 m_errorsHasBeenSet = true;
52 m_errors.emplace_back(std::forward<ErrorsT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::Vector<DevicePosition>& GetDevicePositions() const { return m_devicePositions; }
63 template <typename DevicePositionsT = Aws::Vector<DevicePosition>>
64 void SetDevicePositions(DevicePositionsT&& value) {
65 m_devicePositionsHasBeenSet = true;
66 m_devicePositions = std::forward<DevicePositionsT>(value);
67 }
68 template <typename DevicePositionsT = Aws::Vector<DevicePosition>>
70 SetDevicePositions(std::forward<DevicePositionsT>(value));
71 return *this;
72 }
73 template <typename DevicePositionsT = DevicePosition>
75 m_devicePositionsHasBeenSet = true;
76 m_devicePositions.emplace_back(std::forward<DevicePositionsT>(value));
77 return *this;
78 }
80
82
83 inline const Aws::String& GetRequestId() const { return m_requestId; }
84 template <typename RequestIdT = Aws::String>
85 void SetRequestId(RequestIdT&& value) {
86 m_requestIdHasBeenSet = true;
87 m_requestId = std::forward<RequestIdT>(value);
88 }
89 template <typename RequestIdT = Aws::String>
91 SetRequestId(std::forward<RequestIdT>(value));
92 return *this;
93 }
95 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
96
97 private:
99
100 Aws::Vector<DevicePosition> m_devicePositions;
101
102 Aws::String m_requestId;
103 Aws::Http::HttpResponseCode m_HttpResponseCode;
104 bool m_errorsHasBeenSet = false;
105 bool m_devicePositionsHasBeenSet = false;
106 bool m_requestIdHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace LocationService
111} // 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