
com.pulumi.googlenative.cloudsearch.v1.kotlin.inputs.SourceArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-google-native-kotlin Show documentation
Show all versions of pulumi-google-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.cloudsearch.v1.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.cloudsearch.v1.inputs.SourceArgs.builder
import com.pulumi.googlenative.cloudsearch.v1.kotlin.enums.SourcePredefinedSource
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Defines sources for the suggest/search APIs.
* @property name Source name for content indexed by the Indexing API.
* @property predefinedSource Predefined content source for Google Apps.
*/
public data class SourceArgs(
public val name: Output? = null,
public val predefinedSource: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.googlenative.cloudsearch.v1.inputs.SourceArgs =
com.pulumi.googlenative.cloudsearch.v1.inputs.SourceArgs.builder()
.name(name?.applyValue({ args0 -> args0 }))
.predefinedSource(
predefinedSource?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [SourceArgs].
*/
@PulumiTagMarker
public class SourceArgsBuilder internal constructor() {
private var name: Output? = null
private var predefinedSource: Output? = null
/**
* @param value Source name for content indexed by the Indexing API.
*/
@JvmName("pljceaksqxwkcjxu")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Predefined content source for Google Apps.
*/
@JvmName("tmpuvwfyvrnmwoll")
public suspend fun predefinedSource(`value`: Output) {
this.predefinedSource = value
}
/**
* @param value Source name for content indexed by the Indexing API.
*/
@JvmName("jqbegahpodigfcpb")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value Predefined content source for Google Apps.
*/
@JvmName("ygwmqetvdpneuxlv")
public suspend fun predefinedSource(`value`: SourcePredefinedSource?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.predefinedSource = mapped
}
internal fun build(): SourceArgs = SourceArgs(
name = name,
predefinedSource = predefinedSource,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy