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

com.pulumi.awsnative.wafv2.kotlin.inputs.WebAclResponseInspectionBodyContainsArgs.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.wafv2.kotlin.inputs

import com.pulumi.awsnative.wafv2.inputs.WebAclResponseInspectionBodyContainsArgs.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.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Response body contents that indicate success or failure of a login request
 * @property failureStrings Strings in the body of the response that indicate a failed login or account creation attempt. To be counted as a failure, the string can be anywhere in the body and must be an exact match, including case. Each string must be unique among the success and failure strings.
 * JSON example: `"FailureStrings": [ "Request failed" ]`
 * @property successStrings Strings in the body of the response that indicate a successful login or account creation attempt. To be counted as a success, the string can be anywhere in the body and must be an exact match, including case. Each string must be unique among the success and failure strings.
 * JSON examples: `"SuccessStrings": [ "Login successful" ]` and `"SuccessStrings": [ "Account creation successful", "Welcome to our site!" ]`
 */
public data class WebAclResponseInspectionBodyContainsArgs(
    public val failureStrings: Output>,
    public val successStrings: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.wafv2.inputs.WebAclResponseInspectionBodyContainsArgs = com.pulumi.awsnative.wafv2.inputs.WebAclResponseInspectionBodyContainsArgs.builder()
        .failureStrings(failureStrings.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
        .successStrings(successStrings.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    private var successStrings: Output>? = null

    /**
     * @param value Strings in the body of the response that indicate a failed login or account creation attempt. To be counted as a failure, the string can be anywhere in the body and must be an exact match, including case. Each string must be unique among the success and failure strings.
     * JSON example: `"FailureStrings": [ "Request failed" ]`
     */
    @JvmName("cvbkeraxcedypxnh")
    public suspend fun failureStrings(`value`: Output>) {
        this.failureStrings = value
    }

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

    /**
     * @param values Strings in the body of the response that indicate a failed login or account creation attempt. To be counted as a failure, the string can be anywhere in the body and must be an exact match, including case. Each string must be unique among the success and failure strings.
     * JSON example: `"FailureStrings": [ "Request failed" ]`
     */
    @JvmName("gjjefsbdsiqctsyf")
    public suspend fun failureStrings(values: List>) {
        this.failureStrings = Output.all(values)
    }

    /**
     * @param value Strings in the body of the response that indicate a successful login or account creation attempt. To be counted as a success, the string can be anywhere in the body and must be an exact match, including case. Each string must be unique among the success and failure strings.
     * JSON examples: `"SuccessStrings": [ "Login successful" ]` and `"SuccessStrings": [ "Account creation successful", "Welcome to our site!" ]`
     */
    @JvmName("tegtlcjciliyavol")
    public suspend fun successStrings(`value`: Output>) {
        this.successStrings = value
    }

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

    /**
     * @param values Strings in the body of the response that indicate a successful login or account creation attempt. To be counted as a success, the string can be anywhere in the body and must be an exact match, including case. Each string must be unique among the success and failure strings.
     * JSON examples: `"SuccessStrings": [ "Login successful" ]` and `"SuccessStrings": [ "Account creation successful", "Welcome to our site!" ]`
     */
    @JvmName("qfeaksxstqgghvtx")
    public suspend fun successStrings(values: List>) {
        this.successStrings = Output.all(values)
    }

    /**
     * @param value Strings in the body of the response that indicate a failed login or account creation attempt. To be counted as a failure, the string can be anywhere in the body and must be an exact match, including case. Each string must be unique among the success and failure strings.
     * JSON example: `"FailureStrings": [ "Request failed" ]`
     */
    @JvmName("xuqfmcmmjnadtkue")
    public suspend fun failureStrings(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.failureStrings = mapped
    }

    /**
     * @param values Strings in the body of the response that indicate a failed login or account creation attempt. To be counted as a failure, the string can be anywhere in the body and must be an exact match, including case. Each string must be unique among the success and failure strings.
     * JSON example: `"FailureStrings": [ "Request failed" ]`
     */
    @JvmName("xerddhuevcdajvyc")
    public suspend fun failureStrings(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.failureStrings = mapped
    }

    /**
     * @param value Strings in the body of the response that indicate a successful login or account creation attempt. To be counted as a success, the string can be anywhere in the body and must be an exact match, including case. Each string must be unique among the success and failure strings.
     * JSON examples: `"SuccessStrings": [ "Login successful" ]` and `"SuccessStrings": [ "Account creation successful", "Welcome to our site!" ]`
     */
    @JvmName("tgdvpbycumfjuvcx")
    public suspend fun successStrings(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.successStrings = mapped
    }

    /**
     * @param values Strings in the body of the response that indicate a successful login or account creation attempt. To be counted as a success, the string can be anywhere in the body and must be an exact match, including case. Each string must be unique among the success and failure strings.
     * JSON examples: `"SuccessStrings": [ "Login successful" ]` and `"SuccessStrings": [ "Account creation successful", "Welcome to our site!" ]`
     */
    @JvmName("emnfwtwotagubcvt")
    public suspend fun successStrings(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.successStrings = mapped
    }

    internal fun build(): WebAclResponseInspectionBodyContainsArgs =
        WebAclResponseInspectionBodyContainsArgs(
            failureStrings = failureStrings ?: throw PulumiNullFieldException("failureStrings"),
            successStrings = successStrings ?: throw PulumiNullFieldException("successStrings"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy