AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetThingShadowResult.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/core/utils/stream/ResponseStream.h>
11#include <aws/iot-data/IoTDataPlane_EXPORTS.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace IoTDataPlane {
20namespace Model {
27 public:
28 AWS_IOTDATAPLANE_API GetThingShadowResult() = default;
29 AWS_IOTDATAPLANE_API GetThingShadowResult(GetThingShadowResult&&) = default;
30 AWS_IOTDATAPLANE_API GetThingShadowResult& operator=(GetThingShadowResult&&) = default;
31 // we delete these because Microsoft doesn't handle move generation correctly
32 // and we therefore don't trust them to get it right here either.
35
38
40
43 inline Aws::IOStream& GetPayload() const { return m_payload.GetUnderlyingStream(); }
44 inline void ReplaceBody(Aws::IOStream* body) { m_payload = Aws::Utils::Stream::ResponseStream(body); }
45
47
49
50 inline const Aws::String& GetRequestId() const { return m_requestId; }
51 template <typename RequestIdT = Aws::String>
52 void SetRequestId(RequestIdT&& value) {
53 m_requestIdHasBeenSet = true;
54 m_requestId = std::forward<RequestIdT>(value);
55 }
56 template <typename RequestIdT = Aws::String>
57 GetThingShadowResult& WithRequestId(RequestIdT&& value) {
58 SetRequestId(std::forward<RequestIdT>(value));
59 return *this;
60 }
62 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
63
64 private:
66
67 Aws::String m_requestId;
68 Aws::Http::HttpResponseCode m_HttpResponseCode;
69 bool m_payloadHasBeenSet = false;
70 bool m_requestIdHasBeenSet = false;
71};
72
73} // namespace Model
74} // namespace IoTDataPlane
75} // namespace Aws
AWS_IOTDATAPLANE_API GetThingShadowResult(GetThingShadowResult &&)=default
AWS_IOTDATAPLANE_API GetThingShadowResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
GetThingShadowResult & operator=(const GetThingShadowResult &)=delete
AWS_IOTDATAPLANE_API GetThingShadowResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetThingShadowResult(const GetThingShadowResult &)=delete
AWS_IOTDATAPLANE_API GetThingShadowResult & operator=(GetThingShadowResult &&)=default
AWS_IOTDATAPLANE_API GetThingShadowResult()=default
GetThingShadowResult & WithRequestId(RequestIdT &&value)
Aws::IOStream & GetUnderlyingStream() const
std::basic_iostream< char, std::char_traits< char > > IOStream
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String