/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Pinpoint { namespace Model { /** *

Text config for Message Body.

See Also:

AWS * API Reference

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

The alignment of the text. Valid values: LEFT, CENTER, RIGHT.

*/ inline const Alignment& GetAlignment() const{ return m_alignment; } /** *

The alignment of the text. Valid values: LEFT, CENTER, RIGHT.

*/ inline bool AlignmentHasBeenSet() const { return m_alignmentHasBeenSet; } /** *

The alignment of the text. Valid values: LEFT, CENTER, RIGHT.

*/ inline void SetAlignment(const Alignment& value) { m_alignmentHasBeenSet = true; m_alignment = value; } /** *

The alignment of the text. Valid values: LEFT, CENTER, RIGHT.

*/ inline void SetAlignment(Alignment&& value) { m_alignmentHasBeenSet = true; m_alignment = std::move(value); } /** *

The alignment of the text. Valid values: LEFT, CENTER, RIGHT.

*/ inline InAppMessageBodyConfig& WithAlignment(const Alignment& value) { SetAlignment(value); return *this;} /** *

The alignment of the text. Valid values: LEFT, CENTER, RIGHT.

*/ inline InAppMessageBodyConfig& WithAlignment(Alignment&& value) { SetAlignment(std::move(value)); return *this;} /** *

Message Body.

*/ inline const Aws::String& GetBody() const{ return m_body; } /** *

Message Body.

*/ inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; } /** *

Message Body.

*/ inline void SetBody(const Aws::String& value) { m_bodyHasBeenSet = true; m_body = value; } /** *

Message Body.

*/ inline void SetBody(Aws::String&& value) { m_bodyHasBeenSet = true; m_body = std::move(value); } /** *

Message Body.

*/ inline void SetBody(const char* value) { m_bodyHasBeenSet = true; m_body.assign(value); } /** *

Message Body.

*/ inline InAppMessageBodyConfig& WithBody(const Aws::String& value) { SetBody(value); return *this;} /** *

Message Body.

*/ inline InAppMessageBodyConfig& WithBody(Aws::String&& value) { SetBody(std::move(value)); return *this;} /** *

Message Body.

*/ inline InAppMessageBodyConfig& WithBody(const char* value) { SetBody(value); return *this;} /** *

The text color.

*/ inline const Aws::String& GetTextColor() const{ return m_textColor; } /** *

The text color.

*/ inline bool TextColorHasBeenSet() const { return m_textColorHasBeenSet; } /** *

The text color.

*/ inline void SetTextColor(const Aws::String& value) { m_textColorHasBeenSet = true; m_textColor = value; } /** *

The text color.

*/ inline void SetTextColor(Aws::String&& value) { m_textColorHasBeenSet = true; m_textColor = std::move(value); } /** *

The text color.

*/ inline void SetTextColor(const char* value) { m_textColorHasBeenSet = true; m_textColor.assign(value); } /** *

The text color.

*/ inline InAppMessageBodyConfig& WithTextColor(const Aws::String& value) { SetTextColor(value); return *this;} /** *

The text color.

*/ inline InAppMessageBodyConfig& WithTextColor(Aws::String&& value) { SetTextColor(std::move(value)); return *this;} /** *

The text color.

*/ inline InAppMessageBodyConfig& WithTextColor(const char* value) { SetTextColor(value); return *this;} private: Alignment m_alignment; bool m_alignmentHasBeenSet = false; Aws::String m_body; bool m_bodyHasBeenSet = false; Aws::String m_textColor; bool m_textColorHasBeenSet = false; }; } // namespace Model } // namespace Pinpoint } // namespace Aws