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

com.pulumi.awsnative.ses.kotlin.MailManagerRelayArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.ses.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.ses.MailManagerRelayArgs.builder
import com.pulumi.awsnative.ses.kotlin.inputs.MailManagerRelayRelayAuthentication0PropertiesArgs
import com.pulumi.awsnative.ses.kotlin.inputs.MailManagerRelayRelayAuthentication1PropertiesArgs
import com.pulumi.core.Either
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.Double
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Definition of AWS::SES::MailManagerRelay Resource Type
 * @property authentication Authentication for the relay destination server—specify the secretARN where the SMTP credentials are stored.
 * @property relayName The unique relay name.
 * @property serverName The destination relay server address.
 * @property serverPort The destination relay server port.
 * @property tags The tags used to organize, track, or control access for the resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
 */
public data class MailManagerRelayArgs(
    public val authentication: Output>? =
        null,
    public val relayName: Output? = null,
    public val serverName: Output? = null,
    public val serverPort: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ses.MailManagerRelayArgs =
        com.pulumi.awsnative.ses.MailManagerRelayArgs.builder()
            .authentication(
                authentication?.applyValue({ args0 ->
                    args0.transform({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    }, { args0 -> args0.let({ args0 -> args0.toJava() }) })
                }),
            )
            .relayName(relayName?.applyValue({ args0 -> args0 }))
            .serverName(serverName?.applyValue({ args0 -> args0 }))
            .serverPort(serverPort?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [MailManagerRelayArgs].
 */
@PulumiTagMarker
public class MailManagerRelayArgsBuilder internal constructor() {
    private var authentication:
        Output>? =
        null

    private var relayName: Output? = null

    private var serverName: Output? = null

    private var serverPort: Output? = null

    private var tags: Output>? = null

    /**
     * @param value Authentication for the relay destination server—specify the secretARN where the SMTP credentials are stored.
     */
    @JvmName("pajpbwdmqitspidu")
    public suspend fun authentication(`value`: Output>) {
        this.authentication = value
    }

    /**
     * @param value The unique relay name.
     */
    @JvmName("nmuxfkmfctnoqxwe")
    public suspend fun relayName(`value`: Output) {
        this.relayName = value
    }

    /**
     * @param value The destination relay server address.
     */
    @JvmName("wadyemnvkpivtsyu")
    public suspend fun serverName(`value`: Output) {
        this.serverName = value
    }

    /**
     * @param value The destination relay server port.
     */
    @JvmName("swvavepbtwvxitqb")
    public suspend fun serverPort(`value`: Output) {
        this.serverPort = value
    }

    /**
     * @param value The tags used to organize, track, or control access for the resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
     */
    @JvmName("opoiiwyfaalqrmei")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values The tags used to organize, track, or control access for the resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
     */
    @JvmName("uaxnpqkdbrinduso")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value Authentication for the relay destination server—specify the secretARN where the SMTP credentials are stored.
     */
    @JvmName("dnjufntvjvovyuau")
    public suspend fun authentication(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.authentication = mapped
    }

    /**
     * @param value Authentication for the relay destination server—specify the secretARN where the SMTP credentials are stored.
     */
    @JvmName("qnnxvsvaoiuedumv")
    public fun authentication(`value`: MailManagerRelayRelayAuthentication0PropertiesArgs) {
        val toBeMapped = Either.ofLeft<
            MailManagerRelayRelayAuthentication0PropertiesArgs,
            MailManagerRelayRelayAuthentication1PropertiesArgs,
            >(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.authentication = mapped
    }

    /**
     * @param value Authentication for the relay destination server—specify the secretARN where the SMTP credentials are stored.
     */
    @JvmName("wdihrksrwplyqfme")
    public fun authentication(`value`: MailManagerRelayRelayAuthentication1PropertiesArgs) {
        val toBeMapped = Either.ofRight<
            MailManagerRelayRelayAuthentication0PropertiesArgs,
            MailManagerRelayRelayAuthentication1PropertiesArgs,
            >(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.authentication = mapped
    }

    /**
     * @param value The unique relay name.
     */
    @JvmName("rnohasbfnjbdhjaa")
    public suspend fun relayName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.relayName = mapped
    }

    /**
     * @param value The destination relay server address.
     */
    @JvmName("gneunvynvecjokfh")
    public suspend fun serverName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serverName = mapped
    }

    /**
     * @param value The destination relay server port.
     */
    @JvmName("gntkiswckrbbjsip")
    public suspend fun serverPort(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serverPort = mapped
    }

    /**
     * @param value The tags used to organize, track, or control access for the resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
     */
    @JvmName("krrurksddyxcgpof")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument The tags used to organize, track, or control access for the resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
     */
    @JvmName("velttaqoljciiedt")
    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 tags used to organize, track, or control access for the resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
     */
    @JvmName("hhnteivuwgueigur")
    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 tags used to organize, track, or control access for the resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
     */
    @JvmName("mnfmjxonpgnfayfa")
    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 tags used to organize, track, or control access for the resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
     */
    @JvmName("aiefpulsqyrwnijn")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): MailManagerRelayArgs = MailManagerRelayArgs(
        authentication = authentication,
        relayName = relayName,
        serverName = serverName,
        serverPort = serverPort,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy