com.pulumi.googlenative.policysimulator.v1.kotlin.ReplayArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.policysimulator.v1.kotlin
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.policysimulator.v1.ReplayArgs.builder
import com.pulumi.googlenative.policysimulator.v1.kotlin.inputs.GoogleCloudPolicysimulatorV1ReplayConfigArgs
import com.pulumi.googlenative.policysimulator.v1.kotlin.inputs.GoogleCloudPolicysimulatorV1ReplayConfigArgsBuilder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Creates and starts a Replay using the given ReplayConfig.
* Auto-naming is currently not supported for this resource.
* Note - this resource's API doesn't support deletion. When deleted, the resource will persist
* on Google Cloud even though it will be deleted from Pulumi state.
* @property config The configuration used for the `Replay`.
* @property location
* @property project
*/
public data class ReplayArgs(
public val config: Output? = null,
public val location: Output? = null,
public val project: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.googlenative.policysimulator.v1.ReplayArgs =
com.pulumi.googlenative.policysimulator.v1.ReplayArgs.builder()
.config(config?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.location(location?.applyValue({ args0 -> args0 }))
.project(project?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ReplayArgs].
*/
@PulumiTagMarker
public class ReplayArgsBuilder internal constructor() {
private var config: Output? = null
private var location: Output? = null
private var project: Output? = null
/**
* @param value The configuration used for the `Replay`.
*/
@JvmName("rcxsjbfbogjxidie")
public suspend fun config(`value`: Output) {
this.config = value
}
/**
* @param value
*/
@JvmName("krdrhlnqprkcnbmc")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value
*/
@JvmName("isjqmjrlgmtnrfpb")
public suspend fun project(`value`: Output) {
this.project = value
}
/**
* @param value The configuration used for the `Replay`.
*/
@JvmName("khywbdkkdjraclgs")
public suspend fun config(`value`: GoogleCloudPolicysimulatorV1ReplayConfigArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.config = mapped
}
/**
* @param argument The configuration used for the `Replay`.
*/
@JvmName("mscsyfpnqlmersix")
public suspend fun config(argument: suspend GoogleCloudPolicysimulatorV1ReplayConfigArgsBuilder.() -> Unit) {
val toBeMapped = GoogleCloudPolicysimulatorV1ReplayConfigArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.config = mapped
}
/**
* @param value
*/
@JvmName("xjeoflklteefyxnk")
public suspend fun location(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.location = mapped
}
/**
* @param value
*/
@JvmName("xrtiblrfwiesvvmv")
public suspend fun project(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.project = mapped
}
internal fun build(): ReplayArgs = ReplayArgs(
config = config,
location = location,
project = project,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy