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

com.pulumi.awsnative.synthetics.kotlin.inputs.CanaryBaseScreenshotArgs.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.synthetics.kotlin.inputs

import com.pulumi.awsnative.synthetics.inputs.CanaryBaseScreenshotArgs.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

/**
 *
 * @property ignoreCoordinates List of coordinates of rectangles to be ignored during visual testing
 * @property screenshotName Name of the screenshot to be used as base reference for visual testing
 */
public data class CanaryBaseScreenshotArgs(
    public val ignoreCoordinates: Output>? = null,
    public val screenshotName: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.synthetics.inputs.CanaryBaseScreenshotArgs =
        com.pulumi.awsnative.synthetics.inputs.CanaryBaseScreenshotArgs.builder()
            .ignoreCoordinates(ignoreCoordinates?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .screenshotName(screenshotName.applyValue({ args0 -> args0 })).build()
}

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

    private var screenshotName: Output? = null

    /**
     * @param value List of coordinates of rectangles to be ignored during visual testing
     */
    @JvmName("uvhxbuscjeoiqcoe")
    public suspend fun ignoreCoordinates(`value`: Output>) {
        this.ignoreCoordinates = value
    }

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

    /**
     * @param values List of coordinates of rectangles to be ignored during visual testing
     */
    @JvmName("afoffxhbtemgtpqu")
    public suspend fun ignoreCoordinates(values: List>) {
        this.ignoreCoordinates = Output.all(values)
    }

    /**
     * @param value Name of the screenshot to be used as base reference for visual testing
     */
    @JvmName("photnrscnyhimhyp")
    public suspend fun screenshotName(`value`: Output) {
        this.screenshotName = value
    }

    /**
     * @param value List of coordinates of rectangles to be ignored during visual testing
     */
    @JvmName("qoryoqyopfmqnqyk")
    public suspend fun ignoreCoordinates(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ignoreCoordinates = mapped
    }

    /**
     * @param values List of coordinates of rectangles to be ignored during visual testing
     */
    @JvmName("udwyqnlgudvcflhu")
    public suspend fun ignoreCoordinates(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ignoreCoordinates = mapped
    }

    /**
     * @param value Name of the screenshot to be used as base reference for visual testing
     */
    @JvmName("inowdybqpbncwxiy")
    public suspend fun screenshotName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.screenshotName = mapped
    }

    internal fun build(): CanaryBaseScreenshotArgs = CanaryBaseScreenshotArgs(
        ignoreCoordinates = ignoreCoordinates,
        screenshotName = screenshotName ?: throw PulumiNullFieldException("screenshotName"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy