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

com.pulumi.azurenative.securityinsights.kotlin.inputs.ContentPathMapArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.securityinsights.kotlin.inputs

import com.pulumi.azurenative.securityinsights.inputs.ContentPathMapArgs.builder
import com.pulumi.azurenative.securityinsights.kotlin.enums.ContentType
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * The mapping of content type to a repo path.
 * @property contentType Content type.
 * @property path The path to the content.
 */
public data class ContentPathMapArgs(
    public val contentType: Output>? = null,
    public val path: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.securityinsights.inputs.ContentPathMapArgs =
        com.pulumi.azurenative.securityinsights.inputs.ContentPathMapArgs.builder()
            .contentType(
                contentType?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .path(path?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ContentPathMapArgs].
 */
@PulumiTagMarker
public class ContentPathMapArgsBuilder internal constructor() {
    private var contentType: Output>? = null

    private var path: Output? = null

    /**
     * @param value Content type.
     */
    @JvmName("vnedpyvaxmunfirj")
    public suspend fun contentType(`value`: Output>) {
        this.contentType = value
    }

    /**
     * @param value The path to the content.
     */
    @JvmName("ecsdlkklshwmvdjk")
    public suspend fun path(`value`: Output) {
        this.path = value
    }

    /**
     * @param value Content type.
     */
    @JvmName("rsgckuclecsfeccg")
    public suspend fun contentType(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.contentType = mapped
    }

    /**
     * @param value Content type.
     */
    @JvmName("duhioxftyvaihdkh")
    public fun contentType(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.contentType = mapped
    }

    /**
     * @param value Content type.
     */
    @JvmName("apjpuoylejbaoeef")
    public fun contentType(`value`: ContentType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.contentType = mapped
    }

    /**
     * @param value The path to the content.
     */
    @JvmName("rdnulbwvdhcpbnqd")
    public suspend fun path(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.path = mapped
    }

    internal fun build(): ContentPathMapArgs = ContentPathMapArgs(
        contentType = contentType,
        path = path,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy