com.pulumi.azurenative.network.kotlin.inputs.HubRouteArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.network.kotlin.inputs
import com.pulumi.azurenative.network.inputs.HubRouteArgs.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.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* RouteTable route.
* @property destinationType The type of destinations (eg: CIDR, ResourceId, Service).
* @property destinations List of all destinations.
* @property name The name of the Route that is unique within a RouteTable. This name can be used to access this route.
* @property nextHop NextHop resource ID.
* @property nextHopType The type of next hop (eg: ResourceId).
*/
public data class HubRouteArgs(
public val destinationType: Output,
public val destinations: Output>,
public val name: Output,
public val nextHop: Output,
public val nextHopType: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.network.inputs.HubRouteArgs =
com.pulumi.azurenative.network.inputs.HubRouteArgs.builder()
.destinationType(destinationType.applyValue({ args0 -> args0 }))
.destinations(destinations.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.name(name.applyValue({ args0 -> args0 }))
.nextHop(nextHop.applyValue({ args0 -> args0 }))
.nextHopType(nextHopType.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [HubRouteArgs].
*/
@PulumiTagMarker
public class HubRouteArgsBuilder internal constructor() {
private var destinationType: Output? = null
private var destinations: Output>? = null
private var name: Output? = null
private var nextHop: Output? = null
private var nextHopType: Output? = null
/**
* @param value The type of destinations (eg: CIDR, ResourceId, Service).
*/
@JvmName("jabhqgmkmjlerhix")
public suspend fun destinationType(`value`: Output) {
this.destinationType = value
}
/**
* @param value List of all destinations.
*/
@JvmName("npomxyqxngjdbvbw")
public suspend fun destinations(`value`: Output>) {
this.destinations = value
}
@JvmName("hhqtaesofondhvkm")
public suspend fun destinations(vararg values: Output) {
this.destinations = Output.all(values.asList())
}
/**
* @param values List of all destinations.
*/
@JvmName("fkhsjrdggkahbmxy")
public suspend fun destinations(values: List