com.pulumi.kubernetes.apiregistration.v1beta1.kotlin.inputs.ServiceReferenceArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-kubernetes-kotlin Show documentation
Show all versions of pulumi-kubernetes-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.kubernetes.apiregistration.v1beta1.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kubernetes.apiregistration.v1beta1.inputs.ServiceReferenceArgs.builder
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* ServiceReference holds a reference to Service.legacy.k8s.io
* @property name Name is the name of the service
* @property namespace Namespace is the namespace of the service
* @property port If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).
*/
public data class ServiceReferenceArgs(
public val name: Output? = null,
public val namespace: Output? = null,
public val port: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.kubernetes.apiregistration.v1beta1.inputs.ServiceReferenceArgs =
com.pulumi.kubernetes.apiregistration.v1beta1.inputs.ServiceReferenceArgs.builder()
.name(name?.applyValue({ args0 -> args0 }))
.namespace(namespace?.applyValue({ args0 -> args0 }))
.port(port?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ServiceReferenceArgs].
*/
@PulumiTagMarker
public class ServiceReferenceArgsBuilder internal constructor() {
private var name: Output? = null
private var namespace: Output? = null
private var port: Output? = null
/**
* @param value Name is the name of the service
*/
@JvmName("oqfxtbootpcvixia")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Namespace is the namespace of the service
*/
@JvmName("eoemdpwymttosjjl")
public suspend fun namespace(`value`: Output) {
this.namespace = value
}
/**
* @param value If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).
*/
@JvmName("ouofucrtqlpemyvb")
public suspend fun port(`value`: Output) {
this.port = value
}
/**
* @param value Name is the name of the service
*/
@JvmName("mmtswuqxmqqomttc")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value Namespace is the namespace of the service
*/
@JvmName("visfabxblhykqbia")
public suspend fun namespace(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.namespace = mapped
}
/**
* @param value If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).
*/
@JvmName("ayqjoaqirysfmddi")
public suspend fun port(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.port = mapped
}
internal fun build(): ServiceReferenceArgs = ServiceReferenceArgs(
name = name,
namespace = namespace,
port = port,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy