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

com.pulumi.awsnative.transfer.kotlin.ProfileArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.transfer.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.transfer.ProfileArgs.builder
import com.pulumi.awsnative.transfer.kotlin.enums.ProfileType
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

/**
 * Resource Type definition for AWS::Transfer::Profile
 * @property as2Id AS2 identifier agreed with a trading partner.
 * @property certificateIds List of the certificate IDs associated with this profile to be used for encryption and signing of AS2 messages.
 * @property profileType Enum specifying whether the profile is local or associated with a trading partner.
 * @property tags An array of key-value pairs to apply to this resource.
 */
public data class ProfileArgs(
    public val as2Id: Output? = null,
    public val certificateIds: Output>? = null,
    public val profileType: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.transfer.ProfileArgs =
        com.pulumi.awsnative.transfer.ProfileArgs.builder()
            .as2Id(as2Id?.applyValue({ args0 -> args0 }))
            .certificateIds(certificateIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .profileType(profileType?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ProfileArgs].
 */
@PulumiTagMarker
public class ProfileArgsBuilder internal constructor() {
    private var as2Id: Output? = null

    private var certificateIds: Output>? = null

    private var profileType: Output? = null

    private var tags: Output>? = null

    /**
     * @param value AS2 identifier agreed with a trading partner.
     */
    @JvmName("akwhxdsmfcymgtfk")
    public suspend fun as2Id(`value`: Output) {
        this.as2Id = value
    }

    /**
     * @param value List of the certificate IDs associated with this profile to be used for encryption and signing of AS2 messages.
     */
    @JvmName("elnyqxthrodrbvpl")
    public suspend fun certificateIds(`value`: Output>) {
        this.certificateIds = value
    }

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

    /**
     * @param values List of the certificate IDs associated with this profile to be used for encryption and signing of AS2 messages.
     */
    @JvmName("chbyuksirnahvrqp")
    public suspend fun certificateIds(values: List>) {
        this.certificateIds = Output.all(values)
    }

    /**
     * @param value Enum specifying whether the profile is local or associated with a trading partner.
     */
    @JvmName("xgcmocatlokektkg")
    public suspend fun profileType(`value`: Output) {
        this.profileType = value
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("admfmjfhmpepnoop")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("hvybaufwwqtxlnog")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value AS2 identifier agreed with a trading partner.
     */
    @JvmName("ytsigdlfptlcsjia")
    public suspend fun as2Id(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.as2Id = mapped
    }

    /**
     * @param value List of the certificate IDs associated with this profile to be used for encryption and signing of AS2 messages.
     */
    @JvmName("tiftcodjesqsfwuu")
    public suspend fun certificateIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.certificateIds = mapped
    }

    /**
     * @param values List of the certificate IDs associated with this profile to be used for encryption and signing of AS2 messages.
     */
    @JvmName("lyunbbwwpjrljhql")
    public suspend fun certificateIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.certificateIds = mapped
    }

    /**
     * @param value Enum specifying whether the profile is local or associated with a trading partner.
     */
    @JvmName("fmhrqagpvagocstv")
    public suspend fun profileType(`value`: ProfileType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.profileType = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("oahlfonqkdigiebo")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("krynvlrfytvvqhbn")
    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 An array of key-value pairs to apply to this resource.
     */
    @JvmName("cycfnrnegcuwofqf")
    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 An array of key-value pairs to apply to this resource.
     */
    @JvmName("yamddpwxwstsodrn")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("xtprbprpayasghhs")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): ProfileArgs = ProfileArgs(
        as2Id = as2Id,
        certificateIds = certificateIds,
        profileType = profileType,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy