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/memory/stl/AWSString.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 subject or body of an email message, represented as textual 28 * email data and the applicable character set.</p><p><h3>See Also:</h3> <a 29 * href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/SimpleEmailPart">AWS 30 * API Reference</a></p> 31 */ 32 class AWS_PINPOINT_API SimpleEmailPart 33 { 34 public: 35 SimpleEmailPart(); 36 SimpleEmailPart(Aws::Utils::Json::JsonView jsonValue); 37 SimpleEmailPart& operator=(Aws::Utils::Json::JsonView jsonValue); 38 Aws::Utils::Json::JsonValue Jsonize() const; 39 40 41 /** 42 * <p>The applicable character set for the message content.</p> 43 */ GetCharset()44 inline const Aws::String& GetCharset() const{ return m_charset; } 45 46 /** 47 * <p>The applicable character set for the message content.</p> 48 */ CharsetHasBeenSet()49 inline bool CharsetHasBeenSet() const { return m_charsetHasBeenSet; } 50 51 /** 52 * <p>The applicable character set for the message content.</p> 53 */ SetCharset(const Aws::String & value)54 inline void SetCharset(const Aws::String& value) { m_charsetHasBeenSet = true; m_charset = value; } 55 56 /** 57 * <p>The applicable character set for the message content.</p> 58 */ SetCharset(Aws::String && value)59 inline void SetCharset(Aws::String&& value) { m_charsetHasBeenSet = true; m_charset = std::move(value); } 60 61 /** 62 * <p>The applicable character set for the message content.</p> 63 */ SetCharset(const char * value)64 inline void SetCharset(const char* value) { m_charsetHasBeenSet = true; m_charset.assign(value); } 65 66 /** 67 * <p>The applicable character set for the message content.</p> 68 */ WithCharset(const Aws::String & value)69 inline SimpleEmailPart& WithCharset(const Aws::String& value) { SetCharset(value); return *this;} 70 71 /** 72 * <p>The applicable character set for the message content.</p> 73 */ WithCharset(Aws::String && value)74 inline SimpleEmailPart& WithCharset(Aws::String&& value) { SetCharset(std::move(value)); return *this;} 75 76 /** 77 * <p>The applicable character set for the message content.</p> 78 */ WithCharset(const char * value)79 inline SimpleEmailPart& WithCharset(const char* value) { SetCharset(value); return *this;} 80 81 82 /** 83 * <p>The textual data of the message content.</p> 84 */ GetData()85 inline const Aws::String& GetData() const{ return m_data; } 86 87 /** 88 * <p>The textual data of the message content.</p> 89 */ DataHasBeenSet()90 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; } 91 92 /** 93 * <p>The textual data of the message content.</p> 94 */ SetData(const Aws::String & value)95 inline void SetData(const Aws::String& value) { m_dataHasBeenSet = true; m_data = value; } 96 97 /** 98 * <p>The textual data of the message content.</p> 99 */ SetData(Aws::String && value)100 inline void SetData(Aws::String&& value) { m_dataHasBeenSet = true; m_data = std::move(value); } 101 102 /** 103 * <p>The textual data of the message content.</p> 104 */ SetData(const char * value)105 inline void SetData(const char* value) { m_dataHasBeenSet = true; m_data.assign(value); } 106 107 /** 108 * <p>The textual data of the message content.</p> 109 */ WithData(const Aws::String & value)110 inline SimpleEmailPart& WithData(const Aws::String& value) { SetData(value); return *this;} 111 112 /** 113 * <p>The textual data of the message content.</p> 114 */ WithData(Aws::String && value)115 inline SimpleEmailPart& WithData(Aws::String&& value) { SetData(std::move(value)); return *this;} 116 117 /** 118 * <p>The textual data of the message content.</p> 119 */ WithData(const char * value)120 inline SimpleEmailPart& WithData(const char* value) { SetData(value); return *this;} 121 122 private: 123 124 Aws::String m_charset; 125 bool m_charsetHasBeenSet; 126 127 Aws::String m_data; 128 bool m_dataHasBeenSet; 129 }; 130 131 } // namespace Model 132 } // namespace Pinpoint 133 } // namespace Aws 134