1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/pinpoint/Pinpoint_EXPORTS.h> 8 #include <aws/core/utils/Array.h> 9 #include <utility> 10 11 namespace Aws 12 { 13 namespace Utils 14 { 15 namespace Json 16 { 17 class JsonValue; 18 class JsonView; 19 } // namespace Json 20 } // namespace Utils 21 namespace Pinpoint 22 { 23 namespace Model 24 { 25 26 /** 27 * <p>Specifies the contents of an email message, represented as a raw MIME 28 * message.</p><p><h3>See Also:</h3> <a 29 * href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/RawEmail">AWS 30 * API Reference</a></p> 31 */ 32 class AWS_PINPOINT_API RawEmail 33 { 34 public: 35 RawEmail(); 36 RawEmail(Aws::Utils::Json::JsonView jsonValue); 37 RawEmail& operator=(Aws::Utils::Json::JsonView jsonValue); 38 Aws::Utils::Json::JsonValue Jsonize() const; 39 40 41 /** 42 * <p>The email message, represented as a raw MIME message. The entire message must 43 * be base64 encoded.</p> 44 */ GetData()45 inline const Aws::Utils::ByteBuffer& GetData() const{ return m_data; } 46 47 /** 48 * <p>The email message, represented as a raw MIME message. The entire message must 49 * be base64 encoded.</p> 50 */ DataHasBeenSet()51 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; } 52 53 /** 54 * <p>The email message, represented as a raw MIME message. The entire message must 55 * be base64 encoded.</p> 56 */ SetData(const Aws::Utils::ByteBuffer & value)57 inline void SetData(const Aws::Utils::ByteBuffer& value) { m_dataHasBeenSet = true; m_data = value; } 58 59 /** 60 * <p>The email message, represented as a raw MIME message. The entire message must 61 * be base64 encoded.</p> 62 */ SetData(Aws::Utils::ByteBuffer && value)63 inline void SetData(Aws::Utils::ByteBuffer&& value) { m_dataHasBeenSet = true; m_data = std::move(value); } 64 65 /** 66 * <p>The email message, represented as a raw MIME message. The entire message must 67 * be base64 encoded.</p> 68 */ WithData(const Aws::Utils::ByteBuffer & value)69 inline RawEmail& WithData(const Aws::Utils::ByteBuffer& value) { SetData(value); return *this;} 70 71 /** 72 * <p>The email message, represented as a raw MIME message. The entire message must 73 * be base64 encoded.</p> 74 */ WithData(Aws::Utils::ByteBuffer && value)75 inline RawEmail& WithData(Aws::Utils::ByteBuffer&& value) { SetData(std::move(value)); return *this;} 76 77 private: 78 79 Aws::Utils::ByteBuffer m_data; 80 bool m_dataHasBeenSet; 81 }; 82 83 } // namespace Model 84 } // namespace Pinpoint 85 } // namespace Aws 86