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

cloudshift.awscdk.dsl.services.quicksight.CfnAnalysisAnalysisDefinitionPropertyDsl.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 definition of an analysis.
 *
 * Example:
 *
 * ```
 * ```
 *
 * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-analysisdefinition.html)
 */
@CdkDslMarker
public class CfnAnalysisAnalysisDefinitionPropertyDsl {
    private val cdkBuilder: CfnAnalysis.AnalysisDefinitionProperty.Builder =
        CfnAnalysis.AnalysisDefinitionProperty.builder()

    private val _calculatedFields: MutableList = mutableListOf()

    private val _columnConfigurations: MutableList = mutableListOf()

    private val _dataSetIdentifierDeclarations: MutableList = mutableListOf()

    private val _filterGroups: MutableList = mutableListOf()

    private val _parameterDeclarations: MutableList = mutableListOf()

    private val _sheets: MutableList = mutableListOf()

    /**
     * @param analysisDefaults the value to be set.
     */
    public fun analysisDefaults(analysisDefaults: IResolvable) {
        cdkBuilder.analysisDefaults(analysisDefaults)
    }

    /**
     * @param analysisDefaults the value to be set.
     */
    public fun analysisDefaults(analysisDefaults: CfnAnalysis.AnalysisDefaultsProperty) {
        cdkBuilder.analysisDefaults(analysisDefaults)
    }

    /**
     * @param calculatedFields An array of calculated field definitions for the analysis.
     */
    public fun calculatedFields(vararg calculatedFields: Any) {
        _calculatedFields.addAll(listOf(*calculatedFields))
    }

    /**
     * @param calculatedFields An array of calculated field definitions for the analysis.
     */
    public fun calculatedFields(calculatedFields: Collection) {
        _calculatedFields.addAll(calculatedFields)
    }

    /**
     * @param calculatedFields An array of calculated field definitions for the analysis.
     */
    public fun calculatedFields(calculatedFields: IResolvable) {
        cdkBuilder.calculatedFields(calculatedFields)
    }

    /**
     * @param columnConfigurations An array of analysis-level column configurations.
     * Column configurations can be used to set default formatting for a column to be used throughout
     * an analysis.
     */
    public fun columnConfigurations(vararg columnConfigurations: Any) {
        _columnConfigurations.addAll(listOf(*columnConfigurations))
    }

    /**
     * @param columnConfigurations An array of analysis-level column configurations.
     * Column configurations can be used to set default formatting for a column to be used throughout
     * an analysis.
     */
    public fun columnConfigurations(columnConfigurations: Collection) {
        _columnConfigurations.addAll(columnConfigurations)
    }

    /**
     * @param columnConfigurations An array of analysis-level column configurations.
     * Column configurations can be used to set default formatting for a column to be used throughout
     * an analysis.
     */
    public fun columnConfigurations(columnConfigurations: IResolvable) {
        cdkBuilder.columnConfigurations(columnConfigurations)
    }

    /**
     * @param dataSetIdentifierDeclarations An array of dataset identifier declarations.
     * This mapping allows the usage of dataset identifiers instead of dataset ARNs throughout
     * analysis sub-structures.
     */
    public fun dataSetIdentifierDeclarations(vararg dataSetIdentifierDeclarations: Any) {
        _dataSetIdentifierDeclarations.addAll(listOf(*dataSetIdentifierDeclarations))
    }

    /**
     * @param dataSetIdentifierDeclarations An array of dataset identifier declarations.
     * This mapping allows the usage of dataset identifiers instead of dataset ARNs throughout
     * analysis sub-structures.
     */
    public fun dataSetIdentifierDeclarations(dataSetIdentifierDeclarations: Collection) {
        _dataSetIdentifierDeclarations.addAll(dataSetIdentifierDeclarations)
    }

    /**
     * @param dataSetIdentifierDeclarations An array of dataset identifier declarations.
     * This mapping allows the usage of dataset identifiers instead of dataset ARNs throughout
     * analysis sub-structures.
     */
    public fun dataSetIdentifierDeclarations(dataSetIdentifierDeclarations: IResolvable) {
        cdkBuilder.dataSetIdentifierDeclarations(dataSetIdentifierDeclarations)
    }

    /**
     * @param filterGroups Filter definitions for an analysis.
     * For more information, see [Filtering Data in Amazon
   * QuickSight](https://docs.aws.amazon.com/quicksight/latest/user/adding-a-filter.html) in the
     * *Amazon QuickSight User Guide* .
     */
    public fun filterGroups(vararg filterGroups: Any) {
        _filterGroups.addAll(listOf(*filterGroups))
    }

    /**
     * @param filterGroups Filter definitions for an analysis.
     * For more information, see [Filtering Data in Amazon
   * QuickSight](https://docs.aws.amazon.com/quicksight/latest/user/adding-a-filter.html) in the
     * *Amazon QuickSight User Guide* .
     */
    public fun filterGroups(filterGroups: Collection) {
        _filterGroups.addAll(filterGroups)
    }

    /**
     * @param filterGroups Filter definitions for an analysis.
     * For more information, see [Filtering Data in Amazon
   * QuickSight](https://docs.aws.amazon.com/quicksight/latest/user/adding-a-filter.html) in the
     * *Amazon QuickSight User Guide* .
     */
    public fun filterGroups(filterGroups: IResolvable) {
        cdkBuilder.filterGroups(filterGroups)
    }

    /**
     * @param parameterDeclarations An array of parameter declarations for an analysis.
     * Parameters are named variables that can transfer a value for use by an action or an object.
     *
     * For more information, see [Parameters in Amazon
   * QuickSight](https://docs.aws.amazon.com/quicksight/latest/user/parameters-in-quicksight.html) in
     * the *Amazon QuickSight User Guide* .
     */
    public fun parameterDeclarations(vararg parameterDeclarations: Any) {
        _parameterDeclarations.addAll(listOf(*parameterDeclarations))
    }

    /**
     * @param parameterDeclarations An array of parameter declarations for an analysis.
     * Parameters are named variables that can transfer a value for use by an action or an object.
     *
     * For more information, see [Parameters in Amazon
   * QuickSight](https://docs.aws.amazon.com/quicksight/latest/user/parameters-in-quicksight.html) in
     * the *Amazon QuickSight User Guide* .
     */
    public fun parameterDeclarations(parameterDeclarations: Collection) {
        _parameterDeclarations.addAll(parameterDeclarations)
    }

    /**
     * @param parameterDeclarations An array of parameter declarations for an analysis.
     * Parameters are named variables that can transfer a value for use by an action or an object.
     *
     * For more information, see [Parameters in Amazon
   * QuickSight](https://docs.aws.amazon.com/quicksight/latest/user/parameters-in-quicksight.html) in
     * the *Amazon QuickSight User Guide* .
     */
    public fun parameterDeclarations(parameterDeclarations: IResolvable) {
        cdkBuilder.parameterDeclarations(parameterDeclarations)
    }

    /**
     * @param sheets An array of sheet definitions for an analysis.
     * Each `SheetDefinition` provides detailed information about a sheet within this analysis.
     */
    public fun sheets(vararg sheets: Any) {
        _sheets.addAll(listOf(*sheets))
    }

    /**
     * @param sheets An array of sheet definitions for an analysis.
     * Each `SheetDefinition` provides detailed information about a sheet within this analysis.
     */
    public fun sheets(sheets: Collection) {
        _sheets.addAll(sheets)
    }

    /**
     * @param sheets An array of sheet definitions for an analysis.
     * Each `SheetDefinition` provides detailed information about a sheet within this analysis.
     */
    public fun sheets(sheets: IResolvable) {
        cdkBuilder.sheets(sheets)
    }

    public fun build(): CfnAnalysis.AnalysisDefinitionProperty {
        if (_calculatedFields.isNotEmpty()) cdkBuilder.calculatedFields(_calculatedFields)
        if (_columnConfigurations.isNotEmpty()) cdkBuilder.columnConfigurations(_columnConfigurations)
        if (_dataSetIdentifierDeclarations.isNotEmpty()) {
            cdkBuilder.dataSetIdentifierDeclarations(_dataSetIdentifierDeclarations)
        }
        if (_filterGroups.isNotEmpty()) cdkBuilder.filterGroups(_filterGroups)
        if (_parameterDeclarations.isNotEmpty()) cdkBuilder.parameterDeclarations(_parameterDeclarations)
        if (_sheets.isNotEmpty()) cdkBuilder.sheets(_sheets)
        return cdkBuilder.build()
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy