AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.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 Braket {
26namespace Model {
28 public:
29 AWS_BRAKET_API GetDeviceResult() = default;
32
34
37 inline const Aws::String& GetDeviceArn() const { return m_deviceArn; }
38 template <typename DeviceArnT = Aws::String>
39 void SetDeviceArn(DeviceArnT&& value) {
40 m_deviceArnHasBeenSet = true;
41 m_deviceArn = std::forward<DeviceArnT>(value);
42 }
43 template <typename DeviceArnT = Aws::String>
44 GetDeviceResult& WithDeviceArn(DeviceArnT&& value) {
45 SetDeviceArn(std::forward<DeviceArnT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetDeviceName() const { return m_deviceName; }
55 template <typename DeviceNameT = Aws::String>
56 void SetDeviceName(DeviceNameT&& value) {
57 m_deviceNameHasBeenSet = true;
58 m_deviceName = std::forward<DeviceNameT>(value);
59 }
60 template <typename DeviceNameT = Aws::String>
61 GetDeviceResult& WithDeviceName(DeviceNameT&& value) {
62 SetDeviceName(std::forward<DeviceNameT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetProviderName() const { return m_providerName; }
72 template <typename ProviderNameT = Aws::String>
73 void SetProviderName(ProviderNameT&& value) {
74 m_providerNameHasBeenSet = true;
75 m_providerName = std::forward<ProviderNameT>(value);
76 }
77 template <typename ProviderNameT = Aws::String>
78 GetDeviceResult& WithProviderName(ProviderNameT&& value) {
79 SetProviderName(std::forward<ProviderNameT>(value));
80 return *this;
81 }
83
85
88 inline DeviceType GetDeviceType() const { return m_deviceType; }
89 inline void SetDeviceType(DeviceType value) {
90 m_deviceTypeHasBeenSet = true;
91 m_deviceType = value;
92 }
94 SetDeviceType(value);
95 return *this;
96 }
98
100
103 inline DeviceStatus GetDeviceStatus() const { return m_deviceStatus; }
104 inline void SetDeviceStatus(DeviceStatus value) {
105 m_deviceStatusHasBeenSet = true;
106 m_deviceStatus = value;
107 }
109 SetDeviceStatus(value);
110 return *this;
111 }
113
115
118 inline const Aws::String& GetDeviceCapabilities() const { return m_deviceCapabilities; }
119 template <typename DeviceCapabilitiesT = Aws::String>
120 void SetDeviceCapabilities(DeviceCapabilitiesT&& value) {
121 m_deviceCapabilitiesHasBeenSet = true;
122 m_deviceCapabilities = std::forward<DeviceCapabilitiesT>(value);
123 }
124 template <typename DeviceCapabilitiesT = Aws::String>
125 GetDeviceResult& WithDeviceCapabilities(DeviceCapabilitiesT&& value) {
126 SetDeviceCapabilities(std::forward<DeviceCapabilitiesT>(value));
127 return *this;
128 }
130
132
136 inline const Aws::Vector<DeviceQueueInfo>& GetDeviceQueueInfo() const { return m_deviceQueueInfo; }
137 template <typename DeviceQueueInfoT = Aws::Vector<DeviceQueueInfo>>
138 void SetDeviceQueueInfo(DeviceQueueInfoT&& value) {
139 m_deviceQueueInfoHasBeenSet = true;
140 m_deviceQueueInfo = std::forward<DeviceQueueInfoT>(value);
141 }
142 template <typename DeviceQueueInfoT = Aws::Vector<DeviceQueueInfo>>
143 GetDeviceResult& WithDeviceQueueInfo(DeviceQueueInfoT&& value) {
144 SetDeviceQueueInfo(std::forward<DeviceQueueInfoT>(value));
145 return *this;
146 }
147 template <typename DeviceQueueInfoT = DeviceQueueInfo>
148 GetDeviceResult& AddDeviceQueueInfo(DeviceQueueInfoT&& value) {
149 m_deviceQueueInfoHasBeenSet = true;
150 m_deviceQueueInfo.emplace_back(std::forward<DeviceQueueInfoT>(value));
151 return *this;
152 }
154
156
157 inline const Aws::String& GetRequestId() const { return m_requestId; }
158 template <typename RequestIdT = Aws::String>
159 void SetRequestId(RequestIdT&& value) {
160 m_requestIdHasBeenSet = true;
161 m_requestId = std::forward<RequestIdT>(value);
162 }
163 template <typename RequestIdT = Aws::String>
164 GetDeviceResult& WithRequestId(RequestIdT&& value) {
165 SetRequestId(std::forward<RequestIdT>(value));
166 return *this;
167 }
169 private:
170 Aws::String m_deviceArn;
171
172 Aws::String m_deviceName;
173
174 Aws::String m_providerName;
175
176 DeviceType m_deviceType{DeviceType::NOT_SET};
177
178 DeviceStatus m_deviceStatus{DeviceStatus::NOT_SET};
179
180 Aws::String m_deviceCapabilities;
181
182 Aws::Vector<DeviceQueueInfo> m_deviceQueueInfo;
183
184 Aws::String m_requestId;
185 bool m_deviceArnHasBeenSet = false;
186 bool m_deviceNameHasBeenSet = false;
187 bool m_providerNameHasBeenSet = false;
188 bool m_deviceTypeHasBeenSet = false;
189 bool m_deviceStatusHasBeenSet = false;
190 bool m_deviceCapabilitiesHasBeenSet = false;
191 bool m_deviceQueueInfoHasBeenSet = false;
192 bool m_requestIdHasBeenSet = false;
193};
194
195} // namespace Model
196} // namespace Braket
197} // 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)
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