cloudshift.awscdk.dsl.services.quicksight.CfnDashboardGaugeChartConditionalFormattingPropertyDsl.kt Maven / Gradle / Ivy
@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.CfnDashboard
import kotlin.Any
import kotlin.collections.Collection
import kotlin.collections.MutableList
/**
* The conditional formatting of a `GaugeChartVisual` .
*
* 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.*;
* GaugeChartConditionalFormattingProperty gaugeChartConditionalFormattingProperty =
* GaugeChartConditionalFormattingProperty.builder()
* .conditionalFormattingOptions(List.of(GaugeChartConditionalFormattingOptionProperty.builder()
* .arc(GaugeChartArcConditionalFormattingProperty.builder()
* .foregroundColor(ConditionalFormattingColorProperty.builder()
* .gradient(ConditionalFormattingGradientColorProperty.builder()
* .color(GradientColorProperty.builder()
* .stops(List.of(GradientStopProperty.builder()
* .gradientOffset(123)
* // the properties below are optional
* .color("color")
* .dataValue(123)
* .build()))
* .build())
* .expression("expression")
* .build())
* .solid(ConditionalFormattingSolidColorProperty.builder()
* .expression("expression")
* // the properties below are optional
* .color("color")
* .build())
* .build())
* .build())
* .primaryValue(GaugeChartPrimaryValueConditionalFormattingProperty.builder()
* .icon(ConditionalFormattingIconProperty.builder()
* .customCondition(ConditionalFormattingCustomIconConditionProperty.builder()
* .expression("expression")
* .iconOptions(ConditionalFormattingCustomIconOptionsProperty.builder()
* .icon("icon")
* .unicodeIcon("unicodeIcon")
* .build())
* // the properties below are optional
* .color("color")
* .displayConfiguration(ConditionalFormattingIconDisplayConfigurationProperty.builder()
* .iconDisplayOption("iconDisplayOption")
* .build())
* .build())
* .iconSet(ConditionalFormattingIconSetProperty.builder()
* .expression("expression")
* // the properties below are optional
* .iconSetType("iconSetType")
* .build())
* .build())
* .textColor(ConditionalFormattingColorProperty.builder()
* .gradient(ConditionalFormattingGradientColorProperty.builder()
* .color(GradientColorProperty.builder()
* .stops(List.of(GradientStopProperty.builder()
* .gradientOffset(123)
* // the properties below are optional
* .color("color")
* .dataValue(123)
* .build()))
* .build())
* .expression("expression")
* .build())
* .solid(ConditionalFormattingSolidColorProperty.builder()
* .expression("expression")
* // the properties below are optional
* .color("color")
* .build())
* .build())
* .build())
* .build()))
* .build();
* ```
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-gaugechartconditionalformatting.html)
*/
@CdkDslMarker
public class CfnDashboardGaugeChartConditionalFormattingPropertyDsl {
private val cdkBuilder: CfnDashboard.GaugeChartConditionalFormattingProperty.Builder =
CfnDashboard.GaugeChartConditionalFormattingProperty.builder()
private val _conditionalFormattingOptions: MutableList = mutableListOf()
/**
* @param conditionalFormattingOptions Conditional formatting options of a `GaugeChartVisual` .
*/
public fun conditionalFormattingOptions(vararg conditionalFormattingOptions: Any) {
_conditionalFormattingOptions.addAll(listOf(*conditionalFormattingOptions))
}
/**
* @param conditionalFormattingOptions Conditional formatting options of a `GaugeChartVisual` .
*/
public fun conditionalFormattingOptions(conditionalFormattingOptions: Collection) {
_conditionalFormattingOptions.addAll(conditionalFormattingOptions)
}
/**
* @param conditionalFormattingOptions Conditional formatting options of a `GaugeChartVisual` .
*/
public fun conditionalFormattingOptions(conditionalFormattingOptions: IResolvable) {
cdkBuilder.conditionalFormattingOptions(conditionalFormattingOptions)
}
public fun build(): CfnDashboard.GaugeChartConditionalFormattingProperty {
if (_conditionalFormattingOptions.isNotEmpty()) {
cdkBuilder.conditionalFormattingOptions(_conditionalFormattingOptions)
}
return cdkBuilder.build()
}
}