AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
UpdateThingShadowResult.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 {
28 public:
29 AWS_IOTDATAPLANE_API UpdateThingShadowResult() = default;
30 AWS_IOTDATAPLANE_API UpdateThingShadowResult(UpdateThingShadowResult&&) = default;
31 AWS_IOTDATAPLANE_API UpdateThingShadowResult& operator=(UpdateThingShadowResult&&) = default;
32 // we delete these because Microsoft doesn't handle move generation correctly
33 // and we therefore don't trust them to get it right here either.
36
39
41
44 inline Aws::IOStream& GetPayload() const { return m_payload.GetUnderlyingStream(); }
45 inline void ReplaceBody(Aws::IOStream* body) { m_payload = Aws::Utils::Stream::ResponseStream(body); }
46
48
50
51 inline const Aws::String& GetRequestId() const { return m_requestId; }
52 template <typename RequestIdT = Aws::String>
53 void SetRequestId(RequestIdT&& value) {
54 m_requestIdHasBeenSet = true;
55 m_requestId = std::forward<RequestIdT>(value);
56 }
57 template <typename RequestIdT = Aws::String>
59 SetRequestId(std::forward<RequestIdT>(value));
60 return *this;
61 }
63 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
64
65 private:
67
68 Aws::String m_requestId;
69 Aws::Http::HttpResponseCode m_HttpResponseCode;
70 bool m_payloadHasBeenSet = false;
71 bool m_requestIdHasBeenSet = false;
72};
73
74} // namespace Model
75} // namespace IoTDataPlane
76} // namespace Aws
AWS_IOTDATAPLANE_API UpdateThingShadowResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
UpdateThingShadowResult(const UpdateThingShadowResult &)=delete
UpdateThingShadowResult & operator=(const UpdateThingShadowResult &)=delete
AWS_IOTDATAPLANE_API UpdateThingShadowResult()=default
Aws::Http::HttpResponseCode GetHttpResponseCode() const
UpdateThingShadowResult & WithRequestId(RequestIdT &&value)
AWS_IOTDATAPLANE_API UpdateThingShadowResult(UpdateThingShadowResult &&)=default
AWS_IOTDATAPLANE_API UpdateThingShadowResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
AWS_IOTDATAPLANE_API UpdateThingShadowResult & operator=(UpdateThingShadowResult &&)=default
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