/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Schemas { namespace Model { class AWS_SCHEMAS_API GetCodeBindingSourceResult { public: GetCodeBindingSourceResult(); //We have to define these because Microsoft doesn't auto generate them GetCodeBindingSourceResult(GetCodeBindingSourceResult&&); GetCodeBindingSourceResult& operator=(GetCodeBindingSourceResult&&); //we delete these because Microsoft doesn't handle move generation correctly //and we therefore don't trust them to get it right here either. GetCodeBindingSourceResult(const GetCodeBindingSourceResult&) = delete; GetCodeBindingSourceResult& operator=(const GetCodeBindingSourceResult&) = delete; GetCodeBindingSourceResult(Aws::AmazonWebServiceResult&& result); GetCodeBindingSourceResult& operator=(Aws::AmazonWebServiceResult&& result); inline Aws::IOStream& GetBody() { return m_body.GetUnderlyingStream(); } inline void ReplaceBody(Aws::IOStream* body) { m_body = Aws::Utils::Stream::ResponseStream(body); } private: Aws::Utils::Stream::ResponseStream m_body; }; } // namespace Model } // namespace Schemas } // namespace Aws