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

com.pulumi.awsnative.kendra.kotlin.inputs.DataSourceWebCrawlerBasicAuthenticationArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.kendra.kotlin.inputs

import com.pulumi.awsnative.kendra.inputs.DataSourceWebCrawlerBasicAuthenticationArgs.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property credentials
 * @property host
 * @property port
 */
public data class DataSourceWebCrawlerBasicAuthenticationArgs(
    public val credentials: Output,
    public val host: Output,
    public val port: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.kendra.inputs.DataSourceWebCrawlerBasicAuthenticationArgs =
        com.pulumi.awsnative.kendra.inputs.DataSourceWebCrawlerBasicAuthenticationArgs.builder()
            .credentials(credentials.applyValue({ args0 -> args0 }))
            .host(host.applyValue({ args0 -> args0 }))
            .port(port.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DataSourceWebCrawlerBasicAuthenticationArgs].
 */
@PulumiTagMarker
public class DataSourceWebCrawlerBasicAuthenticationArgsBuilder internal constructor() {
    private var credentials: Output? = null

    private var host: Output? = null

    private var port: Output? = null

    /**
     * @param value
     */
    @JvmName("kvxahtqyruugmdhk")
    public suspend fun credentials(`value`: Output) {
        this.credentials = value
    }

    /**
     * @param value
     */
    @JvmName("mprlnlhxetilqqro")
    public suspend fun host(`value`: Output) {
        this.host = value
    }

    /**
     * @param value
     */
    @JvmName("lsdlviulkyfobgrr")
    public suspend fun port(`value`: Output) {
        this.port = value
    }

    /**
     * @param value
     */
    @JvmName("inevofxdtjrbrwkt")
    public suspend fun credentials(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.credentials = mapped
    }

    /**
     * @param value
     */
    @JvmName("ighqlbjaugkganpa")
    public suspend fun host(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.host = mapped
    }

    /**
     * @param value
     */
    @JvmName("gersaiipmgpcefpl")
    public suspend fun port(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.port = mapped
    }

    internal fun build(): DataSourceWebCrawlerBasicAuthenticationArgs =
        DataSourceWebCrawlerBasicAuthenticationArgs(
            credentials = credentials ?: throw PulumiNullFieldException("credentials"),
            host = host ?: throw PulumiNullFieldException("host"),
            port = port ?: throw PulumiNullFieldException("port"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy