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

com.pulumi.awsnative.memorydb.kotlin.inputs.ClusterEndpointArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.memorydb.kotlin.inputs

import com.pulumi.awsnative.memorydb.inputs.ClusterEndpointArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property address The DNS address of the primary read-write node.
 * @property port The port number that the engine is listening on.
 */
public data class ClusterEndpointArgs(
    public val address: Output? = null,
    public val port: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.memorydb.inputs.ClusterEndpointArgs =
        com.pulumi.awsnative.memorydb.inputs.ClusterEndpointArgs.builder()
            .address(address?.applyValue({ args0 -> args0 }))
            .port(port?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ClusterEndpointArgs].
 */
@PulumiTagMarker
public class ClusterEndpointArgsBuilder internal constructor() {
    private var address: Output? = null

    private var port: Output? = null

    /**
     * @param value The DNS address of the primary read-write node.
     */
    @JvmName("jicywennjhcftjcj")
    public suspend fun address(`value`: Output) {
        this.address = value
    }

    /**
     * @param value The port number that the engine is listening on.
     */
    @JvmName("obndxguchciybpmw")
    public suspend fun port(`value`: Output) {
        this.port = value
    }

    /**
     * @param value The DNS address of the primary read-write node.
     */
    @JvmName("dnjjjqxadjxusrlo")
    public suspend fun address(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.address = mapped
    }

    /**
     * @param value The port number that the engine is listening on.
     */
    @JvmName("fqrbixmhfkwpfgaj")
    public suspend fun port(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.port = mapped
    }

    internal fun build(): ClusterEndpointArgs = ClusterEndpointArgs(
        address = address,
        port = port,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy