com.pulumi.awsnative.guardduty.kotlin.MasterArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.guardduty.kotlin
import com.pulumi.awsnative.guardduty.MasterArgs.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
/**
* GuardDuty Master resource schema
* @property detectorId Unique ID of the detector of the GuardDuty member account.
* @property invitationId Value used to validate the master account to the member account.
* @property masterId ID of the account used as the master account.
*/
public data class MasterArgs(
public val detectorId: Output? = null,
public val invitationId: Output? = null,
public val masterId: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.guardduty.MasterArgs =
com.pulumi.awsnative.guardduty.MasterArgs.builder()
.detectorId(detectorId?.applyValue({ args0 -> args0 }))
.invitationId(invitationId?.applyValue({ args0 -> args0 }))
.masterId(masterId?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [MasterArgs].
*/
@PulumiTagMarker
public class MasterArgsBuilder internal constructor() {
private var detectorId: Output? = null
private var invitationId: Output? = null
private var masterId: Output? = null
/**
* @param value Unique ID of the detector of the GuardDuty member account.
*/
@JvmName("gavpevsopaxndosk")
public suspend fun detectorId(`value`: Output) {
this.detectorId = value
}
/**
* @param value Value used to validate the master account to the member account.
*/
@JvmName("jgiuyqtlgeemdrba")
public suspend fun invitationId(`value`: Output) {
this.invitationId = value
}
/**
* @param value ID of the account used as the master account.
*/
@JvmName("qdhwxseauytpfils")
public suspend fun masterId(`value`: Output) {
this.masterId = value
}
/**
* @param value Unique ID of the detector of the GuardDuty member account.
*/
@JvmName("wmoorpycxnapulus")
public suspend fun detectorId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.detectorId = mapped
}
/**
* @param value Value used to validate the master account to the member account.
*/
@JvmName("cjdnimsabahvijfe")
public suspend fun invitationId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.invitationId = mapped
}
/**
* @param value ID of the account used as the master account.
*/
@JvmName("wlrsjasqokiksjsl")
public suspend fun masterId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.masterId = mapped
}
internal fun build(): MasterArgs = MasterArgs(
detectorId = detectorId,
invitationId = invitationId,
masterId = masterId,
)
}