com.pulumi.awsnative.quicksight.kotlin.inputs.TemplateReferenceLineLabelConfigurationArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.quicksight.kotlin.inputs
import com.pulumi.awsnative.quicksight.inputs.TemplateReferenceLineLabelConfigurationArgs.builder
import com.pulumi.awsnative.quicksight.kotlin.enums.TemplateReferenceLineLabelHorizontalPosition
import com.pulumi.awsnative.quicksight.kotlin.enums.TemplateReferenceLineLabelVerticalPosition
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property customLabelConfiguration The custom label configuration of the label in a reference line.
* @property fontColor The font color configuration of the label in a reference line.
* @property fontConfiguration The font configuration of the label in a reference line.
* @property horizontalPosition The horizontal position configuration of the label in a reference line. Choose one of the following options:
* - `LEFT`
* - `CENTER`
* - `RIGHT`
* @property valueLabelConfiguration The value label configuration of the label in a reference line.
* @property verticalPosition The vertical position configuration of the label in a reference line. Choose one of the following options:
* - `ABOVE`
* - `BELOW`
*/
public data class TemplateReferenceLineLabelConfigurationArgs(
public val customLabelConfiguration: Output? =
null,
public val fontColor: Output? = null,
public val fontConfiguration: Output? = null,
public val horizontalPosition: Output? = null,
public val valueLabelConfiguration: Output? =
null,
public val verticalPosition: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.quicksight.inputs.TemplateReferenceLineLabelConfigurationArgs =
com.pulumi.awsnative.quicksight.inputs.TemplateReferenceLineLabelConfigurationArgs.builder()
.customLabelConfiguration(
customLabelConfiguration?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.fontColor(fontColor?.applyValue({ args0 -> args0 }))
.fontConfiguration(fontConfiguration?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.horizontalPosition(
horizontalPosition?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.valueLabelConfiguration(
valueLabelConfiguration?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.verticalPosition(
verticalPosition?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [TemplateReferenceLineLabelConfigurationArgs].
*/
@PulumiTagMarker
public class TemplateReferenceLineLabelConfigurationArgsBuilder internal constructor() {
private var customLabelConfiguration: Output? =
null
private var fontColor: Output? = null
private var fontConfiguration: Output? = null
private var horizontalPosition: Output? = null
private var valueLabelConfiguration: Output? =
null
private var verticalPosition: Output? = null
/**
* @param value The custom label configuration of the label in a reference line.
*/
@JvmName("mudhaemtlqttwlrr")
public suspend fun customLabelConfiguration(`value`: Output) {
this.customLabelConfiguration = value
}
/**
* @param value The font color configuration of the label in a reference line.
*/
@JvmName("wvaeixiesgcanqjx")
public suspend fun fontColor(`value`: Output) {
this.fontColor = value
}
/**
* @param value The font configuration of the label in a reference line.
*/
@JvmName("tbiuikneddwohsfj")
public suspend fun fontConfiguration(`value`: Output) {
this.fontConfiguration = value
}
/**
* @param value The horizontal position configuration of the label in a reference line. Choose one of the following options:
* - `LEFT`
* - `CENTER`
* - `RIGHT`
*/
@JvmName("tioukgleficivhxa")
public suspend fun horizontalPosition(`value`: Output) {
this.horizontalPosition = value
}
/**
* @param value The value label configuration of the label in a reference line.
*/
@JvmName("tysehpqwovbiqdgn")
public suspend fun valueLabelConfiguration(`value`: Output) {
this.valueLabelConfiguration = value
}
/**
* @param value The vertical position configuration of the label in a reference line. Choose one of the following options:
* - `ABOVE`
* - `BELOW`
*/
@JvmName("akxtcvoldswodjjv")
public suspend fun verticalPosition(`value`: Output) {
this.verticalPosition = value
}
/**
* @param value The custom label configuration of the label in a reference line.
*/
@JvmName("apenhrfbodglrblr")
public suspend fun customLabelConfiguration(`value`: TemplateReferenceLineCustomLabelConfigurationArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.customLabelConfiguration = mapped
}
/**
* @param argument The custom label configuration of the label in a reference line.
*/
@JvmName("sthnxaqaqpylbhgs")
public suspend fun customLabelConfiguration(argument: suspend TemplateReferenceLineCustomLabelConfigurationArgsBuilder.() -> Unit) {
val toBeMapped = TemplateReferenceLineCustomLabelConfigurationArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.customLabelConfiguration = mapped
}
/**
* @param value The font color configuration of the label in a reference line.
*/
@JvmName("pvxfbvjjxtgeduvx")
public suspend fun fontColor(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.fontColor = mapped
}
/**
* @param value The font configuration of the label in a reference line.
*/
@JvmName("mvlwjdmkfbxrsoao")
public suspend fun fontConfiguration(`value`: TemplateFontConfigurationArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.fontConfiguration = mapped
}
/**
* @param argument The font configuration of the label in a reference line.
*/
@JvmName("jmbtifufybfvbylw")
public suspend fun fontConfiguration(argument: suspend TemplateFontConfigurationArgsBuilder.() -> Unit) {
val toBeMapped = TemplateFontConfigurationArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.fontConfiguration = mapped
}
/**
* @param value The horizontal position configuration of the label in a reference line. Choose one of the following options:
* - `LEFT`
* - `CENTER`
* - `RIGHT`
*/
@JvmName("gdsjitmhrpaaddad")
public suspend fun horizontalPosition(`value`: TemplateReferenceLineLabelHorizontalPosition?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.horizontalPosition = mapped
}
/**
* @param value The value label configuration of the label in a reference line.
*/
@JvmName("qgfdfbanguygnlir")
public suspend fun valueLabelConfiguration(`value`: TemplateReferenceLineValueLabelConfigurationArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.valueLabelConfiguration = mapped
}
/**
* @param argument The value label configuration of the label in a reference line.
*/
@JvmName("viqealwpgufobowy")
public suspend fun valueLabelConfiguration(argument: suspend TemplateReferenceLineValueLabelConfigurationArgsBuilder.() -> Unit) {
val toBeMapped = TemplateReferenceLineValueLabelConfigurationArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.valueLabelConfiguration = mapped
}
/**
* @param value The vertical position configuration of the label in a reference line. Choose one of the following options:
* - `ABOVE`
* - `BELOW`
*/
@JvmName("eotuymrwvdsqatyx")
public suspend fun verticalPosition(`value`: TemplateReferenceLineLabelVerticalPosition?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.verticalPosition = mapped
}
internal fun build(): TemplateReferenceLineLabelConfigurationArgs =
TemplateReferenceLineLabelConfigurationArgs(
customLabelConfiguration = customLabelConfiguration,
fontColor = fontColor,
fontConfiguration = fontConfiguration,
horizontalPosition = horizontalPosition,
valueLabelConfiguration = valueLabelConfiguration,
verticalPosition = verticalPosition,
)
}