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

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

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.11.0.0
Show newest version
@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("yfvablbltgrlpcnx")
    public suspend fun maxLength(`value`: Output) {
        this.maxLength = value
    }

    /**
     * @param value The minimum length of the name.
     */
    @JvmName("ltispcsuwpysyxgt")
    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("knxqddkltltvxphd")
    public suspend fun propertyName(`value`: Output) {
        this.propertyName = value
    }

    /**
     * @param value The maximum length of the name.
     */
    @JvmName("rrrkaqfcrgquqdsr")
    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("ffdqrdyscrdgdqxw")
    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("xrfubqrdwokemhjg")
    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 - 2024 Weber Informatics LLC | Privacy Policy