/** * 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 QuickSight { namespace Model { /** *

The background style configuration of a free-form layout * element.

See Also:

AWS * API Reference

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

The background visibility of a free-form layout element.

*/ inline const Visibility& GetVisibility() const{ return m_visibility; } /** *

The background visibility of a free-form layout element.

*/ inline bool VisibilityHasBeenSet() const { return m_visibilityHasBeenSet; } /** *

The background visibility of a free-form layout element.

*/ inline void SetVisibility(const Visibility& value) { m_visibilityHasBeenSet = true; m_visibility = value; } /** *

The background visibility of a free-form layout element.

*/ inline void SetVisibility(Visibility&& value) { m_visibilityHasBeenSet = true; m_visibility = std::move(value); } /** *

The background visibility of a free-form layout element.

*/ inline FreeFormLayoutElementBackgroundStyle& WithVisibility(const Visibility& value) { SetVisibility(value); return *this;} /** *

The background visibility of a free-form layout element.

*/ inline FreeFormLayoutElementBackgroundStyle& WithVisibility(Visibility&& value) { SetVisibility(std::move(value)); return *this;} /** *

The background color of a free-form layout element.

*/ inline const Aws::String& GetColor() const{ return m_color; } /** *

The background color of a free-form layout element.

*/ inline bool ColorHasBeenSet() const { return m_colorHasBeenSet; } /** *

The background color of a free-form layout element.

*/ inline void SetColor(const Aws::String& value) { m_colorHasBeenSet = true; m_color = value; } /** *

The background color of a free-form layout element.

*/ inline void SetColor(Aws::String&& value) { m_colorHasBeenSet = true; m_color = std::move(value); } /** *

The background color of a free-form layout element.

*/ inline void SetColor(const char* value) { m_colorHasBeenSet = true; m_color.assign(value); } /** *

The background color of a free-form layout element.

*/ inline FreeFormLayoutElementBackgroundStyle& WithColor(const Aws::String& value) { SetColor(value); return *this;} /** *

The background color of a free-form layout element.

*/ inline FreeFormLayoutElementBackgroundStyle& WithColor(Aws::String&& value) { SetColor(std::move(value)); return *this;} /** *

The background color of a free-form layout element.

*/ inline FreeFormLayoutElementBackgroundStyle& WithColor(const char* value) { SetColor(value); return *this;} private: Visibility m_visibility; bool m_visibilityHasBeenSet = false; Aws::String m_color; bool m_colorHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws