AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetExportResult.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/core/utils/stream/ResponseStream.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/Array.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace APIGateway
19{
20namespace Model
21{
29 {
30 public:
31 AWS_APIGATEWAY_API GetExportResult() = default;
32 AWS_APIGATEWAY_API GetExportResult(GetExportResult&&) = default;
33 AWS_APIGATEWAY_API GetExportResult& operator=(GetExportResult&&) = default;
34 //we delete these because Microsoft doesn't handle move generation correctly
35 //and we therefore don't trust them to get it right here either.
38
39
42
43
44
46
50 inline const Aws::String& GetContentType() const { return m_contentType; }
51 template<typename ContentTypeT = Aws::String>
52 void SetContentType(ContentTypeT&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::forward<ContentTypeT>(value); }
53 template<typename ContentTypeT = Aws::String>
54 GetExportResult& WithContentType(ContentTypeT&& value) { SetContentType(std::forward<ContentTypeT>(value)); return *this;}
56
58
61 inline const Aws::String& GetContentDisposition() const { return m_contentDisposition; }
62 template<typename ContentDispositionT = Aws::String>
63 void SetContentDisposition(ContentDispositionT&& value) { m_contentDispositionHasBeenSet = true; m_contentDisposition = std::forward<ContentDispositionT>(value); }
64 template<typename ContentDispositionT = Aws::String>
65 GetExportResult& WithContentDisposition(ContentDispositionT&& value) { SetContentDisposition(std::forward<ContentDispositionT>(value)); return *this;}
67
69
72 inline Aws::IOStream& GetBody() const { return m_body.GetUnderlyingStream(); }
73 inline void ReplaceBody(Aws::IOStream* body) { m_body = Aws::Utils::Stream::ResponseStream(body); }
74
76
78
79 inline const Aws::String& GetRequestId() const { return m_requestId; }
80 template<typename RequestIdT = Aws::String>
81 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
82 template<typename RequestIdT = Aws::String>
83 GetExportResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
85 private:
86
87 Aws::String m_contentType;
88 bool m_contentTypeHasBeenSet = false;
89
90 Aws::String m_contentDisposition;
91 bool m_contentDispositionHasBeenSet = false;
92
94 bool m_bodyHasBeenSet = false;
95
96 Aws::String m_requestId;
97 bool m_requestIdHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace APIGateway
102} // 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_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