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

com.pulumi.awsnative.ses.kotlin.MailManagerIngressPointArgs.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: 0.122.0.0
Show newest version
@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.MailManagerIngressPointArgs.builder
import com.pulumi.awsnative.ses.kotlin.enums.MailManagerIngressPointIngressPointStatusToUpdate
import com.pulumi.awsnative.ses.kotlin.enums.MailManagerIngressPointIngressPointType
import com.pulumi.awsnative.ses.kotlin.inputs.MailManagerIngressPointIngressPointConfiguration0PropertiesArgs
import com.pulumi.awsnative.ses.kotlin.inputs.MailManagerIngressPointIngressPointConfiguration1PropertiesArgs
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Definition of AWS::SES::MailManagerIngressPoint Resource Type
 * @property ingressPointConfiguration The configuration of the ingress endpoint resource.
 * @property ingressPointName A user friendly name for an ingress endpoint resource.
 * @property ruleSetId The identifier of an existing rule set that you attach to an ingress endpoint resource.
 * @property statusToUpdate The update status of an ingress endpoint.
 * @property tags The tags used to organize, track, or control access for the resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
 * @property trafficPolicyId The identifier of an existing traffic policy that you attach to an ingress endpoint resource.
 * @property type The type of the ingress endpoint to create.
 */
public data class MailManagerIngressPointArgs(
    public val ingressPointConfiguration: Output>? =
        null,
    public val ingressPointName: Output? = null,
    public val ruleSetId: Output? = null,
    public val statusToUpdate: Output? = null,
    public val tags: Output>? = null,
    public val trafficPolicyId: Output? = null,
    public val type: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ses.MailManagerIngressPointArgs =
        com.pulumi.awsnative.ses.MailManagerIngressPointArgs.builder()
            .ingressPointConfiguration(
                ingressPointConfiguration?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0.let({ args0 -> args0.toJava() }) }, { args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .ingressPointName(ingressPointName?.applyValue({ args0 -> args0 }))
            .ruleSetId(ruleSetId?.applyValue({ args0 -> args0 }))
            .statusToUpdate(statusToUpdate?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .trafficPolicyId(trafficPolicyId?.applyValue({ args0 -> args0 }))
            .type(type?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

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

    private var ingressPointName: Output? = null

    private var ruleSetId: Output? = null

    private var statusToUpdate: Output? = null

    private var tags: Output>? = null

    private var trafficPolicyId: Output? = null

    private var type: Output? = null

    /**
     * @param value The configuration of the ingress endpoint resource.
     */
    @JvmName("mstykebhtvwiojkj")
    public suspend fun ingressPointConfiguration(`value`: Output>) {
        this.ingressPointConfiguration = value
    }

    /**
     * @param value A user friendly name for an ingress endpoint resource.
     */
    @JvmName("fnclywpvdkahfwpk")
    public suspend fun ingressPointName(`value`: Output) {
        this.ingressPointName = value
    }

    /**
     * @param value The identifier of an existing rule set that you attach to an ingress endpoint resource.
     */
    @JvmName("dcjaewsqesfylcdp")
    public suspend fun ruleSetId(`value`: Output) {
        this.ruleSetId = value
    }

    /**
     * @param value The update status of an ingress endpoint.
     */
    @JvmName("yvxbbbgunhgkycsl")
    public suspend fun statusToUpdate(`value`: Output) {
        this.statusToUpdate = value
    }

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

    @JvmName("yiocrfxyjtpaqmus")
    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("kcgjilpdryskoevq")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The identifier of an existing traffic policy that you attach to an ingress endpoint resource.
     */
    @JvmName("ysvhjegefxinixgr")
    public suspend fun trafficPolicyId(`value`: Output) {
        this.trafficPolicyId = value
    }

    /**
     * @param value The type of the ingress endpoint to create.
     */
    @JvmName("hxmbolxbngiubbea")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The configuration of the ingress endpoint resource.
     */
    @JvmName("ypjaoimdgibpwtyb")
    public suspend fun ingressPointConfiguration(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ingressPointConfiguration = mapped
    }

    /**
     * @param value The configuration of the ingress endpoint resource.
     */
    @JvmName("nbegselxsmieuewq")
    public fun ingressPointConfiguration(`value`: MailManagerIngressPointIngressPointConfiguration0PropertiesArgs) {
        val toBeMapped = Either.ofLeft<
            MailManagerIngressPointIngressPointConfiguration0PropertiesArgs,
            MailManagerIngressPointIngressPointConfiguration1PropertiesArgs,
            >(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ingressPointConfiguration = mapped
    }

    /**
     * @param value The configuration of the ingress endpoint resource.
     */
    @JvmName("jeqrqbhsvipcfeal")
    public fun ingressPointConfiguration(`value`: MailManagerIngressPointIngressPointConfiguration1PropertiesArgs) {
        val toBeMapped = Either.ofRight<
            MailManagerIngressPointIngressPointConfiguration0PropertiesArgs,
            MailManagerIngressPointIngressPointConfiguration1PropertiesArgs,
            >(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ingressPointConfiguration = mapped
    }

    /**
     * @param value A user friendly name for an ingress endpoint resource.
     */
    @JvmName("glxqybjumphhpcdj")
    public suspend fun ingressPointName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ingressPointName = mapped
    }

    /**
     * @param value The identifier of an existing rule set that you attach to an ingress endpoint resource.
     */
    @JvmName("rsnvyejkgbuufocl")
    public suspend fun ruleSetId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ruleSetId = mapped
    }

    /**
     * @param value The update status of an ingress endpoint.
     */
    @JvmName("hfkmjemddhikrmnp")
    public suspend fun statusToUpdate(`value`: MailManagerIngressPointIngressPointStatusToUpdate?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.statusToUpdate = mapped
    }

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

    /**
     * @param value The identifier of an existing traffic policy that you attach to an ingress endpoint resource.
     */
    @JvmName("lvpvhdmnodkgbmxm")
    public suspend fun trafficPolicyId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.trafficPolicyId = mapped
    }

    /**
     * @param value The type of the ingress endpoint to create.
     */
    @JvmName("rowofysyygtbjxyk")
    public suspend fun type(`value`: MailManagerIngressPointIngressPointType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): MailManagerIngressPointArgs = MailManagerIngressPointArgs(
        ingressPointConfiguration = ingressPointConfiguration,
        ingressPointName = ingressPointName,
        ruleSetId = ruleSetId,
        statusToUpdate = statusToUpdate,
        tags = tags,
        trafficPolicyId = trafficPolicyId,
        type = type,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy