com.pulumi.azure.eventhub.kotlin.inputs.GetSasPlainArgs.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.eventhub.kotlin.inputs
import com.pulumi.azure.eventhub.inputs.GetSasPlainArgs.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 getSas.
* @property connectionString The connection string for the Event Hub to which this SAS applies.
* @property expiry The expiration time and date of this SAS. Must be a valid ISO-8601 format time/date string.
*/
public data class GetSasPlainArgs(
public val connectionString: String,
public val expiry: String,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.eventhub.inputs.GetSasPlainArgs =
com.pulumi.azure.eventhub.inputs.GetSasPlainArgs.builder()
.connectionString(connectionString.let({ args0 -> args0 }))
.expiry(expiry.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetSasPlainArgs].
*/
@PulumiTagMarker
public class GetSasPlainArgsBuilder internal constructor() {
private var connectionString: String? = null
private var expiry: String? = null
/**
* @param value The connection string for the Event Hub to which this SAS applies.
*/
@JvmName("ofeblawcmrniaafh")
public suspend fun connectionString(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.connectionString = mapped
}
/**
* @param value The expiration time and date of this SAS. Must be a valid ISO-8601 format time/date string.
*/
@JvmName("fgjkrmrqfgapbvvw")
public suspend fun expiry(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.expiry = mapped
}
internal fun build(): GetSasPlainArgs = GetSasPlainArgs(
connectionString = connectionString ?: throw PulumiNullFieldException("connectionString"),
expiry = expiry ?: throw PulumiNullFieldException("expiry"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy