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

cloudshift.awscdk.dsl.services.quicksight.CfnTemplateSankeyDiagramAggregatedFieldWellsPropertyDsl.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.CfnTemplate
import kotlin.Any
import kotlin.collections.Collection
import kotlin.collections.MutableList

/**
 * The field well configuration of a sankey diagram.
 *
 * Example:
 *
 * ```
 * ```
 *
 * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-sankeydiagramaggregatedfieldwells.html)
 */
@CdkDslMarker
public class CfnTemplateSankeyDiagramAggregatedFieldWellsPropertyDsl {
    private val cdkBuilder: CfnTemplate.SankeyDiagramAggregatedFieldWellsProperty.Builder =
        CfnTemplate.SankeyDiagramAggregatedFieldWellsProperty.builder()

    private val _destination: MutableList = mutableListOf()

    private val _source: MutableList = mutableListOf()

    private val _weight: MutableList = mutableListOf()

    /**
     * @param destination The destination field wells of a sankey diagram.
     */
    public fun destination(vararg destination: Any) {
        _destination.addAll(listOf(*destination))
    }

    /**
     * @param destination The destination field wells of a sankey diagram.
     */
    public fun destination(destination: Collection) {
        _destination.addAll(destination)
    }

    /**
     * @param destination The destination field wells of a sankey diagram.
     */
    public fun destination(destination: IResolvable) {
        cdkBuilder.destination(destination)
    }

    /**
     * @param source The source field wells of a sankey diagram.
     */
    public fun source(vararg source: Any) {
        _source.addAll(listOf(*source))
    }

    /**
     * @param source The source field wells of a sankey diagram.
     */
    public fun source(source: Collection) {
        _source.addAll(source)
    }

    /**
     * @param source The source field wells of a sankey diagram.
     */
    public fun source(source: IResolvable) {
        cdkBuilder.source(source)
    }

    /**
     * @param weight The weight field wells of a sankey diagram.
     */
    public fun weight(vararg weight: Any) {
        _weight.addAll(listOf(*weight))
    }

    /**
     * @param weight The weight field wells of a sankey diagram.
     */
    public fun weight(weight: Collection) {
        _weight.addAll(weight)
    }

    /**
     * @param weight The weight field wells of a sankey diagram.
     */
    public fun weight(weight: IResolvable) {
        cdkBuilder.weight(weight)
    }

    public fun build(): CfnTemplate.SankeyDiagramAggregatedFieldWellsProperty {
        if (_destination.isNotEmpty()) cdkBuilder.destination(_destination)
        if (_source.isNotEmpty()) cdkBuilder.source(_source)
        if (_weight.isNotEmpty()) cdkBuilder.weight(_weight)
        return cdkBuilder.build()
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy