![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.apimanagement.kotlin.inputs.ServiceTenantAccessArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.apimanagement.kotlin.inputs
import com.pulumi.azure.apimanagement.inputs.ServiceTenantAccessArgs.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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property enabled Should the access to the management API be enabled?
* @property primaryKey Primary access key for the tenant access information contract.
* @property secondaryKey Secondary access key for the tenant access information contract.
* @property tenantId The identifier for the tenant access information contract.
*/
public data class ServiceTenantAccessArgs(
public val enabled: Output,
public val primaryKey: Output? = null,
public val secondaryKey: Output? = null,
public val tenantId: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.apimanagement.inputs.ServiceTenantAccessArgs =
com.pulumi.azure.apimanagement.inputs.ServiceTenantAccessArgs.builder()
.enabled(enabled.applyValue({ args0 -> args0 }))
.primaryKey(primaryKey?.applyValue({ args0 -> args0 }))
.secondaryKey(secondaryKey?.applyValue({ args0 -> args0 }))
.tenantId(tenantId?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ServiceTenantAccessArgs].
*/
@PulumiTagMarker
public class ServiceTenantAccessArgsBuilder internal constructor() {
private var enabled: Output? = null
private var primaryKey: Output? = null
private var secondaryKey: Output? = null
private var tenantId: Output? = null
/**
* @param value Should the access to the management API be enabled?
*/
@JvmName("ekkxmtwvgkorsfkk")
public suspend fun enabled(`value`: Output) {
this.enabled = value
}
/**
* @param value Primary access key for the tenant access information contract.
*/
@JvmName("reaylwrxyybyddgu")
public suspend fun primaryKey(`value`: Output) {
this.primaryKey = value
}
/**
* @param value Secondary access key for the tenant access information contract.
*/
@JvmName("ypuunfwljuvhnpfl")
public suspend fun secondaryKey(`value`: Output) {
this.secondaryKey = value
}
/**
* @param value The identifier for the tenant access information contract.
*/
@JvmName("yqyvsjkucphcofij")
public suspend fun tenantId(`value`: Output) {
this.tenantId = value
}
/**
* @param value Should the access to the management API be enabled?
*/
@JvmName("caxkorodyavpojii")
public suspend fun enabled(`value`: Boolean) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.enabled = mapped
}
/**
* @param value Primary access key for the tenant access information contract.
*/
@JvmName("qpgfxtefbawifjyg")
public suspend fun primaryKey(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.primaryKey = mapped
}
/**
* @param value Secondary access key for the tenant access information contract.
*/
@JvmName("lowwceljeskwmqhq")
public suspend fun secondaryKey(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.secondaryKey = mapped
}
/**
* @param value The identifier for the tenant access information contract.
*/
@JvmName("owfycumicintqqdr")
public suspend fun tenantId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tenantId = mapped
}
internal fun build(): ServiceTenantAccessArgs = ServiceTenantAccessArgs(
enabled = enabled ?: throw PulumiNullFieldException("enabled"),
primaryKey = primaryKey,
secondaryKey = secondaryKey,
tenantId = tenantId,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy