/** * 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 message content for a custom channel message that's sent to * participants in a journey.

See Also:

AWS * API Reference

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

The message content that's passed to an AWS Lambda function or to a web * hook.

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

The message content that's passed to an AWS Lambda function or to a web * hook.

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

The message content that's passed to an AWS Lambda function or to a web * hook.

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

The message content that's passed to an AWS Lambda function or to a web * hook.

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

The message content that's passed to an AWS Lambda function or to a web * hook.

*/ inline void SetData(const char* value) { m_dataHasBeenSet = true; m_data.assign(value); } /** *

The message content that's passed to an AWS Lambda function or to a web * hook.

*/ inline JourneyCustomMessage& WithData(const Aws::String& value) { SetData(value); return *this;} /** *

The message content that's passed to an AWS Lambda function or to a web * hook.

*/ inline JourneyCustomMessage& WithData(Aws::String&& value) { SetData(std::move(value)); return *this;} /** *

The message content that's passed to an AWS Lambda function or to a web * hook.

*/ inline JourneyCustomMessage& WithData(const char* value) { SetData(value); return *this;} private: Aws::String m_data; bool m_dataHasBeenSet = false; }; } // namespace Model } // namespace Pinpoint } // namespace Aws