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

com.pulumi.awsnative.databrew.kotlin.inputs.ProjectSampleArgs.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.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.databrew.kotlin.inputs

import com.pulumi.awsnative.databrew.inputs.ProjectSampleArgs.builder
import com.pulumi.awsnative.databrew.kotlin.enums.ProjectSampleType
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property size Sample size
 * @property type Sample type
 */
public data class ProjectSampleArgs(
    public val size: Output? = null,
    public val type: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.databrew.inputs.ProjectSampleArgs =
        com.pulumi.awsnative.databrew.inputs.ProjectSampleArgs.builder()
            .size(size?.applyValue({ args0 -> args0 }))
            .type(type.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [ProjectSampleArgs].
 */
@PulumiTagMarker
public class ProjectSampleArgsBuilder internal constructor() {
    private var size: Output? = null

    private var type: Output? = null

    /**
     * @param value Sample size
     */
    @JvmName("olxivmufelumnxul")
    public suspend fun size(`value`: Output) {
        this.size = value
    }

    /**
     * @param value Sample type
     */
    @JvmName("cvptpomferxfrmgj")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value Sample size
     */
    @JvmName("gmowmhbkvnpboqfc")
    public suspend fun size(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.size = mapped
    }

    /**
     * @param value Sample type
     */
    @JvmName("qgsdjfuhbhvadfau")
    public suspend fun type(`value`: ProjectSampleType) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): ProjectSampleArgs = ProjectSampleArgs(
        size = size,
        type = type ?: throw PulumiNullFieldException("type"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy