/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #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 that determine the presentation of the data labels.

See * Also:

AWS * API Reference

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

Determines the visibility of the data labels.

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

Determines the visibility of the data labels.

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

Determines the visibility of the data labels.

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

Determines the visibility of the data labels.

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

Determines the visibility of the data labels.

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

Determines the visibility of the data labels.

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

Determines the visibility of the category field labels.

*/ inline const Visibility& GetCategoryLabelVisibility() const{ return m_categoryLabelVisibility; } /** *

Determines the visibility of the category field labels.

*/ inline bool CategoryLabelVisibilityHasBeenSet() const { return m_categoryLabelVisibilityHasBeenSet; } /** *

Determines the visibility of the category field labels.

*/ inline void SetCategoryLabelVisibility(const Visibility& value) { m_categoryLabelVisibilityHasBeenSet = true; m_categoryLabelVisibility = value; } /** *

Determines the visibility of the category field labels.

*/ inline void SetCategoryLabelVisibility(Visibility&& value) { m_categoryLabelVisibilityHasBeenSet = true; m_categoryLabelVisibility = std::move(value); } /** *

Determines the visibility of the category field labels.

*/ inline DataLabelOptions& WithCategoryLabelVisibility(const Visibility& value) { SetCategoryLabelVisibility(value); return *this;} /** *

Determines the visibility of the category field labels.

*/ inline DataLabelOptions& WithCategoryLabelVisibility(Visibility&& value) { SetCategoryLabelVisibility(std::move(value)); return *this;} /** *

Determines the visibility of the measure field labels.

*/ inline const Visibility& GetMeasureLabelVisibility() const{ return m_measureLabelVisibility; } /** *

Determines the visibility of the measure field labels.

*/ inline bool MeasureLabelVisibilityHasBeenSet() const { return m_measureLabelVisibilityHasBeenSet; } /** *

Determines the visibility of the measure field labels.

*/ inline void SetMeasureLabelVisibility(const Visibility& value) { m_measureLabelVisibilityHasBeenSet = true; m_measureLabelVisibility = value; } /** *

Determines the visibility of the measure field labels.

*/ inline void SetMeasureLabelVisibility(Visibility&& value) { m_measureLabelVisibilityHasBeenSet = true; m_measureLabelVisibility = std::move(value); } /** *

Determines the visibility of the measure field labels.

*/ inline DataLabelOptions& WithMeasureLabelVisibility(const Visibility& value) { SetMeasureLabelVisibility(value); return *this;} /** *

Determines the visibility of the measure field labels.

*/ inline DataLabelOptions& WithMeasureLabelVisibility(Visibility&& value) { SetMeasureLabelVisibility(std::move(value)); return *this;} /** *

The option that determines the data label type.

*/ inline const Aws::Vector& GetDataLabelTypes() const{ return m_dataLabelTypes; } /** *

The option that determines the data label type.

*/ inline bool DataLabelTypesHasBeenSet() const { return m_dataLabelTypesHasBeenSet; } /** *

The option that determines the data label type.

*/ inline void SetDataLabelTypes(const Aws::Vector& value) { m_dataLabelTypesHasBeenSet = true; m_dataLabelTypes = value; } /** *

The option that determines the data label type.

*/ inline void SetDataLabelTypes(Aws::Vector&& value) { m_dataLabelTypesHasBeenSet = true; m_dataLabelTypes = std::move(value); } /** *

The option that determines the data label type.

*/ inline DataLabelOptions& WithDataLabelTypes(const Aws::Vector& value) { SetDataLabelTypes(value); return *this;} /** *

The option that determines the data label type.

*/ inline DataLabelOptions& WithDataLabelTypes(Aws::Vector&& value) { SetDataLabelTypes(std::move(value)); return *this;} /** *

The option that determines the data label type.

*/ inline DataLabelOptions& AddDataLabelTypes(const DataLabelType& value) { m_dataLabelTypesHasBeenSet = true; m_dataLabelTypes.push_back(value); return *this; } /** *

The option that determines the data label type.

*/ inline DataLabelOptions& AddDataLabelTypes(DataLabelType&& value) { m_dataLabelTypesHasBeenSet = true; m_dataLabelTypes.push_back(std::move(value)); return *this; } /** *

Determines the position of the data labels.

*/ inline const DataLabelPosition& GetPosition() const{ return m_position; } /** *

Determines the position of the data labels.

*/ inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; } /** *

Determines the position of the data labels.

*/ inline void SetPosition(const DataLabelPosition& value) { m_positionHasBeenSet = true; m_position = value; } /** *

Determines the position of the data labels.

*/ inline void SetPosition(DataLabelPosition&& value) { m_positionHasBeenSet = true; m_position = std::move(value); } /** *

Determines the position of the data labels.

*/ inline DataLabelOptions& WithPosition(const DataLabelPosition& value) { SetPosition(value); return *this;} /** *

Determines the position of the data labels.

*/ inline DataLabelOptions& WithPosition(DataLabelPosition&& value) { SetPosition(std::move(value)); return *this;} /** *

Determines the content of the data labels.

*/ inline const DataLabelContent& GetLabelContent() const{ return m_labelContent; } /** *

Determines the content of the data labels.

*/ inline bool LabelContentHasBeenSet() const { return m_labelContentHasBeenSet; } /** *

Determines the content of the data labels.

*/ inline void SetLabelContent(const DataLabelContent& value) { m_labelContentHasBeenSet = true; m_labelContent = value; } /** *

Determines the content of the data labels.

*/ inline void SetLabelContent(DataLabelContent&& value) { m_labelContentHasBeenSet = true; m_labelContent = std::move(value); } /** *

Determines the content of the data labels.

*/ inline DataLabelOptions& WithLabelContent(const DataLabelContent& value) { SetLabelContent(value); return *this;} /** *

Determines the content of the data labels.

*/ inline DataLabelOptions& WithLabelContent(DataLabelContent&& value) { SetLabelContent(std::move(value)); return *this;} /** *

Determines the font configuration of the data labels.

*/ inline const FontConfiguration& GetLabelFontConfiguration() const{ return m_labelFontConfiguration; } /** *

Determines the font configuration of the data labels.

*/ inline bool LabelFontConfigurationHasBeenSet() const { return m_labelFontConfigurationHasBeenSet; } /** *

Determines the font configuration of the data labels.

*/ inline void SetLabelFontConfiguration(const FontConfiguration& value) { m_labelFontConfigurationHasBeenSet = true; m_labelFontConfiguration = value; } /** *

Determines the font configuration of the data labels.

*/ inline void SetLabelFontConfiguration(FontConfiguration&& value) { m_labelFontConfigurationHasBeenSet = true; m_labelFontConfiguration = std::move(value); } /** *

Determines the font configuration of the data labels.

*/ inline DataLabelOptions& WithLabelFontConfiguration(const FontConfiguration& value) { SetLabelFontConfiguration(value); return *this;} /** *

Determines the font configuration of the data labels.

*/ inline DataLabelOptions& WithLabelFontConfiguration(FontConfiguration&& value) { SetLabelFontConfiguration(std::move(value)); return *this;} /** *

Determines the color of the data labels.

*/ inline const Aws::String& GetLabelColor() const{ return m_labelColor; } /** *

Determines the color of the data labels.

*/ inline bool LabelColorHasBeenSet() const { return m_labelColorHasBeenSet; } /** *

Determines the color of the data labels.

*/ inline void SetLabelColor(const Aws::String& value) { m_labelColorHasBeenSet = true; m_labelColor = value; } /** *

Determines the color of the data labels.

*/ inline void SetLabelColor(Aws::String&& value) { m_labelColorHasBeenSet = true; m_labelColor = std::move(value); } /** *

Determines the color of the data labels.

*/ inline void SetLabelColor(const char* value) { m_labelColorHasBeenSet = true; m_labelColor.assign(value); } /** *

Determines the color of the data labels.

*/ inline DataLabelOptions& WithLabelColor(const Aws::String& value) { SetLabelColor(value); return *this;} /** *

Determines the color of the data labels.

*/ inline DataLabelOptions& WithLabelColor(Aws::String&& value) { SetLabelColor(std::move(value)); return *this;} /** *

Determines the color of the data labels.

*/ inline DataLabelOptions& WithLabelColor(const char* value) { SetLabelColor(value); return *this;} /** *

Determines whether overlap is enabled or disabled for the data labels.

*/ inline const DataLabelOverlap& GetOverlap() const{ return m_overlap; } /** *

Determines whether overlap is enabled or disabled for the data labels.

*/ inline bool OverlapHasBeenSet() const { return m_overlapHasBeenSet; } /** *

Determines whether overlap is enabled or disabled for the data labels.

*/ inline void SetOverlap(const DataLabelOverlap& value) { m_overlapHasBeenSet = true; m_overlap = value; } /** *

Determines whether overlap is enabled or disabled for the data labels.

*/ inline void SetOverlap(DataLabelOverlap&& value) { m_overlapHasBeenSet = true; m_overlap = std::move(value); } /** *

Determines whether overlap is enabled or disabled for the data labels.

*/ inline DataLabelOptions& WithOverlap(const DataLabelOverlap& value) { SetOverlap(value); return *this;} /** *

Determines whether overlap is enabled or disabled for the data labels.

*/ inline DataLabelOptions& WithOverlap(DataLabelOverlap&& value) { SetOverlap(std::move(value)); return *this;} /** *

Determines the visibility of the total.

*/ inline const Visibility& GetTotalsVisibility() const{ return m_totalsVisibility; } /** *

Determines the visibility of the total.

*/ inline bool TotalsVisibilityHasBeenSet() const { return m_totalsVisibilityHasBeenSet; } /** *

Determines the visibility of the total.

*/ inline void SetTotalsVisibility(const Visibility& value) { m_totalsVisibilityHasBeenSet = true; m_totalsVisibility = value; } /** *

Determines the visibility of the total.

*/ inline void SetTotalsVisibility(Visibility&& value) { m_totalsVisibilityHasBeenSet = true; m_totalsVisibility = std::move(value); } /** *

Determines the visibility of the total.

*/ inline DataLabelOptions& WithTotalsVisibility(const Visibility& value) { SetTotalsVisibility(value); return *this;} /** *

Determines the visibility of the total.

*/ inline DataLabelOptions& WithTotalsVisibility(Visibility&& value) { SetTotalsVisibility(std::move(value)); return *this;} private: Visibility m_visibility; bool m_visibilityHasBeenSet = false; Visibility m_categoryLabelVisibility; bool m_categoryLabelVisibilityHasBeenSet = false; Visibility m_measureLabelVisibility; bool m_measureLabelVisibilityHasBeenSet = false; Aws::Vector m_dataLabelTypes; bool m_dataLabelTypesHasBeenSet = false; DataLabelPosition m_position; bool m_positionHasBeenSet = false; DataLabelContent m_labelContent; bool m_labelContentHasBeenSet = false; FontConfiguration m_labelFontConfiguration; bool m_labelFontConfigurationHasBeenSet = false; Aws::String m_labelColor; bool m_labelColorHasBeenSet = false; DataLabelOverlap m_overlap; bool m_overlapHasBeenSet = false; Visibility m_totalsVisibility; bool m_totalsVisibilityHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws