/** * 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 label options for a chart axis. You must specify the field that the label * is targeted to.

See Also:

AWS * API Reference

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

The font configuration of the axis label.

*/ inline const FontConfiguration& GetFontConfiguration() const{ return m_fontConfiguration; } /** *

The font configuration of the axis label.

*/ inline bool FontConfigurationHasBeenSet() const { return m_fontConfigurationHasBeenSet; } /** *

The font configuration of the axis label.

*/ inline void SetFontConfiguration(const FontConfiguration& value) { m_fontConfigurationHasBeenSet = true; m_fontConfiguration = value; } /** *

The font configuration of the axis label.

*/ inline void SetFontConfiguration(FontConfiguration&& value) { m_fontConfigurationHasBeenSet = true; m_fontConfiguration = std::move(value); } /** *

The font configuration of the axis label.

*/ inline AxisLabelOptions& WithFontConfiguration(const FontConfiguration& value) { SetFontConfiguration(value); return *this;} /** *

The font configuration of the axis label.

*/ inline AxisLabelOptions& WithFontConfiguration(FontConfiguration&& value) { SetFontConfiguration(std::move(value)); return *this;} /** *

The text for the axis label.

*/ inline const Aws::String& GetCustomLabel() const{ return m_customLabel; } /** *

The text for the axis label.

*/ inline bool CustomLabelHasBeenSet() const { return m_customLabelHasBeenSet; } /** *

The text for the axis label.

*/ inline void SetCustomLabel(const Aws::String& value) { m_customLabelHasBeenSet = true; m_customLabel = value; } /** *

The text for the axis label.

*/ inline void SetCustomLabel(Aws::String&& value) { m_customLabelHasBeenSet = true; m_customLabel = std::move(value); } /** *

The text for the axis label.

*/ inline void SetCustomLabel(const char* value) { m_customLabelHasBeenSet = true; m_customLabel.assign(value); } /** *

The text for the axis label.

*/ inline AxisLabelOptions& WithCustomLabel(const Aws::String& value) { SetCustomLabel(value); return *this;} /** *

The text for the axis label.

*/ inline AxisLabelOptions& WithCustomLabel(Aws::String&& value) { SetCustomLabel(std::move(value)); return *this;} /** *

The text for the axis label.

*/ inline AxisLabelOptions& WithCustomLabel(const char* value) { SetCustomLabel(value); return *this;} /** *

The options that indicate which field the label belongs to.

*/ inline const AxisLabelReferenceOptions& GetApplyTo() const{ return m_applyTo; } /** *

The options that indicate which field the label belongs to.

*/ inline bool ApplyToHasBeenSet() const { return m_applyToHasBeenSet; } /** *

The options that indicate which field the label belongs to.

*/ inline void SetApplyTo(const AxisLabelReferenceOptions& value) { m_applyToHasBeenSet = true; m_applyTo = value; } /** *

The options that indicate which field the label belongs to.

*/ inline void SetApplyTo(AxisLabelReferenceOptions&& value) { m_applyToHasBeenSet = true; m_applyTo = std::move(value); } /** *

The options that indicate which field the label belongs to.

*/ inline AxisLabelOptions& WithApplyTo(const AxisLabelReferenceOptions& value) { SetApplyTo(value); return *this;} /** *

The options that indicate which field the label belongs to.

*/ inline AxisLabelOptions& WithApplyTo(AxisLabelReferenceOptions&& value) { SetApplyTo(std::move(value)); return *this;} private: FontConfiguration m_fontConfiguration; bool m_fontConfigurationHasBeenSet = false; Aws::String m_customLabel; bool m_customLabelHasBeenSet = false; AxisLabelReferenceOptions m_applyTo; bool m_applyToHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws