com.pulumi.azure.mobile.kotlin.inputs.GetNetworkSlicePlainArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.mobile.kotlin.inputs
import com.pulumi.azure.mobile.inputs.GetNetworkSlicePlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* A collection of arguments for invoking getNetworkSlice.
* @property mobileNetworkId The ID of Mobile Network which the Mobile Network Slice belongs to.
* @property name Specifies the name which should be used for this Mobile Network Slice.
*/
public data class GetNetworkSlicePlainArgs(
public val mobileNetworkId: String,
public val name: String,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.mobile.inputs.GetNetworkSlicePlainArgs =
com.pulumi.azure.mobile.inputs.GetNetworkSlicePlainArgs.builder()
.mobileNetworkId(mobileNetworkId.let({ args0 -> args0 }))
.name(name.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetNetworkSlicePlainArgs].
*/
@PulumiTagMarker
public class GetNetworkSlicePlainArgsBuilder internal constructor() {
private var mobileNetworkId: String? = null
private var name: String? = null
/**
* @param value The ID of Mobile Network which the Mobile Network Slice belongs to.
*/
@JvmName("kyruhbrpoetoonir")
public suspend fun mobileNetworkId(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.mobileNetworkId = mapped
}
/**
* @param value Specifies the name which should be used for this Mobile Network Slice.
*/
@JvmName("bylfyccvbvupnmwn")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.name = mapped
}
internal fun build(): GetNetworkSlicePlainArgs = GetNetworkSlicePlainArgs(
mobileNetworkId = mobileNetworkId ?: throw PulumiNullFieldException("mobileNetworkId"),
name = name ?: throw PulumiNullFieldException("name"),
)
}