/** * 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 LakeFormation { namespace Model { /** *

A structure for the output.

See Also:

AWS * API Reference

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

Rows returned from the GetWorkUnitResults operation as a stream * of Apache Arrow v1.0 messages.

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

Rows returned from the GetWorkUnitResults operation as a stream * of Apache Arrow v1.0 messages.

*/ inline void ReplaceBody(Aws::IOStream* body) { m_resultStream = 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 GetWorkUnitResultsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetWorkUnitResultsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetWorkUnitResultsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Utils::Stream::ResponseStream m_resultStream; Aws::String m_requestId; }; } // namespace Model } // namespace LakeFormation } // namespace Aws