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

com.pulumi.awsnative.b2bi.kotlin.CapabilityArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.b2bi.kotlin

import com.pulumi.awsnative.b2bi.CapabilityArgs.builder
import com.pulumi.awsnative.b2bi.kotlin.enums.CapabilityType
import com.pulumi.awsnative.b2bi.kotlin.inputs.CapabilityConfigurationPropertiesArgs
import com.pulumi.awsnative.b2bi.kotlin.inputs.CapabilityConfigurationPropertiesArgsBuilder
import com.pulumi.awsnative.b2bi.kotlin.inputs.CapabilityS3LocationArgs
import com.pulumi.awsnative.b2bi.kotlin.inputs.CapabilityS3LocationArgsBuilder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Definition of AWS::B2BI::Capability Resource Type
 * @property configuration Specifies a structure that contains the details for a capability.
 * @property instructionsDocuments Specifies one or more locations in Amazon S3, each specifying an EDI document that can be used with this capability. Each item contains the name of the bucket and the key, to identify the document's location.
 * @property name The display name of the capability.
 * @property tags Specifies the key-value pairs assigned to ARNs that you can use to group and search for resources by type. You can attach this metadata to resources (capabilities, partnerships, and so on) for any purpose.
 * @property type Returns the type of the capability. Currently, only `edi` is supported.
 */
public data class CapabilityArgs(
    public val configuration: Output? = null,
    public val instructionsDocuments: Output>? = null,
    public val name: Output? = null,
    public val tags: Output>? = null,
    public val type: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.b2bi.CapabilityArgs =
        com.pulumi.awsnative.b2bi.CapabilityArgs.builder()
            .configuration(configuration?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .instructionsDocuments(
                instructionsDocuments?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .name(name?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .type(type?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [CapabilityArgs].
 */
@PulumiTagMarker
public class CapabilityArgsBuilder internal constructor() {
    private var configuration: Output? = null

    private var instructionsDocuments: Output>? = null

    private var name: Output? = null

    private var tags: Output>? = null

    private var type: Output? = null

    /**
     * @param value Specifies a structure that contains the details for a capability.
     */
    @JvmName("iflonfcfenkdrvru")
    public suspend fun configuration(`value`: Output) {
        this.configuration = value
    }

    /**
     * @param value Specifies one or more locations in Amazon S3, each specifying an EDI document that can be used with this capability. Each item contains the name of the bucket and the key, to identify the document's location.
     */
    @JvmName("irkeqjypdscjbyau")
    public suspend fun instructionsDocuments(`value`: Output>) {
        this.instructionsDocuments = value
    }

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

    /**
     * @param values Specifies one or more locations in Amazon S3, each specifying an EDI document that can be used with this capability. Each item contains the name of the bucket and the key, to identify the document's location.
     */
    @JvmName("eksahebuhlitluqj")
    public suspend fun instructionsDocuments(values: List>) {
        this.instructionsDocuments = Output.all(values)
    }

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

    /**
     * @param value Specifies the key-value pairs assigned to ARNs that you can use to group and search for resources by type. You can attach this metadata to resources (capabilities, partnerships, and so on) for any purpose.
     */
    @JvmName("oukhhlgteqxwgisn")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values Specifies the key-value pairs assigned to ARNs that you can use to group and search for resources by type. You can attach this metadata to resources (capabilities, partnerships, and so on) for any purpose.
     */
    @JvmName("uerjykighcupbomk")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value Returns the type of the capability. Currently, only `edi` is supported.
     */
    @JvmName("atssatcgekhlmusc")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value Specifies a structure that contains the details for a capability.
     */
    @JvmName("ckxvsycijfjfqkek")
    public suspend fun configuration(`value`: CapabilityConfigurationPropertiesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.configuration = mapped
    }

    /**
     * @param argument Specifies a structure that contains the details for a capability.
     */
    @JvmName("wgntrntgfqkwjsuu")
    public suspend fun configuration(argument: suspend CapabilityConfigurationPropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = CapabilityConfigurationPropertiesArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.configuration = mapped
    }

    /**
     * @param value Specifies one or more locations in Amazon S3, each specifying an EDI document that can be used with this capability. Each item contains the name of the bucket and the key, to identify the document's location.
     */
    @JvmName("hcmmqtorcbkejhfj")
    public suspend fun instructionsDocuments(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.instructionsDocuments = mapped
    }

    /**
     * @param argument Specifies one or more locations in Amazon S3, each specifying an EDI document that can be used with this capability. Each item contains the name of the bucket and the key, to identify the document's location.
     */
    @JvmName("iyemfvyaowvdwlgi")
    public suspend fun instructionsDocuments(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            CapabilityS3LocationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.instructionsDocuments = mapped
    }

    /**
     * @param argument Specifies one or more locations in Amazon S3, each specifying an EDI document that can be used with this capability. Each item contains the name of the bucket and the key, to identify the document's location.
     */
    @JvmName("ehowefnibxjxyged")
    public suspend fun instructionsDocuments(vararg argument: suspend CapabilityS3LocationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            CapabilityS3LocationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.instructionsDocuments = mapped
    }

    /**
     * @param argument Specifies one or more locations in Amazon S3, each specifying an EDI document that can be used with this capability. Each item contains the name of the bucket and the key, to identify the document's location.
     */
    @JvmName("eintbyqixdfwvcgp")
    public suspend fun instructionsDocuments(argument: suspend CapabilityS3LocationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(CapabilityS3LocationArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.instructionsDocuments = mapped
    }

    /**
     * @param values Specifies one or more locations in Amazon S3, each specifying an EDI document that can be used with this capability. Each item contains the name of the bucket and the key, to identify the document's location.
     */
    @JvmName("ykcukyvoebskirld")
    public suspend fun instructionsDocuments(vararg values: CapabilityS3LocationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.instructionsDocuments = mapped
    }

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

    /**
     * @param value Specifies the key-value pairs assigned to ARNs that you can use to group and search for resources by type. You can attach this metadata to resources (capabilities, partnerships, and so on) for any purpose.
     */
    @JvmName("ksqipbgkiykanvws")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument Specifies the key-value pairs assigned to ARNs that you can use to group and search for resources by type. You can attach this metadata to resources (capabilities, partnerships, and so on) for any purpose.
     */
    @JvmName("shouttortekwttjh")
    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 Specifies the key-value pairs assigned to ARNs that you can use to group and search for resources by type. You can attach this metadata to resources (capabilities, partnerships, and so on) for any purpose.
     */
    @JvmName("vqkjdvgcqvdrtdvf")
    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 Specifies the key-value pairs assigned to ARNs that you can use to group and search for resources by type. You can attach this metadata to resources (capabilities, partnerships, and so on) for any purpose.
     */
    @JvmName("fwixmqlrtafjrurj")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values Specifies the key-value pairs assigned to ARNs that you can use to group and search for resources by type. You can attach this metadata to resources (capabilities, partnerships, and so on) for any purpose.
     */
    @JvmName("kaxidjumqifkyulu")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value Returns the type of the capability. Currently, only `edi` is supported.
     */
    @JvmName("vfnaaepqjscyvbiq")
    public suspend fun type(`value`: CapabilityType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): CapabilityArgs = CapabilityArgs(
        configuration = configuration,
        instructionsDocuments = instructionsDocuments,
        name = name,
        tags = tags,
        type = type,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy