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

com.pulumi.kubernetes.extensions.v1beta1.kotlin.outputs.IngressBackendPatch.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.extensions.v1beta1.kotlin.outputs

import com.pulumi.core.Either
import com.pulumi.kubernetes.core.v1.kotlin.outputs.TypedLocalObjectReferencePatch
import kotlin.Int
import kotlin.String
import kotlin.Suppress

/**
 * IngressBackend describes all endpoints for a given service and port.
 * @property resource Resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, serviceName and servicePort must not be specified.
 * @property serviceName Specifies the name of the referenced service.
 * @property servicePort Specifies the port of the referenced service.
 */
public data class IngressBackendPatch(
    public val resource: TypedLocalObjectReferencePatch? = null,
    public val serviceName: String? = null,
    public val servicePort: Either? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.kubernetes.extensions.v1beta1.outputs.IngressBackendPatch): IngressBackendPatch = IngressBackendPatch(
            resource = javaType.resource().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.kubernetes.core.v1.kotlin.outputs.TypedLocalObjectReferencePatch.Companion.toKotlin(args0)
                })
            }).orElse(null),
            serviceName = javaType.serviceName().map({ args0 -> args0 }).orElse(null),
            servicePort = javaType.servicePort().map({ args0 ->
                args0.transform({ args0 -> args0 }, { args0 ->
                    args0
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy