![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.redhatopenshift.kotlin.inputs.APIServerProfileArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-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.azurenative.redhatopenshift.kotlin.inputs
import com.pulumi.azurenative.redhatopenshift.inputs.APIServerProfileArgs.builder
import com.pulumi.azurenative.redhatopenshift.kotlin.enums.Visibility
import com.pulumi.core.Either
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
/**
* APIServerProfile represents an API server profile.
* @property ip The IP of the cluster API server.
* @property url The URL to access the cluster API server.
* @property visibility API server visibility.
*/
public data class APIServerProfileArgs(
public val ip: Output? = null,
public val url: Output? = null,
public val visibility: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.redhatopenshift.inputs.APIServerProfileArgs =
com.pulumi.azurenative.redhatopenshift.inputs.APIServerProfileArgs.builder()
.ip(ip?.applyValue({ args0 -> args0 }))
.url(url?.applyValue({ args0 -> args0 }))
.visibility(
visibility?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
).build()
}
/**
* Builder for [APIServerProfileArgs].
*/
@PulumiTagMarker
public class APIServerProfileArgsBuilder internal constructor() {
private var ip: Output? = null
private var url: Output? = null
private var visibility: Output>? = null
/**
* @param value The IP of the cluster API server.
*/
@JvmName("bmyxwvenhvrprklw")
public suspend fun ip(`value`: Output) {
this.ip = value
}
/**
* @param value The URL to access the cluster API server.
*/
@JvmName("kawavcsehstgupks")
public suspend fun url(`value`: Output) {
this.url = value
}
/**
* @param value API server visibility.
*/
@JvmName("uetardmndgvoquls")
public suspend fun visibility(`value`: Output>) {
this.visibility = value
}
/**
* @param value The IP of the cluster API server.
*/
@JvmName("mrblunyfwhlxhfec")
public suspend fun ip(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.ip = mapped
}
/**
* @param value The URL to access the cluster API server.
*/
@JvmName("pjvlotjdflrhifms")
public suspend fun url(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.url = mapped
}
/**
* @param value API server visibility.
*/
@JvmName("pqeoohuimepparhe")
public suspend fun visibility(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.visibility = mapped
}
/**
* @param value API server visibility.
*/
@JvmName("xqmnyfgsabfhukji")
public fun visibility(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.visibility = mapped
}
/**
* @param value API server visibility.
*/
@JvmName("ikmwdpdbdyjmojcv")
public fun visibility(`value`: Visibility) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.visibility = mapped
}
internal fun build(): APIServerProfileArgs = APIServerProfileArgs(
ip = ip,
url = url,
visibility = visibility,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy