com.pulumi.awsnative.ec2.kotlin.inputs.IpamPoolSourceResourceArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.awsnative.ec2.kotlin.inputs
import com.pulumi.awsnative.ec2.inputs.IpamPoolSourceResourceArgs.builder
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 kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* The resource associated with this pool's space. Depending on the ResourceType, setting a SourceResource changes which space can be provisioned in this pool and which types of resources can receive allocations
* @property resourceId The source resource ID.
* @property resourceOwner The source resource owner.
* @property resourceRegion The source resource Region.
* @property resourceType The source resource type.
*/
public data class IpamPoolSourceResourceArgs(
public val resourceId: Output,
public val resourceOwner: Output,
public val resourceRegion: Output,
public val resourceType: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.ec2.inputs.IpamPoolSourceResourceArgs =
com.pulumi.awsnative.ec2.inputs.IpamPoolSourceResourceArgs.builder()
.resourceId(resourceId.applyValue({ args0 -> args0 }))
.resourceOwner(resourceOwner.applyValue({ args0 -> args0 }))
.resourceRegion(resourceRegion.applyValue({ args0 -> args0 }))
.resourceType(resourceType.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [IpamPoolSourceResourceArgs].
*/
@PulumiTagMarker
public class IpamPoolSourceResourceArgsBuilder internal constructor() {
private var resourceId: Output? = null
private var resourceOwner: Output? = null
private var resourceRegion: Output? = null
private var resourceType: Output? = null
/**
* @param value The source resource ID.
*/
@JvmName("ohwrlbsricymkmic")
public suspend fun resourceId(`value`: Output) {
this.resourceId = value
}
/**
* @param value The source resource owner.
*/
@JvmName("rokhoyriblylultg")
public suspend fun resourceOwner(`value`: Output) {
this.resourceOwner = value
}
/**
* @param value The source resource Region.
*/
@JvmName("bfovlstufgramqam")
public suspend fun resourceRegion(`value`: Output) {
this.resourceRegion = value
}
/**
* @param value The source resource type.
*/
@JvmName("ceaqpujlxebtrkxt")
public suspend fun resourceType(`value`: Output) {
this.resourceType = value
}
/**
* @param value The source resource ID.
*/
@JvmName("kqhuayhrmfcdnqxd")
public suspend fun resourceId(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.resourceId = mapped
}
/**
* @param value The source resource owner.
*/
@JvmName("vccgbkvmeuriukih")
public suspend fun resourceOwner(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.resourceOwner = mapped
}
/**
* @param value The source resource Region.
*/
@JvmName("djdhmsuvpngsfegf")
public suspend fun resourceRegion(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.resourceRegion = mapped
}
/**
* @param value The source resource type.
*/
@JvmName("pafwquhjbtkyecoj")
public suspend fun resourceType(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.resourceType = mapped
}
internal fun build(): IpamPoolSourceResourceArgs = IpamPoolSourceResourceArgs(
resourceId = resourceId ?: throw PulumiNullFieldException("resourceId"),
resourceOwner = resourceOwner ?: throw PulumiNullFieldException("resourceOwner"),
resourceRegion = resourceRegion ?: throw PulumiNullFieldException("resourceRegion"),
resourceType = resourceType ?: throw PulumiNullFieldException("resourceType"),
)
}