AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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