/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace APIGateway { namespace Model { /** *

The binary blob response to GetExport, which contains the generated * SDK.

See Also:

AWS * API Reference

*/ class GetExportResult { public: AWS_APIGATEWAY_API GetExportResult(); //We have to define these because Microsoft doesn't auto generate them AWS_APIGATEWAY_API GetExportResult(GetExportResult&&); AWS_APIGATEWAY_API GetExportResult& operator=(GetExportResult&&); //we delete these because Microsoft doesn't handle move generation correctly //and we therefore don't trust them to get it right here either. GetExportResult(const GetExportResult&) = delete; GetExportResult& operator=(const GetExportResult&) = delete; AWS_APIGATEWAY_API GetExportResult(Aws::AmazonWebServiceResult&& result); AWS_APIGATEWAY_API GetExportResult& operator=(Aws::AmazonWebServiceResult&& result); /** *

The content-type header value in the HTTP response. This will correspond to a * valid 'accept' type in the request.

*/ inline const Aws::String& GetContentType() const{ return m_contentType; } /** *

The content-type header value in the HTTP response. This will correspond to a * valid 'accept' type in the request.

*/ inline void SetContentType(const Aws::String& value) { m_contentType = value; } /** *

The content-type header value in the HTTP response. This will correspond to a * valid 'accept' type in the request.

*/ inline void SetContentType(Aws::String&& value) { m_contentType = std::move(value); } /** *

The content-type header value in the HTTP response. This will correspond to a * valid 'accept' type in the request.

*/ inline void SetContentType(const char* value) { m_contentType.assign(value); } /** *

The content-type header value in the HTTP response. This will correspond to a * valid 'accept' type in the request.

*/ inline GetExportResult& WithContentType(const Aws::String& value) { SetContentType(value); return *this;} /** *

The content-type header value in the HTTP response. This will correspond to a * valid 'accept' type in the request.

*/ inline GetExportResult& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;} /** *

The content-type header value in the HTTP response. This will correspond to a * valid 'accept' type in the request.

*/ inline GetExportResult& WithContentType(const char* value) { SetContentType(value); return *this;} /** *

The content-disposition header value in the HTTP response.

*/ inline const Aws::String& GetContentDisposition() const{ return m_contentDisposition; } /** *

The content-disposition header value in the HTTP response.

*/ inline void SetContentDisposition(const Aws::String& value) { m_contentDisposition = value; } /** *

The content-disposition header value in the HTTP response.

*/ inline void SetContentDisposition(Aws::String&& value) { m_contentDisposition = std::move(value); } /** *

The content-disposition header value in the HTTP response.

*/ inline void SetContentDisposition(const char* value) { m_contentDisposition.assign(value); } /** *

The content-disposition header value in the HTTP response.

*/ inline GetExportResult& WithContentDisposition(const Aws::String& value) { SetContentDisposition(value); return *this;} /** *

The content-disposition header value in the HTTP response.

*/ inline GetExportResult& WithContentDisposition(Aws::String&& value) { SetContentDisposition(std::move(value)); return *this;} /** *

The content-disposition header value in the HTTP response.

*/ inline GetExportResult& WithContentDisposition(const char* value) { SetContentDisposition(value); return *this;} /** *

The binary blob response to GetExport, which contains the export.

*/ inline Aws::IOStream& GetBody() const { return m_body.GetUnderlyingStream(); } /** *

The binary blob response to GetExport, which contains the export.

*/ inline void ReplaceBody(Aws::IOStream* body) { m_body = Aws::Utils::Stream::ResponseStream(body); } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetExportResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetExportResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetExportResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_contentType; Aws::String m_contentDisposition; Aws::Utils::Stream::ResponseStream m_body; Aws::String m_requestId; }; } // namespace Model } // namespace APIGateway } // namespace Aws