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

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

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

package com.pulumi.awsnative.b2bi.kotlin

import com.pulumi.awsnative.b2bi.ProfileArgs.builder
import com.pulumi.awsnative.b2bi.kotlin.enums.ProfileLogging
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::Profile Resource Type
 * @property businessName Returns the name for the business associated with this profile.
 * @property email
 * @property logging Specifies whether or not logging is enabled for this profile.
 * @property name Returns the display name for profile.
 * @property phone
 * @property tags A key-value pair for a specific profile. Tags are metadata that you can use to search for and group capabilities for various purposes.
 */
public data class ProfileArgs(
    public val businessName: Output? = null,
    public val email: Output? = null,
    public val logging: Output? = null,
    public val name: Output? = null,
    public val phone: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.b2bi.ProfileArgs =
        com.pulumi.awsnative.b2bi.ProfileArgs.builder()
            .businessName(businessName?.applyValue({ args0 -> args0 }))
            .email(email?.applyValue({ args0 -> args0 }))
            .logging(logging?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .name(name?.applyValue({ args0 -> args0 }))
            .phone(phone?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var email: Output? = null

    private var logging: Output? = null

    private var name: Output? = null

    private var phone: Output? = null

    private var tags: Output>? = null

    /**
     * @param value Returns the name for the business associated with this profile.
     */
    @JvmName("junyqrwkrkfhovco")
    public suspend fun businessName(`value`: Output) {
        this.businessName = value
    }

    /**
     * @param value
     */
    @JvmName("yuflhgebdfigbiyk")
    public suspend fun email(`value`: Output) {
        this.email = value
    }

    /**
     * @param value Specifies whether or not logging is enabled for this profile.
     */
    @JvmName("nvjilmgwvwxoqbsg")
    public suspend fun logging(`value`: Output) {
        this.logging = value
    }

    /**
     * @param value Returns the display name for profile.
     */
    @JvmName("jyhkfutlkdmjatts")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value
     */
    @JvmName("ogytaefnlywvrfdu")
    public suspend fun phone(`value`: Output) {
        this.phone = value
    }

    /**
     * @param value A key-value pair for a specific profile. Tags are metadata that you can use to search for and group capabilities for various purposes.
     */
    @JvmName("emxonoxchwqwvqqs")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values A key-value pair for a specific profile. Tags are metadata that you can use to search for and group capabilities for various purposes.
     */
    @JvmName("amnppwodcptqoljw")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value Returns the name for the business associated with this profile.
     */
    @JvmName("gnucgomxgjwhchho")
    public suspend fun businessName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.businessName = mapped
    }

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

    /**
     * @param value Specifies whether or not logging is enabled for this profile.
     */
    @JvmName("ukudhdmeudhhpwnf")
    public suspend fun logging(`value`: ProfileLogging?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.logging = mapped
    }

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

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

    /**
     * @param value A key-value pair for a specific profile. Tags are metadata that you can use to search for and group capabilities for various purposes.
     */
    @JvmName("vgdmndknqlfhtwid")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument A key-value pair for a specific profile. Tags are metadata that you can use to search for and group capabilities for various purposes.
     */
    @JvmName("yaamxlpusqguirmb")
    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 A key-value pair for a specific profile. Tags are metadata that you can use to search for and group capabilities for various purposes.
     */
    @JvmName("tudddgwsnducpoqu")
    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 A key-value pair for a specific profile. Tags are metadata that you can use to search for and group capabilities for various purposes.
     */
    @JvmName("rggwotbpadjlpwnw")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values A key-value pair for a specific profile. Tags are metadata that you can use to search for and group capabilities for various purposes.
     */
    @JvmName("ugvcpketxinshmud")
    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(
        businessName = businessName,
        email = email,
        logging = logging,
        name = name,
        phone = phone,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy