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

The configuration for a grid layout. Also called a tiled layout.

*

Visuals snap to a grid with standard spacing and alignment. Dashboards are * displayed as designed, with options to fit to screen or view at actual * size.

See Also:

AWS * API Reference

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

The elements that are included in a grid layout.

*/ inline const Aws::Vector& GetElements() const{ return m_elements; } /** *

The elements that are included in a grid layout.

*/ inline bool ElementsHasBeenSet() const { return m_elementsHasBeenSet; } /** *

The elements that are included in a grid layout.

*/ inline void SetElements(const Aws::Vector& value) { m_elementsHasBeenSet = true; m_elements = value; } /** *

The elements that are included in a grid layout.

*/ inline void SetElements(Aws::Vector&& value) { m_elementsHasBeenSet = true; m_elements = std::move(value); } /** *

The elements that are included in a grid layout.

*/ inline GridLayoutConfiguration& WithElements(const Aws::Vector& value) { SetElements(value); return *this;} /** *

The elements that are included in a grid layout.

*/ inline GridLayoutConfiguration& WithElements(Aws::Vector&& value) { SetElements(std::move(value)); return *this;} /** *

The elements that are included in a grid layout.

*/ inline GridLayoutConfiguration& AddElements(const GridLayoutElement& value) { m_elementsHasBeenSet = true; m_elements.push_back(value); return *this; } /** *

The elements that are included in a grid layout.

*/ inline GridLayoutConfiguration& AddElements(GridLayoutElement&& value) { m_elementsHasBeenSet = true; m_elements.push_back(std::move(value)); return *this; } inline const GridLayoutCanvasSizeOptions& GetCanvasSizeOptions() const{ return m_canvasSizeOptions; } inline bool CanvasSizeOptionsHasBeenSet() const { return m_canvasSizeOptionsHasBeenSet; } inline void SetCanvasSizeOptions(const GridLayoutCanvasSizeOptions& value) { m_canvasSizeOptionsHasBeenSet = true; m_canvasSizeOptions = value; } inline void SetCanvasSizeOptions(GridLayoutCanvasSizeOptions&& value) { m_canvasSizeOptionsHasBeenSet = true; m_canvasSizeOptions = std::move(value); } inline GridLayoutConfiguration& WithCanvasSizeOptions(const GridLayoutCanvasSizeOptions& value) { SetCanvasSizeOptions(value); return *this;} inline GridLayoutConfiguration& WithCanvasSizeOptions(GridLayoutCanvasSizeOptions&& value) { SetCanvasSizeOptions(std::move(value)); return *this;} private: Aws::Vector m_elements; bool m_elementsHasBeenSet = false; GridLayoutCanvasSizeOptions m_canvasSizeOptions; bool m_canvasSizeOptionsHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws