
com.pulumi.azurenative.machinelearningservices.kotlin.inputs.ServerlessEndpointArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.machinelearningservices.kotlin.inputs
import com.pulumi.azurenative.machinelearningservices.inputs.ServerlessEndpointArgs.builder
import com.pulumi.azurenative.machinelearningservices.kotlin.enums.ServerlessInferenceEndpointAuthMode
import com.pulumi.core.Either
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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property authMode Specifies the authentication mode for the Serverless endpoint.
* @property capacityReservation Optional capacity reservation information for the endpoint. When specified, the Serverless Endpoint
* will be allocated capacity from the specified capacity reservation group.
* @property offer [Required] The publisher-defined Serverless Offer to provision the endpoint with.
*/
public data class ServerlessEndpointArgs(
public val authMode: Output>? = null,
public val capacityReservation: Output? = null,
public val offer: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.machinelearningservices.inputs.ServerlessEndpointArgs =
com.pulumi.azurenative.machinelearningservices.inputs.ServerlessEndpointArgs.builder()
.authMode(
authMode?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.capacityReservation(
capacityReservation?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.offer(offer.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [ServerlessEndpointArgs].
*/
@PulumiTagMarker
public class ServerlessEndpointArgsBuilder internal constructor() {
private var authMode: Output>? = null
private var capacityReservation: Output? = null
private var offer: Output? = null
/**
* @param value Specifies the authentication mode for the Serverless endpoint.
*/
@JvmName("lofuijgonfyewylm")
public suspend fun authMode(`value`: Output>) {
this.authMode = value
}
/**
* @param value Optional capacity reservation information for the endpoint. When specified, the Serverless Endpoint
* will be allocated capacity from the specified capacity reservation group.
*/
@JvmName("tfudtlpovfjdoydf")
public suspend fun capacityReservation(`value`: Output) {
this.capacityReservation = value
}
/**
* @param value [Required] The publisher-defined Serverless Offer to provision the endpoint with.
*/
@JvmName("kdoyoujavltskbiv")
public suspend fun offer(`value`: Output) {
this.offer = value
}
/**
* @param value Specifies the authentication mode for the Serverless endpoint.
*/
@JvmName("sgfgjsaybxtdgvup")
public suspend fun authMode(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.authMode = mapped
}
/**
* @param value Specifies the authentication mode for the Serverless endpoint.
*/
@JvmName("ifqfwjylavbispeh")
public fun authMode(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.authMode = mapped
}
/**
* @param value Specifies the authentication mode for the Serverless endpoint.
*/
@JvmName("rfvflmguavvqwqlu")
public fun authMode(`value`: ServerlessInferenceEndpointAuthMode) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.authMode = mapped
}
/**
* @param value Optional capacity reservation information for the endpoint. When specified, the Serverless Endpoint
* will be allocated capacity from the specified capacity reservation group.
*/
@JvmName("gripcgiyruhyyjtq")
public suspend fun capacityReservation(`value`: ServerlessEndpointCapacityReservationArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.capacityReservation = mapped
}
/**
* @param argument Optional capacity reservation information for the endpoint. When specified, the Serverless Endpoint
* will be allocated capacity from the specified capacity reservation group.
*/
@JvmName("otlmvmnvqmkyfkkx")
public suspend fun capacityReservation(argument: suspend ServerlessEndpointCapacityReservationArgsBuilder.() -> Unit) {
val toBeMapped = ServerlessEndpointCapacityReservationArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.capacityReservation = mapped
}
/**
* @param value [Required] The publisher-defined Serverless Offer to provision the endpoint with.
*/
@JvmName("hgejainmxhwvxycu")
public suspend fun offer(`value`: ServerlessOfferArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.offer = mapped
}
/**
* @param argument [Required] The publisher-defined Serverless Offer to provision the endpoint with.
*/
@JvmName("bdlkhuqynvmqpyue")
public suspend fun offer(argument: suspend ServerlessOfferArgsBuilder.() -> Unit) {
val toBeMapped = ServerlessOfferArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.offer = mapped
}
internal fun build(): ServerlessEndpointArgs = ServerlessEndpointArgs(
authMode = authMode,
capacityReservation = capacityReservation,
offer = offer ?: throw PulumiNullFieldException("offer"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy