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

com.pulumi.awsnative.kotlin.inputs.AutoNamingArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.kotlin.inputs

import com.pulumi.awsnative.inputs.AutoNamingArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Auto-naming specification for the resource.
 * @property maxLength The maximum length of the name.
 * @property minLength The minimum length of the name.
 * @property propertyName The name of the property in the Cloud Control payload that is used to set the name of the resource.
 */
public data class AutoNamingArgs(
    public val maxLength: Output? = null,
    public val minLength: Output? = null,
    public val propertyName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.inputs.AutoNamingArgs =
        com.pulumi.awsnative.inputs.AutoNamingArgs.builder()
            .maxLength(maxLength?.applyValue({ args0 -> args0 }))
            .minLength(minLength?.applyValue({ args0 -> args0 }))
            .propertyName(propertyName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AutoNamingArgs].
 */
@PulumiTagMarker
public class AutoNamingArgsBuilder internal constructor() {
    private var maxLength: Output? = null

    private var minLength: Output? = null

    private var propertyName: Output? = null

    /**
     * @param value The maximum length of the name.
     */
    @JvmName("nqpgqcxsubdkmjrp")
    public suspend fun maxLength(`value`: Output) {
        this.maxLength = value
    }

    /**
     * @param value The minimum length of the name.
     */
    @JvmName("fapdrghojbacfblc")
    public suspend fun minLength(`value`: Output) {
        this.minLength = value
    }

    /**
     * @param value The name of the property in the Cloud Control payload that is used to set the name of the resource.
     */
    @JvmName("wetfbsbyjtsvwpuj")
    public suspend fun propertyName(`value`: Output) {
        this.propertyName = value
    }

    /**
     * @param value The maximum length of the name.
     */
    @JvmName("gxtplomnywwqyhpb")
    public suspend fun maxLength(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxLength = mapped
    }

    /**
     * @param value The minimum length of the name.
     */
    @JvmName("kkhmediwdosmpuei")
    public suspend fun minLength(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.minLength = mapped
    }

    /**
     * @param value The name of the property in the Cloud Control payload that is used to set the name of the resource.
     */
    @JvmName("fmqnfcpdrqbwsuue")
    public suspend fun propertyName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.propertyName = mapped
    }

    internal fun build(): AutoNamingArgs = AutoNamingArgs(
        maxLength = maxLength,
        minLength = minLength,
        propertyName = propertyName,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy