cloudshift.awscdk.dsl.services.quicksight.CfnTemplatePanelTitleOptionsPropertyDsl.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.CfnTemplate
import kotlin.String
/**
* The options that determine the title styles for each small multiples panel.
*
* 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.*;
* PanelTitleOptionsProperty panelTitleOptionsProperty = PanelTitleOptionsProperty.builder()
* .fontConfiguration(FontConfigurationProperty.builder()
* .fontColor("fontColor")
* .fontDecoration("fontDecoration")
* .fontSize(FontSizeProperty.builder()
* .relative("relative")
* .build())
* .fontStyle("fontStyle")
* .fontWeight(FontWeightProperty.builder()
* .name("name")
* .build())
* .build())
* .horizontalTextAlignment("horizontalTextAlignment")
* .visibility("visibility")
* .build();
* ```
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-paneltitleoptions.html)
*/
@CdkDslMarker
public class CfnTemplatePanelTitleOptionsPropertyDsl {
private val cdkBuilder: CfnTemplate.PanelTitleOptionsProperty.Builder =
CfnTemplate.PanelTitleOptionsProperty.builder()
/**
* @param fontConfiguration the value to be set.
*/
public fun fontConfiguration(fontConfiguration: IResolvable) {
cdkBuilder.fontConfiguration(fontConfiguration)
}
/**
* @param fontConfiguration the value to be set.
*/
public fun fontConfiguration(fontConfiguration: CfnTemplate.FontConfigurationProperty) {
cdkBuilder.fontConfiguration(fontConfiguration)
}
/**
* @param horizontalTextAlignment Sets the horizontal text alignment of the title within each
* panel.
*/
public fun horizontalTextAlignment(horizontalTextAlignment: String) {
cdkBuilder.horizontalTextAlignment(horizontalTextAlignment)
}
/**
* @param visibility Determines whether or not panel titles are displayed.
*/
public fun visibility(visibility: String) {
cdkBuilder.visibility(visibility)
}
public fun build(): CfnTemplate.PanelTitleOptionsProperty = cdkBuilder.build()
}