AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GetThingShadowResult.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/stream/ResponseStream.h>
10#include <aws/iot-data/IoTDataPlane_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace IoTDataPlane {
19namespace Model {
26 public:
27 AWS_IOTDATAPLANE_API GetThingShadowResult() = default;
28 AWS_IOTDATAPLANE_API GetThingShadowResult(GetThingShadowResult&&) = default;
29 AWS_IOTDATAPLANE_API GetThingShadowResult& operator=(GetThingShadowResult&&) = default;
30 // we delete these because Microsoft doesn't handle move generation correctly
31 // and we therefore don't trust them to get it right here either.
34
37
39
42 inline Aws::IOStream& GetPayload() const { return m_payload.GetUnderlyingStream(); }
43 inline void ReplaceBody(Aws::IOStream* body) { m_payload = Aws::Utils::Stream::ResponseStream(body); }
44
46
48
49 inline const Aws::String& GetRequestId() const { return m_requestId; }
50 template <typename RequestIdT = Aws::String>
51 void SetRequestId(RequestIdT&& value) {
52 m_requestIdHasBeenSet = true;
53 m_requestId = std::forward<RequestIdT>(value);
54 }
55 template <typename RequestIdT = Aws::String>
56 GetThingShadowResult& WithRequestId(RequestIdT&& value) {
57 SetRequestId(std::forward<RequestIdT>(value));
58 return *this;
59 }
61 private:
63
64 Aws::String m_requestId;
65 bool m_payloadHasBeenSet = false;
66 bool m_requestIdHasBeenSet = false;
67};
68
69} // namespace Model
70} // namespace IoTDataPlane
71} // 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)
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