![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.digitalocean.kotlin.inputs.DatabaseFirewallRuleArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-digitalocean-kotlin Show documentation
Show all versions of pulumi-digitalocean-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.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.digitalocean.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.digitalocean.inputs.DatabaseFirewallRuleArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property createdAt The date and time when the firewall rule was created.
* @property type The type of resource that the firewall rule allows to access the database cluster. The possible values are: `droplet`, `k8s`, `ip_addr`, `tag`, or `app`.
* @property uuid A unique identifier for the firewall rule.
* @property value The ID of the specific resource, the name of a tag applied to a group of resources, or the IP address that the firewall rule allows to access the database cluster.
*/
public data class DatabaseFirewallRuleArgs(
public val createdAt: Output? = null,
public val type: Output,
public val uuid: Output? = null,
public val `value`: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.digitalocean.inputs.DatabaseFirewallRuleArgs =
com.pulumi.digitalocean.inputs.DatabaseFirewallRuleArgs.builder()
.createdAt(createdAt?.applyValue({ args0 -> args0 }))
.type(type.applyValue({ args0 -> args0 }))
.uuid(uuid?.applyValue({ args0 -> args0 }))
.`value`(`value`.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [DatabaseFirewallRuleArgs].
*/
@PulumiTagMarker
public class DatabaseFirewallRuleArgsBuilder internal constructor() {
private var createdAt: Output? = null
private var type: Output? = null
private var uuid: Output? = null
private var `value`: Output? = null
/**
* @param value The date and time when the firewall rule was created.
*/
@JvmName("mgrtnsftamtagvfp")
public suspend fun createdAt(`value`: Output) {
this.createdAt = value
}
/**
* @param value The type of resource that the firewall rule allows to access the database cluster. The possible values are: `droplet`, `k8s`, `ip_addr`, `tag`, or `app`.
*/
@JvmName("cqwdbkuclloqvvmd")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value A unique identifier for the firewall rule.
*/
@JvmName("ravqwalwcojjbeki")
public suspend fun uuid(`value`: Output) {
this.uuid = value
}
/**
* @param value The ID of the specific resource, the name of a tag applied to a group of resources, or the IP address that the firewall rule allows to access the database cluster.
*/
@JvmName("rtxogoctjqypgwrt")
public suspend fun `value`(`value`: Output) {
this.`value` = value
}
/**
* @param value The date and time when the firewall rule was created.
*/
@JvmName("xdbjrtbyoxbsslmm")
public suspend fun createdAt(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.createdAt = mapped
}
/**
* @param value The type of resource that the firewall rule allows to access the database cluster. The possible values are: `droplet`, `k8s`, `ip_addr`, `tag`, or `app`.
*/
@JvmName("oshbdnfkteqjgycs")
public suspend fun type(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
/**
* @param value A unique identifier for the firewall rule.
*/
@JvmName("krpamknguoylypcs")
public suspend fun uuid(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.uuid = mapped
}
/**
* @param value The ID of the specific resource, the name of a tag applied to a group of resources, or the IP address that the firewall rule allows to access the database cluster.
*/
@JvmName("wcvfppoadotvlhbr")
public suspend fun `value`(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.`value` = mapped
}
internal fun build(): DatabaseFirewallRuleArgs = DatabaseFirewallRuleArgs(
createdAt = createdAt,
type = type ?: throw PulumiNullFieldException("type"),
uuid = uuid,
`value` = `value` ?: throw PulumiNullFieldException("value"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy