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

com.pulumi.awsnative.rds.kotlin.inputs.GetOptionGroupPlainArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.rds.kotlin.inputs

import com.pulumi.awsnative.rds.inputs.GetOptionGroupPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property optionGroupName The name of the option group to be created.
 *  Constraints:
 *   +  Must be 1 to 255 letters, numbers, or hyphens
 *   +  First character must be a letter
 *   +  Can't end with a hyphen or contain two consecutive hyphens
 *  Example: ``myoptiongroup``
 *  If you don't specify a value for ``OptionGroupName`` property, a name is automatically created for the option group.
 *   This value is stored as a lowercase string.
 */
public data class GetOptionGroupPlainArgs(
    public val optionGroupName: String,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.rds.inputs.GetOptionGroupPlainArgs =
        com.pulumi.awsnative.rds.inputs.GetOptionGroupPlainArgs.builder()
            .optionGroupName(optionGroupName.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetOptionGroupPlainArgs].
 */
@PulumiTagMarker
public class GetOptionGroupPlainArgsBuilder internal constructor() {
    private var optionGroupName: String? = null

    /**
     * @param value The name of the option group to be created.
     *  Constraints:
     *   +  Must be 1 to 255 letters, numbers, or hyphens
     *   +  First character must be a letter
     *   +  Can't end with a hyphen or contain two consecutive hyphens
     *  Example: ``myoptiongroup``
     *  If you don't specify a value for ``OptionGroupName`` property, a name is automatically created for the option group.
     *   This value is stored as a lowercase string.
     */
    @JvmName("jhwymjoflfuqxbsc")
    public suspend fun optionGroupName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.optionGroupName = mapped
    }

    internal fun build(): GetOptionGroupPlainArgs = GetOptionGroupPlainArgs(
        optionGroupName = optionGroupName ?: throw PulumiNullFieldException("optionGroupName"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy