/** * 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 options for a paper canvas of a section-based layout.

See * Also:

AWS * API Reference

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

The paper size that is used to define canvas dimensions.

*/ inline const PaperSize& GetPaperSize() const{ return m_paperSize; } /** *

The paper size that is used to define canvas dimensions.

*/ inline bool PaperSizeHasBeenSet() const { return m_paperSizeHasBeenSet; } /** *

The paper size that is used to define canvas dimensions.

*/ inline void SetPaperSize(const PaperSize& value) { m_paperSizeHasBeenSet = true; m_paperSize = value; } /** *

The paper size that is used to define canvas dimensions.

*/ inline void SetPaperSize(PaperSize&& value) { m_paperSizeHasBeenSet = true; m_paperSize = std::move(value); } /** *

The paper size that is used to define canvas dimensions.

*/ inline SectionBasedLayoutPaperCanvasSizeOptions& WithPaperSize(const PaperSize& value) { SetPaperSize(value); return *this;} /** *

The paper size that is used to define canvas dimensions.

*/ inline SectionBasedLayoutPaperCanvasSizeOptions& WithPaperSize(PaperSize&& value) { SetPaperSize(std::move(value)); return *this;} /** *

The paper orientation that is used to define canvas dimensions. Choose one of * the following options:

  • PORTRAIT

  • LANDSCAPE

    *
*/ inline const PaperOrientation& GetPaperOrientation() const{ return m_paperOrientation; } /** *

The paper orientation that is used to define canvas dimensions. Choose one of * the following options:

  • PORTRAIT

  • LANDSCAPE

    *
*/ inline bool PaperOrientationHasBeenSet() const { return m_paperOrientationHasBeenSet; } /** *

The paper orientation that is used to define canvas dimensions. Choose one of * the following options:

  • PORTRAIT

  • LANDSCAPE

    *
*/ inline void SetPaperOrientation(const PaperOrientation& value) { m_paperOrientationHasBeenSet = true; m_paperOrientation = value; } /** *

The paper orientation that is used to define canvas dimensions. Choose one of * the following options:

  • PORTRAIT

  • LANDSCAPE

    *
*/ inline void SetPaperOrientation(PaperOrientation&& value) { m_paperOrientationHasBeenSet = true; m_paperOrientation = std::move(value); } /** *

The paper orientation that is used to define canvas dimensions. Choose one of * the following options:

  • PORTRAIT

  • LANDSCAPE

    *
*/ inline SectionBasedLayoutPaperCanvasSizeOptions& WithPaperOrientation(const PaperOrientation& value) { SetPaperOrientation(value); return *this;} /** *

The paper orientation that is used to define canvas dimensions. Choose one of * the following options:

  • PORTRAIT

  • LANDSCAPE

    *
*/ inline SectionBasedLayoutPaperCanvasSizeOptions& WithPaperOrientation(PaperOrientation&& value) { SetPaperOrientation(std::move(value)); return *this;} /** *

Defines the spacing between the canvas content and the top, bottom, left, and * right edges.

*/ inline const Spacing& GetPaperMargin() const{ return m_paperMargin; } /** *

Defines the spacing between the canvas content and the top, bottom, left, and * right edges.

*/ inline bool PaperMarginHasBeenSet() const { return m_paperMarginHasBeenSet; } /** *

Defines the spacing between the canvas content and the top, bottom, left, and * right edges.

*/ inline void SetPaperMargin(const Spacing& value) { m_paperMarginHasBeenSet = true; m_paperMargin = value; } /** *

Defines the spacing between the canvas content and the top, bottom, left, and * right edges.

*/ inline void SetPaperMargin(Spacing&& value) { m_paperMarginHasBeenSet = true; m_paperMargin = std::move(value); } /** *

Defines the spacing between the canvas content and the top, bottom, left, and * right edges.

*/ inline SectionBasedLayoutPaperCanvasSizeOptions& WithPaperMargin(const Spacing& value) { SetPaperMargin(value); return *this;} /** *

Defines the spacing between the canvas content and the top, bottom, left, and * right edges.

*/ inline SectionBasedLayoutPaperCanvasSizeOptions& WithPaperMargin(Spacing&& value) { SetPaperMargin(std::move(value)); return *this;} private: PaperSize m_paperSize; bool m_paperSizeHasBeenSet = false; PaperOrientation m_paperOrientation; bool m_paperOrientationHasBeenSet = false; Spacing m_paperMargin; bool m_paperMarginHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws