AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetDeviceResult.h
1
6#pragma once
7#include <aws/braket/Braket_EXPORTS.h>
8#include <aws/braket/model/DeviceQueueInfo.h>
9#include <aws/braket/model/DeviceStatus.h>
10#include <aws/braket/model/DeviceType.h>
11#include <aws/core/http/HttpResponse.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace Braket {
27namespace Model {
29 public:
30 AWS_BRAKET_API GetDeviceResult() = default;
33
35
38 inline const Aws::String& GetDeviceArn() const { return m_deviceArn; }
39 template <typename DeviceArnT = Aws::String>
40 void SetDeviceArn(DeviceArnT&& value) {
41 m_deviceArnHasBeenSet = true;
42 m_deviceArn = std::forward<DeviceArnT>(value);
43 }
44 template <typename DeviceArnT = Aws::String>
45 GetDeviceResult& WithDeviceArn(DeviceArnT&& value) {
46 SetDeviceArn(std::forward<DeviceArnT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetDeviceName() const { return m_deviceName; }
56 template <typename DeviceNameT = Aws::String>
57 void SetDeviceName(DeviceNameT&& value) {
58 m_deviceNameHasBeenSet = true;
59 m_deviceName = std::forward<DeviceNameT>(value);
60 }
61 template <typename DeviceNameT = Aws::String>
62 GetDeviceResult& WithDeviceName(DeviceNameT&& value) {
63 SetDeviceName(std::forward<DeviceNameT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetProviderName() const { return m_providerName; }
73 template <typename ProviderNameT = Aws::String>
74 void SetProviderName(ProviderNameT&& value) {
75 m_providerNameHasBeenSet = true;
76 m_providerName = std::forward<ProviderNameT>(value);
77 }
78 template <typename ProviderNameT = Aws::String>
79 GetDeviceResult& WithProviderName(ProviderNameT&& value) {
80 SetProviderName(std::forward<ProviderNameT>(value));
81 return *this;
82 }
84
86
89 inline DeviceType GetDeviceType() const { return m_deviceType; }
90 inline void SetDeviceType(DeviceType value) {
91 m_deviceTypeHasBeenSet = true;
92 m_deviceType = value;
93 }
95 SetDeviceType(value);
96 return *this;
97 }
99
101
104 inline DeviceStatus GetDeviceStatus() const { return m_deviceStatus; }
105 inline void SetDeviceStatus(DeviceStatus value) {
106 m_deviceStatusHasBeenSet = true;
107 m_deviceStatus = value;
108 }
110 SetDeviceStatus(value);
111 return *this;
112 }
114
116
119 inline const Aws::String& GetDeviceCapabilities() const { return m_deviceCapabilities; }
120 template <typename DeviceCapabilitiesT = Aws::String>
121 void SetDeviceCapabilities(DeviceCapabilitiesT&& value) {
122 m_deviceCapabilitiesHasBeenSet = true;
123 m_deviceCapabilities = std::forward<DeviceCapabilitiesT>(value);
124 }
125 template <typename DeviceCapabilitiesT = Aws::String>
126 GetDeviceResult& WithDeviceCapabilities(DeviceCapabilitiesT&& value) {
127 SetDeviceCapabilities(std::forward<DeviceCapabilitiesT>(value));
128 return *this;
129 }
131
133
137 inline const Aws::Vector<DeviceQueueInfo>& GetDeviceQueueInfo() const { return m_deviceQueueInfo; }
138 template <typename DeviceQueueInfoT = Aws::Vector<DeviceQueueInfo>>
139 void SetDeviceQueueInfo(DeviceQueueInfoT&& value) {
140 m_deviceQueueInfoHasBeenSet = true;
141 m_deviceQueueInfo = std::forward<DeviceQueueInfoT>(value);
142 }
143 template <typename DeviceQueueInfoT = Aws::Vector<DeviceQueueInfo>>
144 GetDeviceResult& WithDeviceQueueInfo(DeviceQueueInfoT&& value) {
145 SetDeviceQueueInfo(std::forward<DeviceQueueInfoT>(value));
146 return *this;
147 }
148 template <typename DeviceQueueInfoT = DeviceQueueInfo>
149 GetDeviceResult& AddDeviceQueueInfo(DeviceQueueInfoT&& value) {
150 m_deviceQueueInfoHasBeenSet = true;
151 m_deviceQueueInfo.emplace_back(std::forward<DeviceQueueInfoT>(value));
152 return *this;
153 }
155
157
158 inline const Aws::String& GetRequestId() const { return m_requestId; }
159 template <typename RequestIdT = Aws::String>
160 void SetRequestId(RequestIdT&& value) {
161 m_requestIdHasBeenSet = true;
162 m_requestId = std::forward<RequestIdT>(value);
163 }
164 template <typename RequestIdT = Aws::String>
165 GetDeviceResult& WithRequestId(RequestIdT&& value) {
166 SetRequestId(std::forward<RequestIdT>(value));
167 return *this;
168 }
170 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
171
172 private:
173 Aws::String m_deviceArn;
174
175 Aws::String m_deviceName;
176
177 Aws::String m_providerName;
178
179 DeviceType m_deviceType{DeviceType::NOT_SET};
180
181 DeviceStatus m_deviceStatus{DeviceStatus::NOT_SET};
182
183 Aws::String m_deviceCapabilities;
184
185 Aws::Vector<DeviceQueueInfo> m_deviceQueueInfo;
186
187 Aws::String m_requestId;
188 Aws::Http::HttpResponseCode m_HttpResponseCode;
189 bool m_deviceArnHasBeenSet = false;
190 bool m_deviceNameHasBeenSet = false;
191 bool m_providerNameHasBeenSet = false;
192 bool m_deviceTypeHasBeenSet = false;
193 bool m_deviceStatusHasBeenSet = false;
194 bool m_deviceCapabilitiesHasBeenSet = false;
195 bool m_deviceQueueInfoHasBeenSet = false;
196 bool m_requestIdHasBeenSet = false;
197};
198
199} // namespace Model
200} // namespace Braket
201} // namespace Aws
void SetDeviceStatus(DeviceStatus value)
AWS_BRAKET_API GetDeviceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetDeviceName(DeviceNameT &&value)
void SetDeviceType(DeviceType value)
GetDeviceResult & WithProviderName(ProviderNameT &&value)
const Aws::String & GetDeviceCapabilities() const
void SetRequestId(RequestIdT &&value)
const Aws::String & GetProviderName() const
GetDeviceResult & WithDeviceName(DeviceNameT &&value)
const Aws::String & GetDeviceArn() const
const Aws::String & GetRequestId() const
AWS_BRAKET_API GetDeviceResult()=default
GetDeviceResult & AddDeviceQueueInfo(DeviceQueueInfoT &&value)
GetDeviceResult & WithDeviceCapabilities(DeviceCapabilitiesT &&value)
GetDeviceResult & WithDeviceQueueInfo(DeviceQueueInfoT &&value)
void SetDeviceArn(DeviceArnT &&value)
void SetDeviceQueueInfo(DeviceQueueInfoT &&value)
GetDeviceResult & WithRequestId(RequestIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetDeviceResult & WithDeviceStatus(DeviceStatus value)
GetDeviceResult & WithDeviceType(DeviceType value)
GetDeviceResult & WithDeviceArn(DeviceArnT &&value)
void SetProviderName(ProviderNameT &&value)
const Aws::String & GetDeviceName() const
const Aws::Vector< DeviceQueueInfo > & GetDeviceQueueInfo() const
AWS_BRAKET_API GetDeviceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetDeviceCapabilities(DeviceCapabilitiesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue