AWS SDK for C++

AWS SDK for C++ Version 1.11.778

Loading...
Searching...
No Matches
ExportApiResult.h
1
6#pragma once
7#include <aws/apigatewayv2/ApiGatewayV2_EXPORTS.h>
8#include <aws/core/http/HttpResponse.h>
9#include <aws/core/utils/Array.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/stream/ResponseStream.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace ApiGatewayV2 {
20namespace Model {
22 public:
23 AWS_APIGATEWAYV2_API ExportApiResult() = default;
24 AWS_APIGATEWAYV2_API ExportApiResult(ExportApiResult&&) = default;
25 AWS_APIGATEWAYV2_API ExportApiResult& operator=(ExportApiResult&&) = default;
26 // we delete these because Microsoft doesn't handle move generation correctly
27 // and we therefore don't trust them to get it right here either.
30
33
35
36 inline Aws::IOStream& GetBody() const { return m_body.GetUnderlyingStream(); }
37 inline void ReplaceBody(Aws::IOStream* body) { m_body = Aws::Utils::Stream::ResponseStream(body); }
38
40
42
43 inline const Aws::String& GetRequestId() const { return m_requestId; }
44 template <typename RequestIdT = Aws::String>
45 void SetRequestId(RequestIdT&& value) {
46 m_requestIdHasBeenSet = true;
47 m_requestId = std::forward<RequestIdT>(value);
48 }
49 template <typename RequestIdT = Aws::String>
50 ExportApiResult& WithRequestId(RequestIdT&& value) {
51 SetRequestId(std::forward<RequestIdT>(value));
52 return *this;
53 }
55 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
56
57 private:
59
60 Aws::String m_requestId;
61 Aws::Http::HttpResponseCode m_HttpResponseCode;
62 bool m_bodyHasBeenSet = false;
63 bool m_requestIdHasBeenSet = false;
64};
65
66} // namespace Model
67} // namespace ApiGatewayV2
68} // namespace Aws
ExportApiResult & operator=(const ExportApiResult &)=delete
AWS_APIGATEWAYV2_API ExportApiResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
AWS_APIGATEWAYV2_API ExportApiResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
AWS_APIGATEWAYV2_API ExportApiResult(ExportApiResult &&)=default
Aws::Http::HttpResponseCode GetHttpResponseCode() const
ExportApiResult(const ExportApiResult &)=delete
ExportApiResult & WithRequestId(RequestIdT &&value)
const Aws::String & GetRequestId() const
AWS_APIGATEWAYV2_API ExportApiResult & operator=(ExportApiResult &&)=default
AWS_APIGATEWAYV2_API ExportApiResult()=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