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

com.pulumi.azurenative.servicefabricmesh.kotlin.inputs.EndpointPropertiesArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.servicefabricmesh.kotlin.inputs

import com.pulumi.azurenative.servicefabricmesh.inputs.EndpointPropertiesArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Describes a container endpoint.
 * @property name The name of the endpoint.
 * @property port Port used by the container.
 */
public data class EndpointPropertiesArgs(
    public val name: Output,
    public val port: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.servicefabricmesh.inputs.EndpointPropertiesArgs =
        com.pulumi.azurenative.servicefabricmesh.inputs.EndpointPropertiesArgs.builder()
            .name(name.applyValue({ args0 -> args0 }))
            .port(port?.applyValue({ args0 -> args0 })).build()
}

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

    private var port: Output? = null

    /**
     * @param value The name of the endpoint.
     */
    @JvmName("vdnrwappwehvjoat")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Port used by the container.
     */
    @JvmName("oftcurlvpbbwnlrl")
    public suspend fun port(`value`: Output) {
        this.port = value
    }

    /**
     * @param value The name of the endpoint.
     */
    @JvmName("ojqnmyrpdycubugo")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Port used by the container.
     */
    @JvmName("cfsmysvxydkgbotk")
    public suspend fun port(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.port = mapped
    }

    internal fun build(): EndpointPropertiesArgs = EndpointPropertiesArgs(
        name = name ?: throw PulumiNullFieldException("name"),
        port = port,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy