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

com.pulumi.digitalocean.kotlin.inputs.GetImagePlainArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.digitalocean.kotlin.inputs

import com.pulumi.digitalocean.inputs.GetImagePlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * A collection of arguments for invoking getImage.
 * @property id The id of the image
 * @property name The name of the image.
 * @property slug The slug of the official image.
 * If `name` is specified, you may also specify:
 * @property source Restrict the search to one of the following categories of images:
 */
public data class GetImagePlainArgs(
    public val id: Int? = null,
    public val name: String? = null,
    public val slug: String? = null,
    public val source: String? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.digitalocean.inputs.GetImagePlainArgs =
        com.pulumi.digitalocean.inputs.GetImagePlainArgs.builder()
            .id(id?.let({ args0 -> args0 }))
            .name(name?.let({ args0 -> args0 }))
            .slug(slug?.let({ args0 -> args0 }))
            .source(source?.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetImagePlainArgs].
 */
@PulumiTagMarker
public class GetImagePlainArgsBuilder internal constructor() {
    private var id: Int? = null

    private var name: String? = null

    private var slug: String? = null

    private var source: String? = null

    /**
     * @param value The id of the image
     */
    @JvmName("mtibpsyylaeguvwd")
    public suspend fun id(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.id = mapped
    }

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

    /**
     * @param value The slug of the official image.
     * If `name` is specified, you may also specify:
     */
    @JvmName("qqmrvthrojeufvxj")
    public suspend fun slug(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.slug = mapped
    }

    /**
     * @param value Restrict the search to one of the following categories of images:
     */
    @JvmName("qreufwhcirnduvrx")
    public suspend fun source(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.source = mapped
    }

    internal fun build(): GetImagePlainArgs = GetImagePlainArgs(
        id = id,
        name = name,
        slug = slug,
        source = source,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy