com.pulumi.azurenative.apicenter.kotlin.inputs.LicenseArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.apicenter.kotlin.inputs
import com.pulumi.azurenative.apicenter.inputs.LicenseArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* The license information for the API.
* @property identifier SPDX license information for the API. The identifier field is mutually
* exclusive of the URL field.
* @property name Name of the license.
* @property url URL pointing to the license details. The URL field is mutually exclusive of the
* identifier field.
*/
public data class LicenseArgs(
public val identifier: Output? = null,
public val name: Output? = null,
public val url: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.apicenter.inputs.LicenseArgs =
com.pulumi.azurenative.apicenter.inputs.LicenseArgs.builder()
.identifier(identifier?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.url(url?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [LicenseArgs].
*/
@PulumiTagMarker
public class LicenseArgsBuilder internal constructor() {
private var identifier: Output? = null
private var name: Output? = null
private var url: Output? = null
/**
* @param value SPDX license information for the API. The identifier field is mutually
* exclusive of the URL field.
*/
@JvmName("yppcuwtqvcscayee")
public suspend fun identifier(`value`: Output) {
this.identifier = value
}
/**
* @param value Name of the license.
*/
@JvmName("qijxgrbugvpxwqtw")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value URL pointing to the license details. The URL field is mutually exclusive of the
* identifier field.
*/
@JvmName("ggkywsdodwjxbgrw")
public suspend fun url(`value`: Output) {
this.url = value
}
/**
* @param value SPDX license information for the API. The identifier field is mutually
* exclusive of the URL field.
*/
@JvmName("lmysaysgvhvoxook")
public suspend fun identifier(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.identifier = mapped
}
/**
* @param value Name of the license.
*/
@JvmName("etmyuuphhrrppcrd")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value URL pointing to the license details. The URL field is mutually exclusive of the
* identifier field.
*/
@JvmName("sxrqbpotahivkidq")
public suspend fun url(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.url = mapped
}
internal fun build(): LicenseArgs = LicenseArgs(
identifier = identifier,
name = name,
url = url,
)
}