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

com.pulumi.googlenative.vision.v1.kotlin.inputs.BoundingPolyArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.googlenative.vision.v1.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.vision.v1.inputs.BoundingPolyArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * A bounding polygon for the detected image annotation.
 * @property normalizedVertices The bounding polygon normalized vertices.
 * @property vertices The bounding polygon vertices.
 */
public data class BoundingPolyArgs(
    public val normalizedVertices: Output>? = null,
    public val vertices: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.vision.v1.inputs.BoundingPolyArgs =
        com.pulumi.googlenative.vision.v1.inputs.BoundingPolyArgs.builder()
            .normalizedVertices(
                normalizedVertices?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .vertices(
                vertices?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var vertices: Output>? = null

    /**
     * @param value The bounding polygon normalized vertices.
     */
    @JvmName("bfhmxqpmjcyxjppr")
    public suspend fun normalizedVertices(`value`: Output>) {
        this.normalizedVertices = value
    }

    @JvmName("lbdlhkpddbibpapj")
    public suspend fun normalizedVertices(vararg values: Output) {
        this.normalizedVertices = Output.all(values.asList())
    }

    /**
     * @param values The bounding polygon normalized vertices.
     */
    @JvmName("rjckyrqjkbpkxdqp")
    public suspend fun normalizedVertices(values: List>) {
        this.normalizedVertices = Output.all(values)
    }

    /**
     * @param value The bounding polygon vertices.
     */
    @JvmName("vipiihwopnsrtywt")
    public suspend fun vertices(`value`: Output>) {
        this.vertices = value
    }

    @JvmName("lkicnjpxtdqffwuu")
    public suspend fun vertices(vararg values: Output) {
        this.vertices = Output.all(values.asList())
    }

    /**
     * @param values The bounding polygon vertices.
     */
    @JvmName("hkrwdmwxgqpibndl")
    public suspend fun vertices(values: List>) {
        this.vertices = Output.all(values)
    }

    /**
     * @param value The bounding polygon normalized vertices.
     */
    @JvmName("qcvmtuiyspwululy")
    public suspend fun normalizedVertices(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.normalizedVertices = mapped
    }

    /**
     * @param argument The bounding polygon normalized vertices.
     */
    @JvmName("qqdipviehngvawel")
    public suspend fun normalizedVertices(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            NormalizedVertexArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.normalizedVertices = mapped
    }

    /**
     * @param argument The bounding polygon normalized vertices.
     */
    @JvmName("snyyufwpbtkqdybl")
    public suspend fun normalizedVertices(vararg argument: suspend NormalizedVertexArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            NormalizedVertexArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.normalizedVertices = mapped
    }

    /**
     * @param argument The bounding polygon normalized vertices.
     */
    @JvmName("lhvipwkllkjyasbl")
    public suspend fun normalizedVertices(argument: suspend NormalizedVertexArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(NormalizedVertexArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.normalizedVertices = mapped
    }

    /**
     * @param values The bounding polygon normalized vertices.
     */
    @JvmName("qignvpqhnskiqnmb")
    public suspend fun normalizedVertices(vararg values: NormalizedVertexArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.normalizedVertices = mapped
    }

    /**
     * @param value The bounding polygon vertices.
     */
    @JvmName("skiekpoefbhwlyrb")
    public suspend fun vertices(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vertices = mapped
    }

    /**
     * @param argument The bounding polygon vertices.
     */
    @JvmName("uttsinpsqjakdcjm")
    public suspend fun vertices(argument: List Unit>) {
        val toBeMapped = argument.toList().map { VertexArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.vertices = mapped
    }

    /**
     * @param argument The bounding polygon vertices.
     */
    @JvmName("qtpjfwsboxyiianf")
    public suspend fun vertices(vararg argument: suspend VertexArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { VertexArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.vertices = mapped
    }

    /**
     * @param argument The bounding polygon vertices.
     */
    @JvmName("oxopmtqfxfnoubem")
    public suspend fun vertices(argument: suspend VertexArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(VertexArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.vertices = mapped
    }

    /**
     * @param values The bounding polygon vertices.
     */
    @JvmName("afcqnmwdycbqxuwa")
    public suspend fun vertices(vararg values: VertexArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.vertices = mapped
    }

    internal fun build(): BoundingPolyArgs = BoundingPolyArgs(
        normalizedVertices = normalizedVertices,
        vertices = vertices,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy