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 "From" address for an email message that's sent to participants
28    * in a journey.</p><p><h3>See Also:</h3>   <a
29    * href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/JourneyEmailMessage">AWS
30    * API Reference</a></p>
31    */
32   class AWS_PINPOINT_API JourneyEmailMessage
33   {
34   public:
35     JourneyEmailMessage();
36     JourneyEmailMessage(Aws::Utils::Json::JsonView jsonValue);
37     JourneyEmailMessage& operator=(Aws::Utils::Json::JsonView jsonValue);
38     Aws::Utils::Json::JsonValue Jsonize() const;
39 
40 
41     /**
42      * <p>The verified email address to send the email message from. The default
43      * address is the FromAddress specified for the email channel for the
44      * application.</p>
45      */
GetFromAddress()46     inline const Aws::String& GetFromAddress() const{ return m_fromAddress; }
47 
48     /**
49      * <p>The verified email address to send the email message from. The default
50      * address is the FromAddress specified for the email channel for the
51      * application.</p>
52      */
FromAddressHasBeenSet()53     inline bool FromAddressHasBeenSet() const { return m_fromAddressHasBeenSet; }
54 
55     /**
56      * <p>The verified email address to send the email message from. The default
57      * address is the FromAddress specified for the email channel for the
58      * application.</p>
59      */
SetFromAddress(const Aws::String & value)60     inline void SetFromAddress(const Aws::String& value) { m_fromAddressHasBeenSet = true; m_fromAddress = value; }
61 
62     /**
63      * <p>The verified email address to send the email message from. The default
64      * address is the FromAddress specified for the email channel for the
65      * application.</p>
66      */
SetFromAddress(Aws::String && value)67     inline void SetFromAddress(Aws::String&& value) { m_fromAddressHasBeenSet = true; m_fromAddress = std::move(value); }
68 
69     /**
70      * <p>The verified email address to send the email message from. The default
71      * address is the FromAddress specified for the email channel for the
72      * application.</p>
73      */
SetFromAddress(const char * value)74     inline void SetFromAddress(const char* value) { m_fromAddressHasBeenSet = true; m_fromAddress.assign(value); }
75 
76     /**
77      * <p>The verified email address to send the email message from. The default
78      * address is the FromAddress specified for the email channel for the
79      * application.</p>
80      */
WithFromAddress(const Aws::String & value)81     inline JourneyEmailMessage& WithFromAddress(const Aws::String& value) { SetFromAddress(value); return *this;}
82 
83     /**
84      * <p>The verified email address to send the email message from. The default
85      * address is the FromAddress specified for the email channel for the
86      * application.</p>
87      */
WithFromAddress(Aws::String && value)88     inline JourneyEmailMessage& WithFromAddress(Aws::String&& value) { SetFromAddress(std::move(value)); return *this;}
89 
90     /**
91      * <p>The verified email address to send the email message from. The default
92      * address is the FromAddress specified for the email channel for the
93      * application.</p>
94      */
WithFromAddress(const char * value)95     inline JourneyEmailMessage& WithFromAddress(const char* value) { SetFromAddress(value); return *this;}
96 
97   private:
98 
99     Aws::String m_fromAddress;
100     bool m_fromAddressHasBeenSet;
101   };
102 
103 } // namespace Model
104 } // namespace Pinpoint
105 } // namespace Aws
106