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

The raw content of the email message, in MIME format.

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

The raw content of the email message, in MIME format.

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