/** * 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 "From" address for an email message that's sent to participants * in a journey.

See Also:

AWS * API Reference

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

The verified email address to send the email message from. The default * address is the FromAddress specified for the email channel for the * application.

*/ inline const Aws::String& GetFromAddress() const{ return m_fromAddress; } /** *

The verified email address to send the email message from. The default * address is the FromAddress specified for the email channel for the * application.

*/ inline bool FromAddressHasBeenSet() const { return m_fromAddressHasBeenSet; } /** *

The verified email address to send the email message from. The default * address is the FromAddress specified for the email channel for the * application.

*/ inline void SetFromAddress(const Aws::String& value) { m_fromAddressHasBeenSet = true; m_fromAddress = value; } /** *

The verified email address to send the email message from. The default * address is the FromAddress specified for the email channel for the * application.

*/ inline void SetFromAddress(Aws::String&& value) { m_fromAddressHasBeenSet = true; m_fromAddress = std::move(value); } /** *

The verified email address to send the email message from. The default * address is the FromAddress specified for the email channel for the * application.

*/ inline void SetFromAddress(const char* value) { m_fromAddressHasBeenSet = true; m_fromAddress.assign(value); } /** *

The verified email address to send the email message from. The default * address is the FromAddress specified for the email channel for the * application.

*/ inline JourneyEmailMessage& WithFromAddress(const Aws::String& value) { SetFromAddress(value); return *this;} /** *

The verified email address to send the email message from. The default * address is the FromAddress specified for the email channel for the * application.

*/ inline JourneyEmailMessage& WithFromAddress(Aws::String&& value) { SetFromAddress(std::move(value)); return *this;} /** *

The verified email address to send the email message from. The default * address is the FromAddress specified for the email channel for the * application.

*/ inline JourneyEmailMessage& WithFromAddress(const char* value) { SetFromAddress(value); return *this;} private: Aws::String m_fromAddress; bool m_fromAddressHasBeenSet = false; }; } // namespace Model } // namespace Pinpoint } // namespace Aws