All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cloudshift.awscdk.dsl.services.quicksight.CfnAnalysisLineSeriesAxisDisplayOptionsPropertyDsl.kt Maven / Gradle / Ivy

There is a newer version: 0.7.0
Show newest version
@file:Suppress("RedundantVisibilityModifier", "RedundantUnitReturnType", "RemoveRedundantQualifierName", "unused", "UnusedImport", "ClassName", "REDUNDANT_PROJECTION", "DEPRECATION")

package cloudshift.awscdk.dsl.services.quicksight

import cloudshift.awscdk.common.CdkDslMarker
import software.amazon.awscdk.IResolvable
import software.amazon.awscdk.services.quicksight.CfnAnalysis
import kotlin.Any
import kotlin.collections.Collection
import kotlin.collections.MutableList

/**
 * The series axis configuration of a line chart.
 *
 * Example:
 *
 * ```
 * // The code below shows an example of how to instantiate this type.
 * // The values are placeholders you should change.
 * import software.amazon.awscdk.services.quicksight.*;
 * Object dataDriven;
 * LineSeriesAxisDisplayOptionsProperty lineSeriesAxisDisplayOptionsProperty =
 * LineSeriesAxisDisplayOptionsProperty.builder()
 * .axisOptions(AxisDisplayOptionsProperty.builder()
 * .axisLineVisibility("axisLineVisibility")
 * .axisOffset("axisOffset")
 * .dataOptions(AxisDataOptionsProperty.builder()
 * .dateAxisOptions(DateAxisOptionsProperty.builder()
 * .missingDateVisibility("missingDateVisibility")
 * .build())
 * .numericAxisOptions(NumericAxisOptionsProperty.builder()
 * .range(AxisDisplayRangeProperty.builder()
 * .dataDriven(dataDriven)
 * .minMax(AxisDisplayMinMaxRangeProperty.builder()
 * .maximum(123)
 * .minimum(123)
 * .build())
 * .build())
 * .scale(AxisScaleProperty.builder()
 * .linear(AxisLinearScaleProperty.builder()
 * .stepCount(123)
 * .stepSize(123)
 * .build())
 * .logarithmic(AxisLogarithmicScaleProperty.builder()
 * .base(123)
 * .build())
 * .build())
 * .build())
 * .build())
 * .gridLineVisibility("gridLineVisibility")
 * .scrollbarOptions(ScrollBarOptionsProperty.builder()
 * .visibility("visibility")
 * .visibleRange(VisibleRangeOptionsProperty.builder()
 * .percentRange(PercentVisibleRangeProperty.builder()
 * .from(123)
 * .to(123)
 * .build())
 * .build())
 * .build())
 * .tickLabelOptions(AxisTickLabelOptionsProperty.builder()
 * .labelOptions(LabelOptionsProperty.builder()
 * .customLabel("customLabel")
 * .fontConfiguration(FontConfigurationProperty.builder()
 * .fontColor("fontColor")
 * .fontDecoration("fontDecoration")
 * .fontSize(FontSizeProperty.builder()
 * .relative("relative")
 * .build())
 * .fontStyle("fontStyle")
 * .fontWeight(FontWeightProperty.builder()
 * .name("name")
 * .build())
 * .build())
 * .visibility("visibility")
 * .build())
 * .rotationAngle(123)
 * .build())
 * .build())
 * .missingDataConfigurations(List.of(MissingDataConfigurationProperty.builder()
 * .treatmentOption("treatmentOption")
 * .build()))
 * .build();
 * ```
 *
 * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-lineseriesaxisdisplayoptions.html)
 */
@CdkDslMarker
public class CfnAnalysisLineSeriesAxisDisplayOptionsPropertyDsl {
    private val cdkBuilder: CfnAnalysis.LineSeriesAxisDisplayOptionsProperty.Builder =
        CfnAnalysis.LineSeriesAxisDisplayOptionsProperty.builder()

    private val _missingDataConfigurations: MutableList = mutableListOf()

    /**
     * @param axisOptions The options that determine the presentation of the line series axis.
     */
    public fun axisOptions(axisOptions: IResolvable) {
        cdkBuilder.axisOptions(axisOptions)
    }

    /**
     * @param axisOptions The options that determine the presentation of the line series axis.
     */
    public fun axisOptions(axisOptions: CfnAnalysis.AxisDisplayOptionsProperty) {
        cdkBuilder.axisOptions(axisOptions)
    }

    /**
     * @param missingDataConfigurations The configuration options that determine how missing data is
     * treated during the rendering of a line chart.
     */
    public fun missingDataConfigurations(vararg missingDataConfigurations: Any) {
        _missingDataConfigurations.addAll(listOf(*missingDataConfigurations))
    }

    /**
     * @param missingDataConfigurations The configuration options that determine how missing data is
     * treated during the rendering of a line chart.
     */
    public fun missingDataConfigurations(missingDataConfigurations: Collection) {
        _missingDataConfigurations.addAll(missingDataConfigurations)
    }

    /**
     * @param missingDataConfigurations The configuration options that determine how missing data is
     * treated during the rendering of a line chart.
     */
    public fun missingDataConfigurations(missingDataConfigurations: IResolvable) {
        cdkBuilder.missingDataConfigurations(missingDataConfigurations)
    }

    public fun build(): CfnAnalysis.LineSeriesAxisDisplayOptionsProperty {
        if (_missingDataConfigurations.isNotEmpty()) {
            cdkBuilder.missingDataConfigurations(_missingDataConfigurations)
        }
        return cdkBuilder.build()
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy