/** * 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 DataExchange { namespace Model { class SendApiAssetResult { public: AWS_DATAEXCHANGE_API SendApiAssetResult(); //We have to define these because Microsoft doesn't auto generate them AWS_DATAEXCHANGE_API SendApiAssetResult(SendApiAssetResult&&); AWS_DATAEXCHANGE_API SendApiAssetResult& operator=(SendApiAssetResult&&); //we delete these because Microsoft doesn't handle move generation correctly //and we therefore don't trust them to get it right here either. SendApiAssetResult(const SendApiAssetResult&) = delete; SendApiAssetResult& operator=(const SendApiAssetResult&) = delete; AWS_DATAEXCHANGE_API SendApiAssetResult(Aws::AmazonWebServiceResult&& result); AWS_DATAEXCHANGE_API SendApiAssetResult& operator=(Aws::AmazonWebServiceResult&& result); /** *

The response body from the underlying API tracked by the API asset.

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

The response body from the underlying API tracked by the API asset.

*/ inline void ReplaceBody(Aws::IOStream* body) { m_body = Aws::Utils::Stream::ResponseStream(body); } /** *

The response headers from the underlying API tracked by the API asset.

*/ inline const Aws::Map& GetResponseHeaders() const{ return m_responseHeaders; } /** *

The response headers from the underlying API tracked by the API asset.

*/ inline void SetResponseHeaders(const Aws::Map& value) { m_responseHeaders = value; } /** *

The response headers from the underlying API tracked by the API asset.

*/ inline void SetResponseHeaders(Aws::Map&& value) { m_responseHeaders = std::move(value); } /** *

The response headers from the underlying API tracked by the API asset.

*/ inline SendApiAssetResult& WithResponseHeaders(const Aws::Map& value) { SetResponseHeaders(value); return *this;} /** *

The response headers from the underlying API tracked by the API asset.

*/ inline SendApiAssetResult& WithResponseHeaders(Aws::Map&& value) { SetResponseHeaders(std::move(value)); return *this;} /** *

The response headers from the underlying API tracked by the API asset.

*/ inline SendApiAssetResult& AddResponseHeaders(const Aws::String& key, const Aws::String& value) { m_responseHeaders.emplace(key, value); return *this; } /** *

The response headers from the underlying API tracked by the API asset.

*/ inline SendApiAssetResult& AddResponseHeaders(Aws::String&& key, const Aws::String& value) { m_responseHeaders.emplace(std::move(key), value); return *this; } /** *

The response headers from the underlying API tracked by the API asset.

*/ inline SendApiAssetResult& AddResponseHeaders(const Aws::String& key, Aws::String&& value) { m_responseHeaders.emplace(key, std::move(value)); return *this; } /** *

The response headers from the underlying API tracked by the API asset.

*/ inline SendApiAssetResult& AddResponseHeaders(Aws::String&& key, Aws::String&& value) { m_responseHeaders.emplace(std::move(key), std::move(value)); return *this; } /** *

The response headers from the underlying API tracked by the API asset.

*/ inline SendApiAssetResult& AddResponseHeaders(const char* key, Aws::String&& value) { m_responseHeaders.emplace(key, std::move(value)); return *this; } /** *

The response headers from the underlying API tracked by the API asset.

*/ inline SendApiAssetResult& AddResponseHeaders(Aws::String&& key, const char* value) { m_responseHeaders.emplace(std::move(key), value); return *this; } /** *

The response headers from the underlying API tracked by the API asset.

*/ inline SendApiAssetResult& AddResponseHeaders(const char* key, const char* value) { m_responseHeaders.emplace(key, value); return *this; } 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 SendApiAssetResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline SendApiAssetResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline SendApiAssetResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Utils::Stream::ResponseStream m_body; Aws::Map m_responseHeaders; Aws::String m_requestId; }; } // namespace Model } // namespace DataExchange } // namespace Aws