
com.pulumi.googlenative.apigee.v1.kotlin.TargetServerArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-google-native-kotlin Show documentation
Show all versions of pulumi-google-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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.apigee.v1.kotlin
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.apigee.v1.TargetServerArgs.builder
import com.pulumi.googlenative.apigee.v1.kotlin.enums.TargetServerProtocol
import com.pulumi.googlenative.apigee.v1.kotlin.inputs.GoogleCloudApigeeV1TlsInfoArgs
import com.pulumi.googlenative.apigee.v1.kotlin.inputs.GoogleCloudApigeeV1TlsInfoArgsBuilder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Creates a TargetServer in the specified environment.
* @property description Optional. A human-readable description of this TargetServer.
* @property environmentId
* @property host The host name this target connects to. Value must be a valid hostname as described by RFC-1123.
* @property isEnabled Optional. Enabling/disabling a TargetServer is useful when TargetServers are used in load balancing configurations, and one or more TargetServers need to taken out of rotation periodically. Defaults to true.
* @property name The resource id of this target server. Values must match the regular expression
* @property organizationId
* @property port The port number this target connects to on the given host. Value must be between 1 and 65535, inclusive.
* @property protocol Immutable. The protocol used by this TargetServer.
* @property sSLInfo Optional. Specifies TLS configuration info for this TargetServer. The JSON name is `sSLInfo` for legacy/backwards compatibility reasons -- Edge originally supported SSL, and the name is still used for TLS configuration.
*/
public data class TargetServerArgs(
public val description: Output? = null,
public val environmentId: Output? = null,
public val host: Output? = null,
public val isEnabled: Output? = null,
public val name: Output? = null,
public val organizationId: Output? = null,
public val port: Output? = null,
public val protocol: Output? = null,
public val sSLInfo: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.googlenative.apigee.v1.TargetServerArgs =
com.pulumi.googlenative.apigee.v1.TargetServerArgs.builder()
.description(description?.applyValue({ args0 -> args0 }))
.environmentId(environmentId?.applyValue({ args0 -> args0 }))
.host(host?.applyValue({ args0 -> args0 }))
.isEnabled(isEnabled?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.organizationId(organizationId?.applyValue({ args0 -> args0 }))
.port(port?.applyValue({ args0 -> args0 }))
.protocol(protocol?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.sSLInfo(sSLInfo?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [TargetServerArgs].
*/
@PulumiTagMarker
public class TargetServerArgsBuilder internal constructor() {
private var description: Output? = null
private var environmentId: Output? = null
private var host: Output? = null
private var isEnabled: Output? = null
private var name: Output? = null
private var organizationId: Output? = null
private var port: Output? = null
private var protocol: Output? = null
private var sSLInfo: Output? = null
/**
* @param value Optional. A human-readable description of this TargetServer.
*/
@JvmName("hpsmeagxmwwgvgwb")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value
*/
@JvmName("khpmsfgihtytijyk")
public suspend fun environmentId(`value`: Output) {
this.environmentId = value
}
/**
* @param value The host name this target connects to. Value must be a valid hostname as described by RFC-1123.
*/
@JvmName("xussxevuarexaymx")
public suspend fun host(`value`: Output) {
this.host = value
}
/**
* @param value Optional. Enabling/disabling a TargetServer is useful when TargetServers are used in load balancing configurations, and one or more TargetServers need to taken out of rotation periodically. Defaults to true.
*/
@JvmName("bvjtvrkchwydglhb")
public suspend fun isEnabled(`value`: Output) {
this.isEnabled = value
}
/**
* @param value The resource id of this target server. Values must match the regular expression
*/
@JvmName("odshyrlehoqawweo")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value
*/
@JvmName("cqijqvfuqcaejnme")
public suspend fun organizationId(`value`: Output) {
this.organizationId = value
}
/**
* @param value The port number this target connects to on the given host. Value must be between 1 and 65535, inclusive.
*/
@JvmName("sroiyrdpxxltiajl")
public suspend fun port(`value`: Output) {
this.port = value
}
/**
* @param value Immutable. The protocol used by this TargetServer.
*/
@JvmName("rivpaayhlqxhwapj")
public suspend fun protocol(`value`: Output) {
this.protocol = value
}
/**
* @param value Optional. Specifies TLS configuration info for this TargetServer. The JSON name is `sSLInfo` for legacy/backwards compatibility reasons -- Edge originally supported SSL, and the name is still used for TLS configuration.
*/
@JvmName("drlwaoxqiaqiulcb")
public suspend fun sSLInfo(`value`: Output) {
this.sSLInfo = value
}
/**
* @param value Optional. A human-readable description of this TargetServer.
*/
@JvmName("jpuwknqypmcglssm")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value
*/
@JvmName("dsynwmacfmnkrmgh")
public suspend fun environmentId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.environmentId = mapped
}
/**
* @param value The host name this target connects to. Value must be a valid hostname as described by RFC-1123.
*/
@JvmName("ndlbtttksxinspkf")
public suspend fun host(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.host = mapped
}
/**
* @param value Optional. Enabling/disabling a TargetServer is useful when TargetServers are used in load balancing configurations, and one or more TargetServers need to taken out of rotation periodically. Defaults to true.
*/
@JvmName("hjehkqrmvrseyowv")
public suspend fun isEnabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.isEnabled = mapped
}
/**
* @param value The resource id of this target server. Values must match the regular expression
*/
@JvmName("pcjrlofllparhlkn")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value
*/
@JvmName("ffgjpaxdkuqpymyf")
public suspend fun organizationId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.organizationId = mapped
}
/**
* @param value The port number this target connects to on the given host. Value must be between 1 and 65535, inclusive.
*/
@JvmName("rmtrmjpubilyyyfo")
public suspend fun port(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.port = mapped
}
/**
* @param value Immutable. The protocol used by this TargetServer.
*/
@JvmName("rspjobuaspopqmei")
public suspend fun protocol(`value`: TargetServerProtocol?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.protocol = mapped
}
/**
* @param value Optional. Specifies TLS configuration info for this TargetServer. The JSON name is `sSLInfo` for legacy/backwards compatibility reasons -- Edge originally supported SSL, and the name is still used for TLS configuration.
*/
@JvmName("uarcykxkwbskfbbu")
public suspend fun sSLInfo(`value`: GoogleCloudApigeeV1TlsInfoArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sSLInfo = mapped
}
/**
* @param argument Optional. Specifies TLS configuration info for this TargetServer. The JSON name is `sSLInfo` for legacy/backwards compatibility reasons -- Edge originally supported SSL, and the name is still used for TLS configuration.
*/
@JvmName("mrlcajreaudoiqgx")
public suspend fun sSLInfo(argument: suspend GoogleCloudApigeeV1TlsInfoArgsBuilder.() -> Unit) {
val toBeMapped = GoogleCloudApigeeV1TlsInfoArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.sSLInfo = mapped
}
internal fun build(): TargetServerArgs = TargetServerArgs(
description = description,
environmentId = environmentId,
host = host,
isEnabled = isEnabled,
name = name,
organizationId = organizationId,
port = port,
protocol = protocol,
sSLInfo = sSLInfo,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy