All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.eventhub.kotlin.inputs.GetSasPlainArgs.kt Maven / Gradle / Ivy

@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("yyreoqwnpngkajsa")
    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("pdgkkdinthxsorkm")
    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 - 2024 Weber Informatics LLC | Privacy Policy