Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.azurenative.network.kotlin.DscpConfigurationArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.network.kotlin
import com.pulumi.azurenative.network.DscpConfigurationArgs.builder
import com.pulumi.azurenative.network.kotlin.enums.ProtocolType
import com.pulumi.azurenative.network.kotlin.inputs.QosDefinitionArgs
import com.pulumi.azurenative.network.kotlin.inputs.QosDefinitionArgsBuilder
import com.pulumi.azurenative.network.kotlin.inputs.QosIpRangeArgs
import com.pulumi.azurenative.network.kotlin.inputs.QosIpRangeArgsBuilder
import com.pulumi.azurenative.network.kotlin.inputs.QosPortRangeArgs
import com.pulumi.azurenative.network.kotlin.inputs.QosPortRangeArgsBuilder
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.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Differentiated Services Code Point configuration for any given network interface
* Azure REST API version: 2023-02-01. Prior API version in Azure Native 1.x: 2020-11-01.
* Other available API versions: 2023-04-01, 2023-05-01, 2023-06-01, 2023-09-01, 2023-11-01, 2024-01-01.
* ## Example Usage
* ### Create DSCP Configuration
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var dscpConfiguration = new AzureNative.Network.DscpConfiguration("dscpConfiguration", new()
* {
* DscpConfigurationName = "mydscpconfig",
* Location = "eastus",
* QosDefinitionCollection = new[]
* {
* new AzureNative.Network.Inputs.QosDefinitionArgs
* {
* DestinationIpRanges = new[]
* {
* new AzureNative.Network.Inputs.QosIpRangeArgs
* {
* EndIP = "127.0.10.2",
* StartIP = "127.0.10.1",
* },
* },
* DestinationPortRanges = new[]
* {
* new AzureNative.Network.Inputs.QosPortRangeArgs
* {
* End = 15,
* Start = 15,
* },
* },
* Markings = new[]
* {
* 1,
* },
* Protocol = AzureNative.Network.ProtocolType.Tcp,
* SourceIpRanges = new[]
* {
* new AzureNative.Network.Inputs.QosIpRangeArgs
* {
* EndIP = "127.0.0.2",
* StartIP = "127.0.0.1",
* },
* },
* SourcePortRanges = new[]
* {
* new AzureNative.Network.Inputs.QosPortRangeArgs
* {
* End = 11,
* Start = 10,
* },
* new AzureNative.Network.Inputs.QosPortRangeArgs
* {
* End = 21,
* Start = 20,
* },
* },
* },
* new AzureNative.Network.Inputs.QosDefinitionArgs
* {
* DestinationIpRanges = new[]
* {
* new AzureNative.Network.Inputs.QosIpRangeArgs
* {
* EndIP = "12.0.10.2",
* StartIP = "12.0.10.1",
* },
* },
* DestinationPortRanges = new[]
* {
* new AzureNative.Network.Inputs.QosPortRangeArgs
* {
* End = 52,
* Start = 51,
* },
* },
* Markings = new[]
* {
* 2,
* },
* Protocol = AzureNative.Network.ProtocolType.Udp,
* SourceIpRanges = new[]
* {
* new AzureNative.Network.Inputs.QosIpRangeArgs
* {
* EndIP = "12.0.0.2",
* StartIP = "12.0.0.1",
* },
* },
* SourcePortRanges = new[]
* {
* new AzureNative.Network.Inputs.QosPortRangeArgs
* {
* End = 12,
* Start = 11,
* },
* },
* },
* },
* ResourceGroupName = "rg1",
* });
* });
* ```
* ```go
* package main
* import (
* network "github.com/pulumi/pulumi-azure-native-sdk/network/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := network.NewDscpConfiguration(ctx, "dscpConfiguration", &network.DscpConfigurationArgs{
* DscpConfigurationName: pulumi.String("mydscpconfig"),
* Location: pulumi.String("eastus"),
* QosDefinitionCollection: network.QosDefinitionArray{
* &network.QosDefinitionArgs{
* DestinationIpRanges: network.QosIpRangeArray{
* &network.QosIpRangeArgs{
* EndIP: pulumi.String("127.0.10.2"),
* StartIP: pulumi.String("127.0.10.1"),
* },
* },
* DestinationPortRanges: network.QosPortRangeArray{
* &network.QosPortRangeArgs{
* End: pulumi.Int(15),
* Start: pulumi.Int(15),
* },
* },
* Markings: pulumi.IntArray{
* pulumi.Int(1),
* },
* Protocol: pulumi.String(network.ProtocolTypeTcp),
* SourceIpRanges: network.QosIpRangeArray{
* &network.QosIpRangeArgs{
* EndIP: pulumi.String("127.0.0.2"),
* StartIP: pulumi.String("127.0.0.1"),
* },
* },
* SourcePortRanges: network.QosPortRangeArray{
* &network.QosPortRangeArgs{
* End: pulumi.Int(11),
* Start: pulumi.Int(10),
* },
* &network.QosPortRangeArgs{
* End: pulumi.Int(21),
* Start: pulumi.Int(20),
* },
* },
* },
* &network.QosDefinitionArgs{
* DestinationIpRanges: network.QosIpRangeArray{
* &network.QosIpRangeArgs{
* EndIP: pulumi.String("12.0.10.2"),
* StartIP: pulumi.String("12.0.10.1"),
* },
* },
* DestinationPortRanges: network.QosPortRangeArray{
* &network.QosPortRangeArgs{
* End: pulumi.Int(52),
* Start: pulumi.Int(51),
* },
* },
* Markings: pulumi.IntArray{
* pulumi.Int(2),
* },
* Protocol: pulumi.String(network.ProtocolTypeUdp),
* SourceIpRanges: network.QosIpRangeArray{
* &network.QosIpRangeArgs{
* EndIP: pulumi.String("12.0.0.2"),
* StartIP: pulumi.String("12.0.0.1"),
* },
* },
* SourcePortRanges: network.QosPortRangeArray{
* &network.QosPortRangeArgs{
* End: pulumi.Int(12),
* Start: pulumi.Int(11),
* },
* },
* },
* },
* ResourceGroupName: pulumi.String("rg1"),
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.network.DscpConfiguration;
* import com.pulumi.azurenative.network.DscpConfigurationArgs;
* import com.pulumi.azurenative.network.inputs.QosDefinitionArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
* public static void stack(Context ctx) {
* var dscpConfiguration = new DscpConfiguration("dscpConfiguration", DscpConfigurationArgs.builder()
* .dscpConfigurationName("mydscpconfig")
* .location("eastus")
* .qosDefinitionCollection(
* QosDefinitionArgs.builder()
* .destinationIpRanges(QosIpRangeArgs.builder()
* .endIP("127.0.10.2")
* .startIP("127.0.10.1")
* .build())
* .destinationPortRanges(QosPortRangeArgs.builder()
* .end(15)
* .start(15)
* .build())
* .markings(1)
* .protocol("Tcp")
* .sourceIpRanges(QosIpRangeArgs.builder()
* .endIP("127.0.0.2")
* .startIP("127.0.0.1")
* .build())
* .sourcePortRanges(
* QosPortRangeArgs.builder()
* .end(11)
* .start(10)
* .build(),
* QosPortRangeArgs.builder()
* .end(21)
* .start(20)
* .build())
* .build(),
* QosDefinitionArgs.builder()
* .destinationIpRanges(QosIpRangeArgs.builder()
* .endIP("12.0.10.2")
* .startIP("12.0.10.1")
* .build())
* .destinationPortRanges(QosPortRangeArgs.builder()
* .end(52)
* .start(51)
* .build())
* .markings(2)
* .protocol("Udp")
* .sourceIpRanges(QosIpRangeArgs.builder()
* .endIP("12.0.0.2")
* .startIP("12.0.0.1")
* .build())
* .sourcePortRanges(QosPortRangeArgs.builder()
* .end(12)
* .start(11)
* .build())
* .build())
* .resourceGroupName("rg1")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:network:DscpConfiguration mydscpConfig /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dscpConfigurations/{dscpConfigurationName}
* ```
* @property destinationIpRanges Destination IP ranges.
* @property destinationPortRanges Destination port ranges.
* @property dscpConfigurationName The name of the resource.
* @property id Resource ID.
* @property location Resource location.
* @property markings List of markings to be used in the configuration.
* @property protocol RNM supported protocol types.
* @property qosDefinitionCollection QoS object definitions
* @property resourceGroupName The name of the resource group.
* @property sourceIpRanges Source IP ranges.
* @property sourcePortRanges Sources port ranges.
* @property tags Resource tags.
*/
public data class DscpConfigurationArgs(
public val destinationIpRanges: Output>? = null,
public val destinationPortRanges: Output>? = null,
public val dscpConfigurationName: Output? = null,
public val id: Output? = null,
public val location: Output? = null,
public val markings: Output>? = null,
public val protocol: Output>? = null,
public val qosDefinitionCollection: Output>? = null,
public val resourceGroupName: Output? = null,
public val sourceIpRanges: Output>? = null,
public val sourcePortRanges: Output>? = null,
public val tags: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.network.DscpConfigurationArgs =
com.pulumi.azurenative.network.DscpConfigurationArgs.builder()
.destinationIpRanges(
destinationIpRanges?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.destinationPortRanges(
destinationPortRanges?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.dscpConfigurationName(dscpConfigurationName?.applyValue({ args0 -> args0 }))
.id(id?.applyValue({ args0 -> args0 }))
.location(location?.applyValue({ args0 -> args0 }))
.markings(markings?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.protocol(
protocol?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.qosDefinitionCollection(
qosDefinitionCollection?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.sourceIpRanges(
sourceIpRanges?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.sourcePortRanges(
sourcePortRanges?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.tags(
tags?.applyValue({ args0 ->
args0.map({ args0 ->
args0.key.to(args0.value)
}).toMap()
}),
).build()
}
/**
* Builder for [DscpConfigurationArgs].
*/
@PulumiTagMarker
public class DscpConfigurationArgsBuilder internal constructor() {
private var destinationIpRanges: Output>? = null
private var destinationPortRanges: Output>? = null
private var dscpConfigurationName: Output? = null
private var id: Output? = null
private var location: Output? = null
private var markings: Output>? = null
private var protocol: Output>? = null
private var qosDefinitionCollection: Output>? = null
private var resourceGroupName: Output? = null
private var sourceIpRanges: Output>? = null
private var sourcePortRanges: Output>? = null
private var tags: Output>? = null
/**
* @param value Destination IP ranges.
*/
@JvmName("lsfybdqvnfotscoj")
public suspend fun destinationIpRanges(`value`: Output>) {
this.destinationIpRanges = value
}
@JvmName("imudmefqapccarso")
public suspend fun destinationIpRanges(vararg values: Output) {
this.destinationIpRanges = Output.all(values.asList())
}
/**
* @param values Destination IP ranges.
*/
@JvmName("ivbbhyklcdhxnfmn")
public suspend fun destinationIpRanges(values: List>) {
this.destinationIpRanges = Output.all(values)
}
/**
* @param value Destination port ranges.
*/
@JvmName("trpqxrsljhyffsnw")
public suspend fun destinationPortRanges(`value`: Output>) {
this.destinationPortRanges = value
}
@JvmName("aratnajbxktdaphw")
public suspend fun destinationPortRanges(vararg values: Output) {
this.destinationPortRanges = Output.all(values.asList())
}
/**
* @param values Destination port ranges.
*/
@JvmName("bsvrdtqrnuhverku")
public suspend fun destinationPortRanges(values: List>) {
this.destinationPortRanges = Output.all(values)
}
/**
* @param value The name of the resource.
*/
@JvmName("wwivukehakukdbpb")
public suspend fun dscpConfigurationName(`value`: Output) {
this.dscpConfigurationName = value
}
/**
* @param value Resource ID.
*/
@JvmName("pynefvfqjiyjieeb")
public suspend fun id(`value`: Output) {
this.id = value
}
/**
* @param value Resource location.
*/
@JvmName("tkijgixlsykpuyrd")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value List of markings to be used in the configuration.
*/
@JvmName("mtlqhtbgdqxufxxq")
public suspend fun markings(`value`: Output>) {
this.markings = value
}
@JvmName("knvdbpimweaenfxi")
public suspend fun markings(vararg values: Output) {
this.markings = Output.all(values.asList())
}
/**
* @param values List of markings to be used in the configuration.
*/
@JvmName("uikoxdttqxpytcbo")
public suspend fun markings(values: List>) {
this.markings = Output.all(values)
}
/**
* @param value RNM supported protocol types.
*/
@JvmName("fwlxrsakmskviotm")
public suspend fun protocol(`value`: Output>) {
this.protocol = value
}
/**
* @param value QoS object definitions
*/
@JvmName("dgqcraevrjpcsqyx")
public suspend fun qosDefinitionCollection(`value`: Output>) {
this.qosDefinitionCollection = value
}
@JvmName("kxvlvkgevicndrua")
public suspend fun qosDefinitionCollection(vararg values: Output) {
this.qosDefinitionCollection = Output.all(values.asList())
}
/**
* @param values QoS object definitions
*/
@JvmName("yeqyvclrxngavlrn")
public suspend fun qosDefinitionCollection(values: List>) {
this.qosDefinitionCollection = Output.all(values)
}
/**
* @param value The name of the resource group.
*/
@JvmName("kidwdxfyynmqeasb")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value Source IP ranges.
*/
@JvmName("hjfopwsivbucrpew")
public suspend fun sourceIpRanges(`value`: Output>) {
this.sourceIpRanges = value
}
@JvmName("njxdflhdjxcoiivp")
public suspend fun sourceIpRanges(vararg values: Output) {
this.sourceIpRanges = Output.all(values.asList())
}
/**
* @param values Source IP ranges.
*/
@JvmName("imoywmdbvkoeiuey")
public suspend fun sourceIpRanges(values: List>) {
this.sourceIpRanges = Output.all(values)
}
/**
* @param value Sources port ranges.
*/
@JvmName("rjodhtqpcpsgoqsb")
public suspend fun sourcePortRanges(`value`: Output>) {
this.sourcePortRanges = value
}
@JvmName("qjsnthophylvwqpc")
public suspend fun sourcePortRanges(vararg values: Output) {
this.sourcePortRanges = Output.all(values.asList())
}
/**
* @param values Sources port ranges.
*/
@JvmName("waskytieetedorxe")
public suspend fun sourcePortRanges(values: List>) {
this.sourcePortRanges = Output.all(values)
}
/**
* @param value Resource tags.
*/
@JvmName("mqkwnykdjktgffec")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
/**
* @param value Destination IP ranges.
*/
@JvmName("khmmhntlbblsojjf")
public suspend fun destinationIpRanges(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.destinationIpRanges = mapped
}
/**
* @param argument Destination IP ranges.
*/
@JvmName("gobtaxfpfkgxejvh")
public suspend fun destinationIpRanges(argument: List Unit>) {
val toBeMapped = argument.toList().map { QosIpRangeArgsBuilder().applySuspend { it() }.build() }
val mapped = of(toBeMapped)
this.destinationIpRanges = mapped
}
/**
* @param argument Destination IP ranges.
*/
@JvmName("xydkencglnpqleks")
public suspend fun destinationIpRanges(vararg argument: suspend QosIpRangeArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map { QosIpRangeArgsBuilder().applySuspend { it() }.build() }
val mapped = of(toBeMapped)
this.destinationIpRanges = mapped
}
/**
* @param argument Destination IP ranges.
*/
@JvmName("nnyvqnvojmqhctbm")
public suspend fun destinationIpRanges(argument: suspend QosIpRangeArgsBuilder.() -> Unit) {
val toBeMapped = listOf(QosIpRangeArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.destinationIpRanges = mapped
}
/**
* @param values Destination IP ranges.
*/
@JvmName("qytbtbchndwdpxem")
public suspend fun destinationIpRanges(vararg values: QosIpRangeArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.destinationIpRanges = mapped
}
/**
* @param value Destination port ranges.
*/
@JvmName("lqasbobuupnhiasn")
public suspend fun destinationPortRanges(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.destinationPortRanges = mapped
}
/**
* @param argument Destination port ranges.
*/
@JvmName("rtgocneeymsekwrt")
public suspend fun destinationPortRanges(argument: List Unit>) {
val toBeMapped = argument.toList().map {
QosPortRangeArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.destinationPortRanges = mapped
}
/**
* @param argument Destination port ranges.
*/
@JvmName("cocsmhdpruljkjea")
public suspend fun destinationPortRanges(vararg argument: suspend QosPortRangeArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
QosPortRangeArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.destinationPortRanges = mapped
}
/**
* @param argument Destination port ranges.
*/
@JvmName("bfnncjcywtersrft")
public suspend fun destinationPortRanges(argument: suspend QosPortRangeArgsBuilder.() -> Unit) {
val toBeMapped = listOf(QosPortRangeArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.destinationPortRanges = mapped
}
/**
* @param values Destination port ranges.
*/
@JvmName("ruipfcmbybyeyiao")
public suspend fun destinationPortRanges(vararg values: QosPortRangeArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.destinationPortRanges = mapped
}
/**
* @param value The name of the resource.
*/
@JvmName("rcvxipaooiqkcbua")
public suspend fun dscpConfigurationName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.dscpConfigurationName = mapped
}
/**
* @param value Resource ID.
*/
@JvmName("qubilrychkovress")
public suspend fun id(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.id = mapped
}
/**
* @param value Resource location.
*/
@JvmName("jsciecqlxaupxgji")
public suspend fun location(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.location = mapped
}
/**
* @param value List of markings to be used in the configuration.
*/
@JvmName("ksibupwqmkrmhuqn")
public suspend fun markings(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.markings = mapped
}
/**
* @param values List of markings to be used in the configuration.
*/
@JvmName("ovcxhpkchsfcjvks")
public suspend fun markings(vararg values: Int) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.markings = mapped
}
/**
* @param value RNM supported protocol types.
*/
@JvmName("slqghfqlthphvrdf")
public suspend fun protocol(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.protocol = mapped
}
/**
* @param value RNM supported protocol types.
*/
@JvmName("dcoqdxevpvedqnlt")
public fun protocol(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.protocol = mapped
}
/**
* @param value RNM supported protocol types.
*/
@JvmName("wckoheebfhyatbml")
public fun protocol(`value`: ProtocolType) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.protocol = mapped
}
/**
* @param value QoS object definitions
*/
@JvmName("dyatlitcvdomokle")
public suspend fun qosDefinitionCollection(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.qosDefinitionCollection = mapped
}
/**
* @param argument QoS object definitions
*/
@JvmName("ddebnsspgnkphncj")
public suspend fun qosDefinitionCollection(argument: List Unit>) {
val toBeMapped = argument.toList().map {
QosDefinitionArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.qosDefinitionCollection = mapped
}
/**
* @param argument QoS object definitions
*/
@JvmName("kyahxoaahljrcvfu")
public suspend fun qosDefinitionCollection(vararg argument: suspend QosDefinitionArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
QosDefinitionArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.qosDefinitionCollection = mapped
}
/**
* @param argument QoS object definitions
*/
@JvmName("soqctyoeycldjwod")
public suspend fun qosDefinitionCollection(argument: suspend QosDefinitionArgsBuilder.() -> Unit) {
val toBeMapped = listOf(QosDefinitionArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.qosDefinitionCollection = mapped
}
/**
* @param values QoS object definitions
*/
@JvmName("duopxaggvtvmldox")
public suspend fun qosDefinitionCollection(vararg values: QosDefinitionArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.qosDefinitionCollection = mapped
}
/**
* @param value The name of the resource group.
*/
@JvmName("yqpbsdwtbxmtyvbs")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
/**
* @param value Source IP ranges.
*/
@JvmName("wskpgynociirgnhl")
public suspend fun sourceIpRanges(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sourceIpRanges = mapped
}
/**
* @param argument Source IP ranges.
*/
@JvmName("dxstvjnnjoookevs")
public suspend fun sourceIpRanges(argument: List Unit>) {
val toBeMapped = argument.toList().map { QosIpRangeArgsBuilder().applySuspend { it() }.build() }
val mapped = of(toBeMapped)
this.sourceIpRanges = mapped
}
/**
* @param argument Source IP ranges.
*/
@JvmName("jaicutrlilugvpkk")
public suspend fun sourceIpRanges(vararg argument: suspend QosIpRangeArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map { QosIpRangeArgsBuilder().applySuspend { it() }.build() }
val mapped = of(toBeMapped)
this.sourceIpRanges = mapped
}
/**
* @param argument Source IP ranges.
*/
@JvmName("tvqmxmdhhlbxetne")
public suspend fun sourceIpRanges(argument: suspend QosIpRangeArgsBuilder.() -> Unit) {
val toBeMapped = listOf(QosIpRangeArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.sourceIpRanges = mapped
}
/**
* @param values Source IP ranges.
*/
@JvmName("dhfswmjjuynlkmxr")
public suspend fun sourceIpRanges(vararg values: QosIpRangeArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.sourceIpRanges = mapped
}
/**
* @param value Sources port ranges.
*/
@JvmName("qjmkqyiaenicerps")
public suspend fun sourcePortRanges(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sourcePortRanges = mapped
}
/**
* @param argument Sources port ranges.
*/
@JvmName("xvabdwwklrjnkcqf")
public suspend fun sourcePortRanges(argument: List Unit>) {
val toBeMapped = argument.toList().map {
QosPortRangeArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.sourcePortRanges = mapped
}
/**
* @param argument Sources port ranges.
*/
@JvmName("cqufgitmmbpmthyk")
public suspend fun sourcePortRanges(vararg argument: suspend QosPortRangeArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
QosPortRangeArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.sourcePortRanges = mapped
}
/**
* @param argument Sources port ranges.
*/
@JvmName("xksgookhnnkjvtid")
public suspend fun sourcePortRanges(argument: suspend QosPortRangeArgsBuilder.() -> Unit) {
val toBeMapped = listOf(QosPortRangeArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.sourcePortRanges = mapped
}
/**
* @param values Sources port ranges.
*/
@JvmName("wqdqxtmwawxljjtq")
public suspend fun sourcePortRanges(vararg values: QosPortRangeArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.sourcePortRanges = mapped
}
/**
* @param value Resource tags.
*/
@JvmName("trappcxmdovgcudw")
public suspend fun tags(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param values Resource tags.
*/
@JvmName("cyqtiwlkpphpclhv")
public fun tags(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.tags = mapped
}
internal fun build(): DscpConfigurationArgs = DscpConfigurationArgs(
destinationIpRanges = destinationIpRanges,
destinationPortRanges = destinationPortRanges,
dscpConfigurationName = dscpConfigurationName,
id = id,
location = location,
markings = markings,
protocol = protocol,
qosDefinitionCollection = qosDefinitionCollection,
resourceGroupName = resourceGroupName,
sourceIpRanges = sourceIpRanges,
sourcePortRanges = sourcePortRanges,
tags = tags,
)
}