![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.lightsail.kotlin.inputs.DiskAddOnArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.lightsail.kotlin.inputs
import com.pulumi.awsnative.lightsail.inputs.DiskAddOnArgs.builder
import com.pulumi.awsnative.lightsail.kotlin.enums.DiskAddOnStatus
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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* A addon associate with a resource.
* @property addOnType The add-on type
* @property autoSnapshotAddOnRequest The parameters for the automatic snapshot add-on, such as the daily time when an automatic snapshot will be created.
* @property status Status of the Addon
*/
public data class DiskAddOnArgs(
public val addOnType: Output,
public val autoSnapshotAddOnRequest: Output? = null,
public val status: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.lightsail.inputs.DiskAddOnArgs =
com.pulumi.awsnative.lightsail.inputs.DiskAddOnArgs.builder()
.addOnType(addOnType.applyValue({ args0 -> args0 }))
.autoSnapshotAddOnRequest(
autoSnapshotAddOnRequest?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.status(status?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [DiskAddOnArgs].
*/
@PulumiTagMarker
public class DiskAddOnArgsBuilder internal constructor() {
private var addOnType: Output? = null
private var autoSnapshotAddOnRequest: Output? = null
private var status: Output? = null
/**
* @param value The add-on type
*/
@JvmName("wwlipdehhulbwxpx")
public suspend fun addOnType(`value`: Output) {
this.addOnType = value
}
/**
* @param value The parameters for the automatic snapshot add-on, such as the daily time when an automatic snapshot will be created.
*/
@JvmName("uubgisenhncgsgkc")
public suspend fun autoSnapshotAddOnRequest(`value`: Output) {
this.autoSnapshotAddOnRequest = value
}
/**
* @param value Status of the Addon
*/
@JvmName("uoxaiionqyvporrw")
public suspend fun status(`value`: Output) {
this.status = value
}
/**
* @param value The add-on type
*/
@JvmName("dfuvcwdpypmicktx")
public suspend fun addOnType(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.addOnType = mapped
}
/**
* @param value The parameters for the automatic snapshot add-on, such as the daily time when an automatic snapshot will be created.
*/
@JvmName("dcncemtuddmvnucs")
public suspend fun autoSnapshotAddOnRequest(`value`: DiskAutoSnapshotAddOnArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.autoSnapshotAddOnRequest = mapped
}
/**
* @param argument The parameters for the automatic snapshot add-on, such as the daily time when an automatic snapshot will be created.
*/
@JvmName("ayrkndffvyjgbuaa")
public suspend fun autoSnapshotAddOnRequest(argument: suspend DiskAutoSnapshotAddOnArgsBuilder.() -> Unit) {
val toBeMapped = DiskAutoSnapshotAddOnArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.autoSnapshotAddOnRequest = mapped
}
/**
* @param value Status of the Addon
*/
@JvmName("kkkkeoqgfomammdq")
public suspend fun status(`value`: DiskAddOnStatus?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.status = mapped
}
internal fun build(): DiskAddOnArgs = DiskAddOnArgs(
addOnType = addOnType ?: throw PulumiNullFieldException("addOnType"),
autoSnapshotAddOnRequest = autoSnapshotAddOnRequest,
status = status,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy