/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Pinpoint { namespace Model { /** *

Specifies the contents of an email message, represented as a raw MIME * message.

See Also:

AWS * API Reference

*/ class RawEmail { public: AWS_PINPOINT_API RawEmail(); AWS_PINPOINT_API RawEmail(Aws::Utils::Json::JsonView jsonValue); AWS_PINPOINT_API RawEmail& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The email message, represented as a raw MIME message. The entire message must * be base64 encoded.

*/ inline const Aws::Utils::ByteBuffer& GetData() const{ return m_data; } /** *

The email message, represented as a raw MIME message. The entire message must * be base64 encoded.

*/ inline bool DataHasBeenSet() const { return m_dataHasBeenSet; } /** *

The email message, represented as a raw MIME message. The entire message must * be base64 encoded.

*/ inline void SetData(const Aws::Utils::ByteBuffer& value) { m_dataHasBeenSet = true; m_data = value; } /** *

The email message, represented as a raw MIME message. The entire message must * be base64 encoded.

*/ inline void SetData(Aws::Utils::ByteBuffer&& value) { m_dataHasBeenSet = true; m_data = std::move(value); } /** *

The email message, represented as a raw MIME message. The entire message must * be base64 encoded.

*/ inline RawEmail& WithData(const Aws::Utils::ByteBuffer& value) { SetData(value); return *this;} /** *

The email message, represented as a raw MIME message. The entire message must * be base64 encoded.

*/ inline RawEmail& WithData(Aws::Utils::ByteBuffer&& value) { SetData(std::move(value)); return *this;} private: Aws::Utils::ByteBuffer m_data; bool m_dataHasBeenSet = false; }; } // namespace Model } // namespace Pinpoint } // namespace Aws