AWS SDK for C++

AWS SDK for C++ Version 1.11.766

Loading...
Searching...
No Matches
GetExportResult.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_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 APIGateway {
20namespace Model {
28 public:
29 AWS_APIGATEWAY_API GetExportResult() = default;
30 AWS_APIGATEWAY_API GetExportResult(GetExportResult&&) = default;
31 AWS_APIGATEWAY_API GetExportResult& operator=(GetExportResult&&) = 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
45 inline const Aws::String& GetContentType() const { return m_contentType; }
46 template <typename ContentTypeT = Aws::String>
47 void SetContentType(ContentTypeT&& value) {
48 m_contentTypeHasBeenSet = true;
49 m_contentType = std::forward<ContentTypeT>(value);
50 }
51 template <typename ContentTypeT = Aws::String>
52 GetExportResult& WithContentType(ContentTypeT&& value) {
53 SetContentType(std::forward<ContentTypeT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetContentDisposition() const { return m_contentDisposition; }
63 template <typename ContentDispositionT = Aws::String>
64 void SetContentDisposition(ContentDispositionT&& value) {
65 m_contentDispositionHasBeenSet = true;
66 m_contentDisposition = std::forward<ContentDispositionT>(value);
67 }
68 template <typename ContentDispositionT = Aws::String>
69 GetExportResult& WithContentDisposition(ContentDispositionT&& value) {
70 SetContentDisposition(std::forward<ContentDispositionT>(value));
71 return *this;
72 }
74
76
79 inline Aws::IOStream& GetBody() const { return m_body.GetUnderlyingStream(); }
80 inline void ReplaceBody(Aws::IOStream* body) { m_body = Aws::Utils::Stream::ResponseStream(body); }
81
83
85
86 inline const Aws::String& GetRequestId() const { return m_requestId; }
87 template <typename RequestIdT = Aws::String>
88 void SetRequestId(RequestIdT&& value) {
89 m_requestIdHasBeenSet = true;
90 m_requestId = std::forward<RequestIdT>(value);
91 }
92 template <typename RequestIdT = Aws::String>
93 GetExportResult& WithRequestId(RequestIdT&& value) {
94 SetRequestId(std::forward<RequestIdT>(value));
95 return *this;
96 }
98 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
99
100 private:
101 Aws::String m_contentType;
102
103 Aws::String m_contentDisposition;
104
106
107 Aws::String m_requestId;
108 Aws::Http::HttpResponseCode m_HttpResponseCode;
109 bool m_contentTypeHasBeenSet = false;
110 bool m_contentDispositionHasBeenSet = false;
111 bool m_bodyHasBeenSet = false;
112 bool m_requestIdHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace APIGateway
117} // namespace Aws
AWS_APIGATEWAY_API GetExportResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
const Aws::String & GetRequestId() const
GetExportResult & operator=(const GetExportResult &)=delete
GetExportResult(const GetExportResult &)=delete
AWS_APIGATEWAY_API GetExportResult()=default
GetExportResult & WithContentType(ContentTypeT &&value)
void SetContentDisposition(ContentDispositionT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_APIGATEWAY_API GetExportResult & operator=(GetExportResult &&)=default
void ReplaceBody(Aws::IOStream *body)
GetExportResult & WithContentDisposition(ContentDispositionT &&value)
AWS_APIGATEWAY_API GetExportResult(GetExportResult &&)=default
void SetContentType(ContentTypeT &&value)
AWS_APIGATEWAY_API GetExportResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
const Aws::String & GetContentDisposition() const
GetExportResult & WithRequestId(RequestIdT &&value)
const Aws::String & GetContentType() const
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