
com.pulumi.azurenative.machinelearningservices.kotlin.inputs.PrivateEndpointOutboundRuleArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.machinelearningservices.kotlin.inputs
import com.pulumi.azurenative.machinelearningservices.inputs.PrivateEndpointOutboundRuleArgs.builder
import com.pulumi.azurenative.machinelearningservices.kotlin.enums.RuleCategory
import com.pulumi.azurenative.machinelearningservices.kotlin.enums.RuleStatus
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
/**
* Private Endpoint Outbound Rule for the managed network of a machine learning workspace.
* @property category Category of a managed network Outbound Rule of a machine learning workspace.
* @property destination Private Endpoint destination for a Private Endpoint Outbound Rule for the managed network of a machine learning workspace.
* @property status Status of a managed network Outbound Rule of a machine learning workspace.
* @property type Type of a managed network Outbound Rule of a machine learning workspace.
* Expected value is 'PrivateEndpoint'.
*/
public data class PrivateEndpointOutboundRuleArgs(
public val category: Output>? = null,
public val destination: Output? = null,
public val status: Output>? = null,
public val type: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.machinelearningservices.inputs.PrivateEndpointOutboundRuleArgs =
com.pulumi.azurenative.machinelearningservices.inputs.PrivateEndpointOutboundRuleArgs.builder()
.category(
category?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.destination(destination?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.status(
status?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.type(type.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [PrivateEndpointOutboundRuleArgs].
*/
@PulumiTagMarker
public class PrivateEndpointOutboundRuleArgsBuilder internal constructor() {
private var category: Output>? = null
private var destination: Output? = null
private var status: Output>? = null
private var type: Output? = null
/**
* @param value Category of a managed network Outbound Rule of a machine learning workspace.
*/
@JvmName("meucqyttujqkwglc")
public suspend fun category(`value`: Output>) {
this.category = value
}
/**
* @param value Private Endpoint destination for a Private Endpoint Outbound Rule for the managed network of a machine learning workspace.
*/
@JvmName("axvahsqggmjchbwq")
public suspend fun destination(`value`: Output) {
this.destination = value
}
/**
* @param value Status of a managed network Outbound Rule of a machine learning workspace.
*/
@JvmName("jftknjxekssthdmm")
public suspend fun status(`value`: Output>) {
this.status = value
}
/**
* @param value Type of a managed network Outbound Rule of a machine learning workspace.
* Expected value is 'PrivateEndpoint'.
*/
@JvmName("isrbyemurinqxspr")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value Category of a managed network Outbound Rule of a machine learning workspace.
*/
@JvmName("fmexefgiksrkrisc")
public suspend fun category(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.category = mapped
}
/**
* @param value Category of a managed network Outbound Rule of a machine learning workspace.
*/
@JvmName("axseeumkfvnejkti")
public fun category(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.category = mapped
}
/**
* @param value Category of a managed network Outbound Rule of a machine learning workspace.
*/
@JvmName("fqdsnosjwmegluqk")
public fun category(`value`: RuleCategory) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.category = mapped
}
/**
* @param value Private Endpoint destination for a Private Endpoint Outbound Rule for the managed network of a machine learning workspace.
*/
@JvmName("mumasoqxmipurtop")
public suspend fun destination(`value`: PrivateEndpointDestinationArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.destination = mapped
}
/**
* @param argument Private Endpoint destination for a Private Endpoint Outbound Rule for the managed network of a machine learning workspace.
*/
@JvmName("wabxeboyptmhfmyt")
public suspend fun destination(argument: suspend PrivateEndpointDestinationArgsBuilder.() -> Unit) {
val toBeMapped = PrivateEndpointDestinationArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.destination = mapped
}
/**
* @param value Status of a managed network Outbound Rule of a machine learning workspace.
*/
@JvmName("mjyipivaaalgjbgh")
public suspend fun status(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.status = mapped
}
/**
* @param value Status of a managed network Outbound Rule of a machine learning workspace.
*/
@JvmName("exgumavqengtocfu")
public fun status(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.status = mapped
}
/**
* @param value Status of a managed network Outbound Rule of a machine learning workspace.
*/
@JvmName("ferhbefiiabojmvl")
public fun status(`value`: RuleStatus) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.status = mapped
}
/**
* @param value Type of a managed network Outbound Rule of a machine learning workspace.
* Expected value is 'PrivateEndpoint'.
*/
@JvmName("bjyglxsubcmrpiba")
public suspend fun type(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
internal fun build(): PrivateEndpointOutboundRuleArgs = PrivateEndpointOutboundRuleArgs(
category = category,
destination = destination,
status = status,
type = type ?: throw PulumiNullFieldException("type"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy