com.pulumi.gcp.networkservices.kotlin.inputs.TcpRouteRuleMatchArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.networkservices.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.networkservices.inputs.TcpRouteRuleMatchArgs.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 address Must be specified in the CIDR range format. A CIDR range consists of an IP Address and a prefix length to construct the subnet mask.
* By default, the prefix length is 32 (i.e. matches a single IP address). Only IPV4 addresses are supported. Examples: "10.0.0.1" - matches against this exact IP address. "10.0.0.0/8" - matches against any IP address within the 10.0.0.0 subnet and 255.255.255.0 mask. "0.0.0.0/0" - matches against any IP address'.
* @property port Specifies the destination port to match against.
*/
public data class TcpRouteRuleMatchArgs(
public val address: Output,
public val port: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.networkservices.inputs.TcpRouteRuleMatchArgs =
com.pulumi.gcp.networkservices.inputs.TcpRouteRuleMatchArgs.builder()
.address(address.applyValue({ args0 -> args0 }))
.port(port.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TcpRouteRuleMatchArgs].
*/
@PulumiTagMarker
public class TcpRouteRuleMatchArgsBuilder internal constructor() {
private var address: Output? = null
private var port: Output? = null
/**
* @param value Must be specified in the CIDR range format. A CIDR range consists of an IP Address and a prefix length to construct the subnet mask.
* By default, the prefix length is 32 (i.e. matches a single IP address). Only IPV4 addresses are supported. Examples: "10.0.0.1" - matches against this exact IP address. "10.0.0.0/8" - matches against any IP address within the 10.0.0.0 subnet and 255.255.255.0 mask. "0.0.0.0/0" - matches against any IP address'.
*/
@JvmName("otmfemmwxxrxyoqn")
public suspend fun address(`value`: Output) {
this.address = value
}
/**
* @param value Specifies the destination port to match against.
*/
@JvmName("syeohuhatyewlnec")
public suspend fun port(`value`: Output) {
this.port = value
}
/**
* @param value Must be specified in the CIDR range format. A CIDR range consists of an IP Address and a prefix length to construct the subnet mask.
* By default, the prefix length is 32 (i.e. matches a single IP address). Only IPV4 addresses are supported. Examples: "10.0.0.1" - matches against this exact IP address. "10.0.0.0/8" - matches against any IP address within the 10.0.0.0 subnet and 255.255.255.0 mask. "0.0.0.0/0" - matches against any IP address'.
*/
@JvmName("ffcaqakqllqttvuk")
public suspend fun address(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.address = mapped
}
/**
* @param value Specifies the destination port to match against.
*/
@JvmName("mshouqwdoosjhqmo")
public suspend fun port(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.port = mapped
}
internal fun build(): TcpRouteRuleMatchArgs = TcpRouteRuleMatchArgs(
address = address ?: throw PulumiNullFieldException("address"),
port = port ?: throw PulumiNullFieldException("port"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy