com.pulumi.aws.emr.kotlin.inputs.BlockPublicAccessConfigurationPermittedPublicSecurityGroupRuleRangeArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.aws.emr.kotlin.inputs
import com.pulumi.aws.emr.inputs.BlockPublicAccessConfigurationPermittedPublicSecurityGroupRuleRangeArgs.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.Int
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property maxRange The final port in the range of TCP ports.
* @property minRange The first port in the range of TCP ports.
*/
public data class BlockPublicAccessConfigurationPermittedPublicSecurityGroupRuleRangeArgs(
public val maxRange: Output,
public val minRange: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.aws.emr.inputs.BlockPublicAccessConfigurationPermittedPublicSecurityGroupRuleRangeArgs =
com.pulumi.aws.emr.inputs.BlockPublicAccessConfigurationPermittedPublicSecurityGroupRuleRangeArgs.builder()
.maxRange(maxRange.applyValue({ args0 -> args0 }))
.minRange(minRange.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [BlockPublicAccessConfigurationPermittedPublicSecurityGroupRuleRangeArgs].
*/
@PulumiTagMarker
public class BlockPublicAccessConfigurationPermittedPublicSecurityGroupRuleRangeArgsBuilder internal constructor() {
private var maxRange: Output? = null
private var minRange: Output? = null
/**
* @param value The final port in the range of TCP ports.
*/
@JvmName("tqfmvwovngludvbu")
public suspend fun maxRange(`value`: Output) {
this.maxRange = value
}
/**
* @param value The first port in the range of TCP ports.
*/
@JvmName("jereyxikyibrwqhj")
public suspend fun minRange(`value`: Output) {
this.minRange = value
}
/**
* @param value The final port in the range of TCP ports.
*/
@JvmName("bdctucsbctvcbvlh")
public suspend fun maxRange(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.maxRange = mapped
}
/**
* @param value The first port in the range of TCP ports.
*/
@JvmName("jwnkpofgmskmcljs")
public suspend fun minRange(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.minRange = mapped
}
internal fun build(): BlockPublicAccessConfigurationPermittedPublicSecurityGroupRuleRangeArgs =
BlockPublicAccessConfigurationPermittedPublicSecurityGroupRuleRangeArgs(
maxRange = maxRange ?: throw PulumiNullFieldException("maxRange"),
minRange = minRange ?: throw PulumiNullFieldException("minRange"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy