/** * 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 Header.

See Also:

AWS * API Reference

*/ class InAppMessageHeaderConfig { public: AWS_PINPOINT_API InAppMessageHeaderConfig(); AWS_PINPOINT_API InAppMessageHeaderConfig(Aws::Utils::Json::JsonView jsonValue); AWS_PINPOINT_API InAppMessageHeaderConfig& 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 InAppMessageHeaderConfig& WithAlignment(const Alignment& value) { SetAlignment(value); return *this;} /** *

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

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

Message Header.

*/ inline const Aws::String& GetHeader() const{ return m_header; } /** *

Message Header.

*/ inline bool HeaderHasBeenSet() const { return m_headerHasBeenSet; } /** *

Message Header.

*/ inline void SetHeader(const Aws::String& value) { m_headerHasBeenSet = true; m_header = value; } /** *

Message Header.

*/ inline void SetHeader(Aws::String&& value) { m_headerHasBeenSet = true; m_header = std::move(value); } /** *

Message Header.

*/ inline void SetHeader(const char* value) { m_headerHasBeenSet = true; m_header.assign(value); } /** *

Message Header.

*/ inline InAppMessageHeaderConfig& WithHeader(const Aws::String& value) { SetHeader(value); return *this;} /** *

Message Header.

*/ inline InAppMessageHeaderConfig& WithHeader(Aws::String&& value) { SetHeader(std::move(value)); return *this;} /** *

Message Header.

*/ inline InAppMessageHeaderConfig& WithHeader(const char* value) { SetHeader(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 InAppMessageHeaderConfig& WithTextColor(const Aws::String& value) { SetTextColor(value); return *this;} /** *

The text color.

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

The text color.

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