AWS SDK for C++

AWS SDK for C++ Version 1.11.782

Loading...
Searching...
No Matches
ProvisionDeviceResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/Array.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/panorama/Panorama_EXPORTS.h>
11#include <aws/panorama/model/DeviceStatus.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 Panorama {
25namespace Model {
27 public:
28 AWS_PANORAMA_API ProvisionDeviceResult() = default;
31
33
36 inline const Aws::String& GetArn() const { return m_arn; }
37 template <typename ArnT = Aws::String>
38 void SetArn(ArnT&& value) {
39 m_arnHasBeenSet = true;
40 m_arn = std::forward<ArnT>(value);
41 }
42 template <typename ArnT = Aws::String>
44 SetArn(std::forward<ArnT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::Utils::ByteBuffer& GetCertificates() const { return m_certificates; }
54 template <typename CertificatesT = Aws::Utils::ByteBuffer>
55 void SetCertificates(CertificatesT&& value) {
56 m_certificatesHasBeenSet = true;
57 m_certificates = std::forward<CertificatesT>(value);
58 }
59 template <typename CertificatesT = Aws::Utils::ByteBuffer>
60 ProvisionDeviceResult& WithCertificates(CertificatesT&& value) {
61 SetCertificates(std::forward<CertificatesT>(value));
62 return *this;
63 }
65
67
70 inline const Aws::String& GetDeviceId() const { return m_deviceId; }
71 template <typename DeviceIdT = Aws::String>
72 void SetDeviceId(DeviceIdT&& value) {
73 m_deviceIdHasBeenSet = true;
74 m_deviceId = std::forward<DeviceIdT>(value);
75 }
76 template <typename DeviceIdT = Aws::String>
77 ProvisionDeviceResult& WithDeviceId(DeviceIdT&& value) {
78 SetDeviceId(std::forward<DeviceIdT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::String& GetIotThingName() const { return m_iotThingName; }
88 template <typename IotThingNameT = Aws::String>
89 void SetIotThingName(IotThingNameT&& value) {
90 m_iotThingNameHasBeenSet = true;
91 m_iotThingName = std::forward<IotThingNameT>(value);
92 }
93 template <typename IotThingNameT = Aws::String>
94 ProvisionDeviceResult& WithIotThingName(IotThingNameT&& value) {
95 SetIotThingName(std::forward<IotThingNameT>(value));
96 return *this;
97 }
99
101
104 inline DeviceStatus GetStatus() const { return m_status; }
105 inline void SetStatus(DeviceStatus value) {
106 m_statusHasBeenSet = true;
107 m_status = value;
108 }
110 SetStatus(value);
111 return *this;
112 }
114
116
117 inline const Aws::String& GetRequestId() const { return m_requestId; }
118 template <typename RequestIdT = Aws::String>
119 void SetRequestId(RequestIdT&& value) {
120 m_requestIdHasBeenSet = true;
121 m_requestId = std::forward<RequestIdT>(value);
122 }
123 template <typename RequestIdT = Aws::String>
125 SetRequestId(std::forward<RequestIdT>(value));
126 return *this;
127 }
129 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
130
131 private:
132 Aws::String m_arn;
133
134 Aws::Utils::ByteBuffer m_certificates{};
135
136 Aws::String m_deviceId;
137
138 Aws::String m_iotThingName;
139
141
142 Aws::String m_requestId;
143 Aws::Http::HttpResponseCode m_HttpResponseCode;
144 bool m_arnHasBeenSet = false;
145 bool m_certificatesHasBeenSet = false;
146 bool m_deviceIdHasBeenSet = false;
147 bool m_iotThingNameHasBeenSet = false;
148 bool m_statusHasBeenSet = false;
149 bool m_requestIdHasBeenSet = false;
150};
151
152} // namespace Model
153} // namespace Panorama
154} // namespace Aws
ProvisionDeviceResult & WithStatus(DeviceStatus value)
AWS_PANORAMA_API ProvisionDeviceResult()=default
ProvisionDeviceResult & WithRequestId(RequestIdT &&value)
AWS_PANORAMA_API ProvisionDeviceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::ByteBuffer & GetCertificates() const
AWS_PANORAMA_API ProvisionDeviceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
ProvisionDeviceResult & WithArn(ArnT &&value)
ProvisionDeviceResult & WithIotThingName(IotThingNameT &&value)
ProvisionDeviceResult & WithDeviceId(DeviceIdT &&value)
ProvisionDeviceResult & WithCertificates(CertificatesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue