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

com.pulumi.azure.cdn.kotlin.inputs.EndpointOriginArgs.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: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.cdn.kotlin.inputs

import com.pulumi.azure.cdn.inputs.EndpointOriginArgs.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

/**
 *
 * @property hostName A string that determines the hostname/IP address of the origin server. This string can be a domain name, Storage Account endpoint, Web App endpoint, IPv4 address or IPv6 address. Changing this forces a new resource to be created.
 * @property httpPort The HTTP port of the origin. Defaults to `80`. Changing this forces a new resource to be created.
 * @property httpsPort The HTTPS port of the origin. Defaults to `443`. Changing this forces a new resource to be created.
 * @property name The name of the origin. This is an arbitrary value. However, this value needs to be unique under the endpoint. Changing this forces a new resource to be created.
 */
public data class EndpointOriginArgs(
    public val hostName: Output,
    public val httpPort: Output? = null,
    public val httpsPort: Output? = null,
    public val name: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.cdn.inputs.EndpointOriginArgs =
        com.pulumi.azure.cdn.inputs.EndpointOriginArgs.builder()
            .hostName(hostName.applyValue({ args0 -> args0 }))
            .httpPort(httpPort?.applyValue({ args0 -> args0 }))
            .httpsPort(httpsPort?.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [EndpointOriginArgs].
 */
@PulumiTagMarker
public class EndpointOriginArgsBuilder internal constructor() {
    private var hostName: Output? = null

    private var httpPort: Output? = null

    private var httpsPort: Output? = null

    private var name: Output? = null

    /**
     * @param value A string that determines the hostname/IP address of the origin server. This string can be a domain name, Storage Account endpoint, Web App endpoint, IPv4 address or IPv6 address. Changing this forces a new resource to be created.
     */
    @JvmName("fjlrxsqhhaihgejl")
    public suspend fun hostName(`value`: Output) {
        this.hostName = value
    }

    /**
     * @param value The HTTP port of the origin. Defaults to `80`. Changing this forces a new resource to be created.
     */
    @JvmName("ykdqrxjtuohbspkx")
    public suspend fun httpPort(`value`: Output) {
        this.httpPort = value
    }

    /**
     * @param value The HTTPS port of the origin. Defaults to `443`. Changing this forces a new resource to be created.
     */
    @JvmName("eqiypkbwnjpjqben")
    public suspend fun httpsPort(`value`: Output) {
        this.httpsPort = value
    }

    /**
     * @param value The name of the origin. This is an arbitrary value. However, this value needs to be unique under the endpoint. Changing this forces a new resource to be created.
     */
    @JvmName("hcrnwdlqxolliitf")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value A string that determines the hostname/IP address of the origin server. This string can be a domain name, Storage Account endpoint, Web App endpoint, IPv4 address or IPv6 address. Changing this forces a new resource to be created.
     */
    @JvmName("luswsghfdwvlmxrb")
    public suspend fun hostName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.hostName = mapped
    }

    /**
     * @param value The HTTP port of the origin. Defaults to `80`. Changing this forces a new resource to be created.
     */
    @JvmName("yqkrliwelyybdmog")
    public suspend fun httpPort(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.httpPort = mapped
    }

    /**
     * @param value The HTTPS port of the origin. Defaults to `443`. Changing this forces a new resource to be created.
     */
    @JvmName("bpxycvpjiqcntacd")
    public suspend fun httpsPort(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.httpsPort = mapped
    }

    /**
     * @param value The name of the origin. This is an arbitrary value. However, this value needs to be unique under the endpoint. Changing this forces a new resource to be created.
     */
    @JvmName("wjbsmlndqsfcwlff")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    internal fun build(): EndpointOriginArgs = EndpointOriginArgs(
        hostName = hostName ?: throw PulumiNullFieldException("hostName"),
        httpPort = httpPort,
        httpsPort = httpsPort,
        name = name ?: throw PulumiNullFieldException("name"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy