All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.kubernetes.apiextensions.v1.kotlin.inputs.ServiceReferencePatchArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 4.18.2.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.kubernetes.apiextensions.v1.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.apiextensions.v1.inputs.ServiceReferencePatchArgs.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. Required
 * @property namespace namespace is the namespace of the service. Required
 * @property path path is an optional URL path at which the webhook will be contacted.
 * @property port port is an optional service port at which the webhook will be contacted. `port` should be a valid port number (1-65535, inclusive). Defaults to 443 for backward compatibility.
 */
public data class ServiceReferencePatchArgs(
    public val name: Output? = null,
    public val namespace: Output? = null,
    public val path: Output? = null,
    public val port: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.apiextensions.v1.inputs.ServiceReferencePatchArgs =
        com.pulumi.kubernetes.apiextensions.v1.inputs.ServiceReferencePatchArgs.builder()
            .name(name?.applyValue({ args0 -> args0 }))
            .namespace(namespace?.applyValue({ args0 -> args0 }))
            .path(path?.applyValue({ args0 -> args0 }))
            .port(port?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ServiceReferencePatchArgs].
 */
@PulumiTagMarker
public class ServiceReferencePatchArgsBuilder internal constructor() {
    private var name: Output? = null

    private var namespace: Output? = null

    private var path: Output? = null

    private var port: Output? = null

    /**
     * @param value name is the name of the service. Required
     */
    @JvmName("sfuyyimfvevrcinx")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value namespace is the namespace of the service. Required
     */
    @JvmName("dsskjyrdyoqwgaoo")
    public suspend fun namespace(`value`: Output) {
        this.namespace = value
    }

    /**
     * @param value path is an optional URL path at which the webhook will be contacted.
     */
    @JvmName("sljrhlfeosokxwkr")
    public suspend fun path(`value`: Output) {
        this.path = value
    }

    /**
     * @param value port is an optional service port at which the webhook will be contacted. `port` should be a valid port number (1-65535, inclusive). Defaults to 443 for backward compatibility.
     */
    @JvmName("wpdjyipkcrurpavl")
    public suspend fun port(`value`: Output) {
        this.port = value
    }

    /**
     * @param value name is the name of the service. Required
     */
    @JvmName("rcrlashtdtjssxbu")
    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. Required
     */
    @JvmName("rgxfnblxoxbjgmdk")
    public suspend fun namespace(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.namespace = mapped
    }

    /**
     * @param value path is an optional URL path at which the webhook will be contacted.
     */
    @JvmName("sburdaymvsemktps")
    public suspend fun path(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.path = mapped
    }

    /**
     * @param value port is an optional service port at which the webhook will be contacted. `port` should be a valid port number (1-65535, inclusive). Defaults to 443 for backward compatibility.
     */
    @JvmName("upjgcpavmnpgoqdg")
    public suspend fun port(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.port = mapped
    }

    internal fun build(): ServiceReferencePatchArgs = ServiceReferencePatchArgs(
        name = name,
        namespace = namespace,
        path = path,
        port = port,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy