com.pulumi.awsnative.athena.kotlin.NamedQueryArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.athena.kotlin
import com.pulumi.awsnative.athena.NamedQueryArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Resource schema for AWS::Athena::NamedQuery
* ## Example Usage
* ### Example
* No Java example available.
* ### Example
* No Java example available.
* @property database The database to which the query belongs.
* @property description The query description.
* @property name The query name.
* @property queryString The contents of the query with all query statements.
* @property workGroup The name of the workgroup that contains the named query.
*/
public data class NamedQueryArgs(
public val database: Output? = null,
public val description: Output? = null,
public val name: Output? = null,
public val queryString: Output? = null,
public val workGroup: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.athena.NamedQueryArgs =
com.pulumi.awsnative.athena.NamedQueryArgs.builder()
.database(database?.applyValue({ args0 -> args0 }))
.description(description?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.queryString(queryString?.applyValue({ args0 -> args0 }))
.workGroup(workGroup?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [NamedQueryArgs].
*/
@PulumiTagMarker
public class NamedQueryArgsBuilder internal constructor() {
private var database: Output? = null
private var description: Output? = null
private var name: Output? = null
private var queryString: Output? = null
private var workGroup: Output? = null
/**
* @param value The database to which the query belongs.
*/
@JvmName("njiyptpqydusemye")
public suspend fun database(`value`: Output) {
this.database = value
}
/**
* @param value The query description.
*/
@JvmName("mdodormepbfcxmsf")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value The query name.
*/
@JvmName("mxpelckubkvmuobb")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The contents of the query with all query statements.
*/
@JvmName("uyjuobnolbbeatmy")
public suspend fun queryString(`value`: Output) {
this.queryString = value
}
/**
* @param value The name of the workgroup that contains the named query.
*/
@JvmName("sibakhdeeqtklmnq")
public suspend fun workGroup(`value`: Output) {
this.workGroup = value
}
/**
* @param value The database to which the query belongs.
*/
@JvmName("cpydicdkhnbpyiri")
public suspend fun database(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.database = mapped
}
/**
* @param value The query description.
*/
@JvmName("hsgtpclulvlngnvo")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value The query name.
*/
@JvmName("jujejvlsvkxqnhfd")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The contents of the query with all query statements.
*/
@JvmName("pfdwbnctqmoerlbd")
public suspend fun queryString(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.queryString = mapped
}
/**
* @param value The name of the workgroup that contains the named query.
*/
@JvmName("finjmpdufyibfoeo")
public suspend fun workGroup(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.workGroup = mapped
}
internal fun build(): NamedQueryArgs = NamedQueryArgs(
database = database,
description = description,
name = name,
queryString = queryString,
workGroup = workGroup,
)
}