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

com.pulumi.awsnative.detective.kotlin.GraphArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.detective.kotlin

import com.pulumi.awsnative.detective.GraphArgs.builder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
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.Boolean
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Resource schema for AWS::Detective::Graph
 * @property autoEnableMembers Indicates whether to automatically enable new organization accounts as member accounts in the organization behavior graph.
 * @property tags The tag values to assign to the new behavior graph.
 */
public data class GraphArgs(
    public val autoEnableMembers: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.detective.GraphArgs =
        com.pulumi.awsnative.detective.GraphArgs.builder()
            .autoEnableMembers(autoEnableMembers?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [GraphArgs].
 */
@PulumiTagMarker
public class GraphArgsBuilder internal constructor() {
    private var autoEnableMembers: Output? = null

    private var tags: Output>? = null

    /**
     * @param value Indicates whether to automatically enable new organization accounts as member accounts in the organization behavior graph.
     */
    @JvmName("auqowohvshcypxws")
    public suspend fun autoEnableMembers(`value`: Output) {
        this.autoEnableMembers = value
    }

    /**
     * @param value The tag values to assign to the new behavior graph.
     */
    @JvmName("kgududllpxlmvuwt")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values The tag values to assign to the new behavior graph.
     */
    @JvmName("lmyfqmlaacffjkpu")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value Indicates whether to automatically enable new organization accounts as member accounts in the organization behavior graph.
     */
    @JvmName("pbvxjrosfsjjlgru")
    public suspend fun autoEnableMembers(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.autoEnableMembers = mapped
    }

    /**
     * @param value The tag values to assign to the new behavior graph.
     */
    @JvmName("mjrerbcgtopakknt")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument The tag values to assign to the new behavior graph.
     */
    @JvmName("ofxqiycutwwteisg")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument The tag values to assign to the new behavior graph.
     */
    @JvmName("iixisbpslyrhgpgp")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument The tag values to assign to the new behavior graph.
     */
    @JvmName("utuxsrlavmqoftkk")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values The tag values to assign to the new behavior graph.
     */
    @JvmName("uwhgscpidathshnw")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): GraphArgs = GraphArgs(
        autoEnableMembers = autoEnableMembers,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy