
com.pulumi.awsnative.mediatailor.kotlin.inputs.SourceLocationDefaultSegmentDeliveryConfigurationArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.mediatailor.kotlin.inputs
import com.pulumi.awsnative.mediatailor.inputs.SourceLocationDefaultSegmentDeliveryConfigurationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* The optional configuration for a server that serves segments. Use this if you want the segment delivery server to be different from the source location server. For example, you can configure your source location server to be an origination server, such as MediaPackage, and the segment delivery server to be a content delivery network (CDN), such as CloudFront. If you don't specify a segment delivery server, then the source location server is used.
* @property baseUrl The hostname of the server that will be used to serve segments. This string must include the protocol, such as https://.
*/
public data class SourceLocationDefaultSegmentDeliveryConfigurationArgs(
public val baseUrl: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.mediatailor.inputs.SourceLocationDefaultSegmentDeliveryConfigurationArgs =
com.pulumi.awsnative.mediatailor.inputs.SourceLocationDefaultSegmentDeliveryConfigurationArgs.builder()
.baseUrl(baseUrl?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [SourceLocationDefaultSegmentDeliveryConfigurationArgs].
*/
@PulumiTagMarker
public class SourceLocationDefaultSegmentDeliveryConfigurationArgsBuilder internal constructor() {
private var baseUrl: Output? = null
/**
* @param value The hostname of the server that will be used to serve segments. This string must include the protocol, such as https://.
*/
@JvmName("yfboygvjvpxlrklt")
public suspend fun baseUrl(`value`: Output) {
this.baseUrl = value
}
/**
* @param value The hostname of the server that will be used to serve segments. This string must include the protocol, such as https://.
*/
@JvmName("fimwbrpwoxhcfiiy")
public suspend fun baseUrl(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.baseUrl = mapped
}
internal fun build(): SourceLocationDefaultSegmentDeliveryConfigurationArgs =
SourceLocationDefaultSegmentDeliveryConfigurationArgs(
baseUrl = baseUrl,
)
}