![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.cdn.kotlin.outputs.EndpointOrigin.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.cdn.kotlin.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
*
* @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 EndpointOrigin(
public val hostName: String,
public val httpPort: Int? = null,
public val httpsPort: Int? = null,
public val name: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.cdn.outputs.EndpointOrigin): EndpointOrigin =
EndpointOrigin(
hostName = javaType.hostName(),
httpPort = javaType.httpPort().map({ args0 -> args0 }).orElse(null),
httpsPort = javaType.httpsPort().map({ args0 -> args0 }).orElse(null),
name = javaType.name(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy