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

com.pulumi.awsnative.cloudfront.kotlin.KeyValueStoreArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.cloudfront.kotlin

import com.pulumi.awsnative.cloudfront.KeyValueStoreArgs.builder
import com.pulumi.awsnative.cloudfront.kotlin.inputs.KeyValueStoreImportSourceArgs
import com.pulumi.awsnative.cloudfront.kotlin.inputs.KeyValueStoreImportSourceArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Resource Type definition for AWS::CloudFront::KeyValueStore
 * @property comment A comment for the key value store.
 * @property importSource The import source for the key value store.
 * @property name The name of the key value store.
 */
public data class KeyValueStoreArgs(
    public val comment: Output? = null,
    public val importSource: Output? = null,
    public val name: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.cloudfront.KeyValueStoreArgs =
        com.pulumi.awsnative.cloudfront.KeyValueStoreArgs.builder()
            .comment(comment?.applyValue({ args0 -> args0 }))
            .importSource(importSource?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .name(name?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [KeyValueStoreArgs].
 */
@PulumiTagMarker
public class KeyValueStoreArgsBuilder internal constructor() {
    private var comment: Output? = null

    private var importSource: Output? = null

    private var name: Output? = null

    /**
     * @param value A comment for the key value store.
     */
    @JvmName("rhscresrbbwspref")
    public suspend fun comment(`value`: Output) {
        this.comment = value
    }

    /**
     * @param value The import source for the key value store.
     */
    @JvmName("rfcryfmynubdewdb")
    public suspend fun importSource(`value`: Output) {
        this.importSource = value
    }

    /**
     * @param value The name of the key value store.
     */
    @JvmName("nqkguylgaabxmmko")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value A comment for the key value store.
     */
    @JvmName("nrtijdqclvlmdups")
    public suspend fun comment(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.comment = mapped
    }

    /**
     * @param value The import source for the key value store.
     */
    @JvmName("luwryahmnkfqkxxo")
    public suspend fun importSource(`value`: KeyValueStoreImportSourceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.importSource = mapped
    }

    /**
     * @param argument The import source for the key value store.
     */
    @JvmName("yynnhywisxjovwcv")
    public suspend fun importSource(argument: suspend KeyValueStoreImportSourceArgsBuilder.() -> Unit) {
        val toBeMapped = KeyValueStoreImportSourceArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.importSource = mapped
    }

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

    internal fun build(): KeyValueStoreArgs = KeyValueStoreArgs(
        comment = comment,
        importSource = importSource,
        name = name,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy