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

com.pulumi.azurenative.logic.kotlin.inputs.AS2EnvelopeSettingsArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.logic.kotlin.inputs

import com.pulumi.azurenative.logic.inputs.AS2EnvelopeSettingsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * The AS2 agreement envelope settings.
 * @property autogenerateFileName The value indicating whether to auto generate file name.
 * @property fileNameTemplate The template for file name.
 * @property messageContentType The message content type.
 * @property suspendMessageOnFileNameGenerationError The value indicating whether to suspend message on file name generation error.
 * @property transmitFileNameInMimeHeader The value indicating whether to transmit file name in mime header.
 */
public data class AS2EnvelopeSettingsArgs(
    public val autogenerateFileName: Output,
    public val fileNameTemplate: Output,
    public val messageContentType: Output,
    public val suspendMessageOnFileNameGenerationError: Output,
    public val transmitFileNameInMimeHeader: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.logic.inputs.AS2EnvelopeSettingsArgs =
        com.pulumi.azurenative.logic.inputs.AS2EnvelopeSettingsArgs.builder()
            .autogenerateFileName(autogenerateFileName.applyValue({ args0 -> args0 }))
            .fileNameTemplate(fileNameTemplate.applyValue({ args0 -> args0 }))
            .messageContentType(messageContentType.applyValue({ args0 -> args0 }))
            .suspendMessageOnFileNameGenerationError(
                suspendMessageOnFileNameGenerationError.applyValue({ args0 ->
                    args0
                }),
            )
            .transmitFileNameInMimeHeader(transmitFileNameInMimeHeader.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AS2EnvelopeSettingsArgs].
 */
@PulumiTagMarker
public class AS2EnvelopeSettingsArgsBuilder internal constructor() {
    private var autogenerateFileName: Output? = null

    private var fileNameTemplate: Output? = null

    private var messageContentType: Output? = null

    private var suspendMessageOnFileNameGenerationError: Output? = null

    private var transmitFileNameInMimeHeader: Output? = null

    /**
     * @param value The value indicating whether to auto generate file name.
     */
    @JvmName("ljahxfixtgvaewme")
    public suspend fun autogenerateFileName(`value`: Output) {
        this.autogenerateFileName = value
    }

    /**
     * @param value The template for file name.
     */
    @JvmName("diauvyljgybfnkwo")
    public suspend fun fileNameTemplate(`value`: Output) {
        this.fileNameTemplate = value
    }

    /**
     * @param value The message content type.
     */
    @JvmName("otnpoamqqqbvmdoc")
    public suspend fun messageContentType(`value`: Output) {
        this.messageContentType = value
    }

    /**
     * @param value The value indicating whether to suspend message on file name generation error.
     */
    @JvmName("oretostmihcieesx")
    public suspend fun suspendMessageOnFileNameGenerationError(`value`: Output) {
        this.suspendMessageOnFileNameGenerationError = value
    }

    /**
     * @param value The value indicating whether to transmit file name in mime header.
     */
    @JvmName("yklulupyakdaedcn")
    public suspend fun transmitFileNameInMimeHeader(`value`: Output) {
        this.transmitFileNameInMimeHeader = value
    }

    /**
     * @param value The value indicating whether to auto generate file name.
     */
    @JvmName("davilvmqavlfaamh")
    public suspend fun autogenerateFileName(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.autogenerateFileName = mapped
    }

    /**
     * @param value The template for file name.
     */
    @JvmName("nydfjkfiwwxxripd")
    public suspend fun fileNameTemplate(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.fileNameTemplate = mapped
    }

    /**
     * @param value The message content type.
     */
    @JvmName("wtspsakcowxqvtte")
    public suspend fun messageContentType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.messageContentType = mapped
    }

    /**
     * @param value The value indicating whether to suspend message on file name generation error.
     */
    @JvmName("vdynbupvavlcitox")
    public suspend fun suspendMessageOnFileNameGenerationError(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.suspendMessageOnFileNameGenerationError = mapped
    }

    /**
     * @param value The value indicating whether to transmit file name in mime header.
     */
    @JvmName("aurjbaniopfykwib")
    public suspend fun transmitFileNameInMimeHeader(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.transmitFileNameInMimeHeader = mapped
    }

    internal fun build(): AS2EnvelopeSettingsArgs = AS2EnvelopeSettingsArgs(
        autogenerateFileName = autogenerateFileName ?: throw
            PulumiNullFieldException("autogenerateFileName"),
        fileNameTemplate = fileNameTemplate ?: throw PulumiNullFieldException("fileNameTemplate"),
        messageContentType = messageContentType ?: throw PulumiNullFieldException("messageContentType"),
        suspendMessageOnFileNameGenerationError = suspendMessageOnFileNameGenerationError ?: throw
            PulumiNullFieldException("suspendMessageOnFileNameGenerationError"),
        transmitFileNameInMimeHeader = transmitFileNameInMimeHeader ?: throw
            PulumiNullFieldException("transmitFileNameInMimeHeader"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy