com.pulumi.azurenative.logic.kotlin.inputs.X12ValidationOverrideArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.logic.kotlin.inputs
import com.pulumi.azurenative.logic.inputs.X12ValidationOverrideArgs.builder
import com.pulumi.azurenative.logic.kotlin.enums.TrailingSeparatorPolicy
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.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* The X12 validation override settings.
* @property allowLeadingAndTrailingSpacesAndZeroes The value indicating whether to allow leading and trailing spaces and zeroes.
* @property messageId The message id on which the validation settings has to be applied.
* @property trailingSeparatorPolicy The trailing separator policy.
* @property trimLeadingAndTrailingSpacesAndZeroes The value indicating whether to trim leading and trailing spaces and zeroes.
* @property validateCharacterSet The value indicating whether to validate character Set.
* @property validateEDITypes The value indicating whether to validate EDI types.
* @property validateXSDTypes The value indicating whether to validate XSD types.
*/
public data class X12ValidationOverrideArgs(
public val allowLeadingAndTrailingSpacesAndZeroes: Output,
public val messageId: Output,
public val trailingSeparatorPolicy: Output>,
public val trimLeadingAndTrailingSpacesAndZeroes: Output,
public val validateCharacterSet: Output,
public val validateEDITypes: Output,
public val validateXSDTypes: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.logic.inputs.X12ValidationOverrideArgs =
com.pulumi.azurenative.logic.inputs.X12ValidationOverrideArgs.builder()
.allowLeadingAndTrailingSpacesAndZeroes(
allowLeadingAndTrailingSpacesAndZeroes.applyValue({ args0 ->
args0
}),
)
.messageId(messageId.applyValue({ args0 -> args0 }))
.trailingSeparatorPolicy(
trailingSeparatorPolicy.applyValue({ args0 ->
args0.transform({ args0 ->
args0
}, { args0 -> args0.let({ args0 -> args0.toJava() }) })
}),
)
.trimLeadingAndTrailingSpacesAndZeroes(
trimLeadingAndTrailingSpacesAndZeroes.applyValue({ args0 ->
args0
}),
)
.validateCharacterSet(validateCharacterSet.applyValue({ args0 -> args0 }))
.validateEDITypes(validateEDITypes.applyValue({ args0 -> args0 }))
.validateXSDTypes(validateXSDTypes.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [X12ValidationOverrideArgs].
*/
@PulumiTagMarker
public class X12ValidationOverrideArgsBuilder internal constructor() {
private var allowLeadingAndTrailingSpacesAndZeroes: Output? = null
private var messageId: Output? = null
private var trailingSeparatorPolicy: Output>? = null
private var trimLeadingAndTrailingSpacesAndZeroes: Output? = null
private var validateCharacterSet: Output? = null
private var validateEDITypes: Output? = null
private var validateXSDTypes: Output? = null
/**
* @param value The value indicating whether to allow leading and trailing spaces and zeroes.
*/
@JvmName("oidmairwrrpciodb")
public suspend fun allowLeadingAndTrailingSpacesAndZeroes(`value`: Output) {
this.allowLeadingAndTrailingSpacesAndZeroes = value
}
/**
* @param value The message id on which the validation settings has to be applied.
*/
@JvmName("rxwyigiapshyatou")
public suspend fun messageId(`value`: Output) {
this.messageId = value
}
/**
* @param value The trailing separator policy.
*/
@JvmName("errkcsmlddhaweic")
public suspend fun trailingSeparatorPolicy(`value`: Output>) {
this.trailingSeparatorPolicy = value
}
/**
* @param value The value indicating whether to trim leading and trailing spaces and zeroes.
*/
@JvmName("oppmopctyxpqbqxi")
public suspend fun trimLeadingAndTrailingSpacesAndZeroes(`value`: Output) {
this.trimLeadingAndTrailingSpacesAndZeroes = value
}
/**
* @param value The value indicating whether to validate character Set.
*/
@JvmName("adgppsnnoecaqtyo")
public suspend fun validateCharacterSet(`value`: Output) {
this.validateCharacterSet = value
}
/**
* @param value The value indicating whether to validate EDI types.
*/
@JvmName("nsaxnuamuqtvecrr")
public suspend fun validateEDITypes(`value`: Output) {
this.validateEDITypes = value
}
/**
* @param value The value indicating whether to validate XSD types.
*/
@JvmName("ktapuyfidamaqhso")
public suspend fun validateXSDTypes(`value`: Output) {
this.validateXSDTypes = value
}
/**
* @param value The value indicating whether to allow leading and trailing spaces and zeroes.
*/
@JvmName("fmgewferecxtbfge")
public suspend fun allowLeadingAndTrailingSpacesAndZeroes(`value`: Boolean) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.allowLeadingAndTrailingSpacesAndZeroes = mapped
}
/**
* @param value The message id on which the validation settings has to be applied.
*/
@JvmName("vgqgukmgybsjpkdw")
public suspend fun messageId(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.messageId = mapped
}
/**
* @param value The trailing separator policy.
*/
@JvmName("wqhitlrkyuhcmkbs")
public suspend fun trailingSeparatorPolicy(`value`: Either) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.trailingSeparatorPolicy = mapped
}
/**
* @param value The trailing separator policy.
*/
@JvmName("aokorhyvyijocsim")
public fun trailingSeparatorPolicy(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.trailingSeparatorPolicy = mapped
}
/**
* @param value The trailing separator policy.
*/
@JvmName("btbwbnxfmukhdtyg")
public fun trailingSeparatorPolicy(`value`: TrailingSeparatorPolicy) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.trailingSeparatorPolicy = mapped
}
/**
* @param value The value indicating whether to trim leading and trailing spaces and zeroes.
*/
@JvmName("xcpdjuqhmcnsxxbl")
public suspend fun trimLeadingAndTrailingSpacesAndZeroes(`value`: Boolean) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.trimLeadingAndTrailingSpacesAndZeroes = mapped
}
/**
* @param value The value indicating whether to validate character Set.
*/
@JvmName("rvqktcmrjccrjeln")
public suspend fun validateCharacterSet(`value`: Boolean) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.validateCharacterSet = mapped
}
/**
* @param value The value indicating whether to validate EDI types.
*/
@JvmName("ithrawyieknddocg")
public suspend fun validateEDITypes(`value`: Boolean) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.validateEDITypes = mapped
}
/**
* @param value The value indicating whether to validate XSD types.
*/
@JvmName("duymdjfhshlbcgfv")
public suspend fun validateXSDTypes(`value`: Boolean) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.validateXSDTypes = mapped
}
internal fun build(): X12ValidationOverrideArgs = X12ValidationOverrideArgs(
allowLeadingAndTrailingSpacesAndZeroes = allowLeadingAndTrailingSpacesAndZeroes ?: throw
PulumiNullFieldException("allowLeadingAndTrailingSpacesAndZeroes"),
messageId = messageId ?: throw PulumiNullFieldException("messageId"),
trailingSeparatorPolicy = trailingSeparatorPolicy ?: throw
PulumiNullFieldException("trailingSeparatorPolicy"),
trimLeadingAndTrailingSpacesAndZeroes = trimLeadingAndTrailingSpacesAndZeroes ?: throw
PulumiNullFieldException("trimLeadingAndTrailingSpacesAndZeroes"),
validateCharacterSet = validateCharacterSet ?: throw
PulumiNullFieldException("validateCharacterSet"),
validateEDITypes = validateEDITypes ?: throw PulumiNullFieldException("validateEDITypes"),
validateXSDTypes = validateXSDTypes ?: throw PulumiNullFieldException("validateXSDTypes"),
)
}