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

com.pulumi.azurenative.providerhub.kotlin.inputs.ProviderRegistrationPropertiesArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.providerhub.kotlin.inputs

import com.pulumi.azurenative.providerhub.inputs.ProviderRegistrationPropertiesArgs.builder
import com.pulumi.azurenative.providerhub.kotlin.enums.ProvisioningState
import com.pulumi.azurenative.providerhub.kotlin.enums.ResourceProviderType
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Any
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property capabilities
 * @property featuresRule
 * @property management
 * @property metadata
 * @property namespace
 * @property providerAuthentication
 * @property providerAuthorizations
 * @property providerHubMetadata
 * @property providerType
 * @property providerVersion
 * @property provisioningState The provisioned state of the resource.
 * @property requestHeaderOptions
 * @property requiredFeatures
 * @property subscriptionLifecycleNotificationSpecifications
 * @property templateDeploymentOptions
 */
public data class ProviderRegistrationPropertiesArgs(
    public val capabilities: Output>? = null,
    public val featuresRule: Output? = null,
    public val management: Output? = null,
    public val metadata: Output? = null,
    public val namespace: Output? = null,
    public val providerAuthentication: Output? = null,
    public val providerAuthorizations: Output>? = null,
    public val providerHubMetadata: Output? =
        null,
    public val providerType: Output>? = null,
    public val providerVersion: Output? = null,
    public val provisioningState: Output>? = null,
    public val requestHeaderOptions: Output? = null,
    public val requiredFeatures: Output>? = null,
    public val subscriptionLifecycleNotificationSpecifications: Output? =
        null,
    public val templateDeploymentOptions: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.providerhub.inputs.ProviderRegistrationPropertiesArgs =
        com.pulumi.azurenative.providerhub.inputs.ProviderRegistrationPropertiesArgs.builder()
            .capabilities(
                capabilities?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .featuresRule(featuresRule?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .management(management?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .metadata(metadata?.applyValue({ args0 -> args0 }))
            .namespace(namespace?.applyValue({ args0 -> args0 }))
            .providerAuthentication(
                providerAuthentication?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .providerAuthorizations(
                providerAuthorizations?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .providerHubMetadata(
                providerHubMetadata?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .providerType(
                providerType?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .providerVersion(providerVersion?.applyValue({ args0 -> args0 }))
            .provisioningState(
                provisioningState?.applyValue({ args0 ->
                    args0.transform(
                        { args0 -> args0 },
                        { args0 -> args0.let({ args0 -> args0.toJava() }) },
                    )
                }),
            )
            .requestHeaderOptions(
                requestHeaderOptions?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .requiredFeatures(requiredFeatures?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .subscriptionLifecycleNotificationSpecifications(
                subscriptionLifecycleNotificationSpecifications?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            )
            .templateDeploymentOptions(
                templateDeploymentOptions?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [ProviderRegistrationPropertiesArgs].
 */
@PulumiTagMarker
public class ProviderRegistrationPropertiesArgsBuilder internal constructor() {
    private var capabilities: Output>? = null

    private var featuresRule: Output? = null

    private var management: Output? = null

    private var metadata: Output? = null

    private var namespace: Output? = null

    private var providerAuthentication:
        Output? = null

    private var providerAuthorizations: Output>? = null

    private var providerHubMetadata: Output? =
        null

    private var providerType: Output>? = null

    private var providerVersion: Output? = null

    private var provisioningState: Output>? = null

    private var requestHeaderOptions:
        Output? = null

    private var requiredFeatures: Output>? = null

    private var subscriptionLifecycleNotificationSpecifications:
        Output? =
        null

    private var templateDeploymentOptions:
        Output? = null

    /**
     * @param value
     */
    @JvmName("bvobwjqxvbftotdb")
    public suspend fun capabilities(`value`: Output>) {
        this.capabilities = value
    }

    @JvmName("sbnmxykoqkjygooh")
    public suspend fun capabilities(vararg values: Output) {
        this.capabilities = Output.all(values.asList())
    }

    /**
     * @param values
     */
    @JvmName("aobabpdsrrtaepuj")
    public suspend fun capabilities(values: List>) {
        this.capabilities = Output.all(values)
    }

    /**
     * @param value
     */
    @JvmName("nattirewijjmrhjf")
    public suspend fun featuresRule(`value`: Output) {
        this.featuresRule = value
    }

    /**
     * @param value
     */
    @JvmName("yokvawtpfwwryyxu")
    public suspend fun management(`value`: Output) {
        this.management = value
    }

    /**
     * @param value
     */
    @JvmName("rnmjrygifpnyueex")
    public suspend fun metadata(`value`: Output) {
        this.metadata = value
    }

    /**
     * @param value
     */
    @JvmName("jifqrechmuqnegmr")
    public suspend fun namespace(`value`: Output) {
        this.namespace = value
    }

    /**
     * @param value
     */
    @JvmName("mdblqekoedobgcim")
    public suspend fun providerAuthentication(`value`: Output) {
        this.providerAuthentication = value
    }

    /**
     * @param value
     */
    @JvmName("rlaxdpcabonseslh")
    public suspend fun providerAuthorizations(`value`: Output>) {
        this.providerAuthorizations = value
    }

    @JvmName("fnjvypibtrkxjthx")
    public suspend fun providerAuthorizations(vararg values: Output) {
        this.providerAuthorizations = Output.all(values.asList())
    }

    /**
     * @param values
     */
    @JvmName("bvcrufvgkqrdpnym")
    public suspend fun providerAuthorizations(values: List>) {
        this.providerAuthorizations = Output.all(values)
    }

    /**
     * @param value
     */
    @JvmName("rhhlapedxmqofylh")
    public suspend fun providerHubMetadata(`value`: Output) {
        this.providerHubMetadata = value
    }

    /**
     * @param value
     */
    @JvmName("pmbadeubttehbton")
    public suspend fun providerType(`value`: Output>) {
        this.providerType = value
    }

    /**
     * @param value
     */
    @JvmName("aqddudoqjoswynlc")
    public suspend fun providerVersion(`value`: Output) {
        this.providerVersion = value
    }

    /**
     * @param value The provisioned state of the resource.
     */
    @JvmName("qqjvuhdqoxajhdwr")
    public suspend fun provisioningState(`value`: Output>) {
        this.provisioningState = value
    }

    /**
     * @param value
     */
    @JvmName("ectpptmsewelbunk")
    public suspend fun requestHeaderOptions(`value`: Output) {
        this.requestHeaderOptions = value
    }

    /**
     * @param value
     */
    @JvmName("typvxporanpyjsrg")
    public suspend fun requiredFeatures(`value`: Output>) {
        this.requiredFeatures = value
    }

    @JvmName("ukkkvvgfcfcmceox")
    public suspend fun requiredFeatures(vararg values: Output) {
        this.requiredFeatures = Output.all(values.asList())
    }

    /**
     * @param values
     */
    @JvmName("fkjgtbgplcidcbjl")
    public suspend fun requiredFeatures(values: List>) {
        this.requiredFeatures = Output.all(values)
    }

    /**
     * @param value
     */
    @JvmName("ykcwoihjtkhdrthv")
    public suspend fun subscriptionLifecycleNotificationSpecifications(`value`: Output) {
        this.subscriptionLifecycleNotificationSpecifications = value
    }

    /**
     * @param value
     */
    @JvmName("bolaogqjtmbysouq")
    public suspend fun templateDeploymentOptions(`value`: Output) {
        this.templateDeploymentOptions = value
    }

    /**
     * @param value
     */
    @JvmName("xcjttiamnnenpbxm")
    public suspend fun capabilities(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.capabilities = mapped
    }

    /**
     * @param argument
     */
    @JvmName("aaovrphhwngatraw")
    public suspend fun capabilities(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ResourceProviderCapabilitiesArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.capabilities = mapped
    }

    /**
     * @param argument
     */
    @JvmName("nnphfpmswgthgcsh")
    public suspend fun capabilities(vararg argument: suspend ResourceProviderCapabilitiesArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ResourceProviderCapabilitiesArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.capabilities = mapped
    }

    /**
     * @param argument
     */
    @JvmName("ntvoknekwxdodmiq")
    public suspend fun capabilities(argument: suspend ResourceProviderCapabilitiesArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ResourceProviderCapabilitiesArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.capabilities = mapped
    }

    /**
     * @param values
     */
    @JvmName("vtpvnfsxpafpkvnm")
    public suspend fun capabilities(vararg values: ResourceProviderCapabilitiesArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.capabilities = mapped
    }

    /**
     * @param value
     */
    @JvmName("skcfkdaeadcpdnqh")
    public suspend fun featuresRule(`value`: ResourceProviderManifestPropertiesFeaturesRuleArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.featuresRule = mapped
    }

    /**
     * @param argument
     */
    @JvmName("grfywydekdrxkrld")
    public suspend fun featuresRule(argument: suspend ResourceProviderManifestPropertiesFeaturesRuleArgsBuilder.() -> Unit) {
        val toBeMapped = ResourceProviderManifestPropertiesFeaturesRuleArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.featuresRule = mapped
    }

    /**
     * @param value
     */
    @JvmName("kmosddmjjtitkopm")
    public suspend fun management(`value`: ResourceProviderManifestPropertiesManagementArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.management = mapped
    }

    /**
     * @param argument
     */
    @JvmName("svaqhkromyneshcl")
    public suspend fun management(argument: suspend ResourceProviderManifestPropertiesManagementArgsBuilder.() -> Unit) {
        val toBeMapped = ResourceProviderManifestPropertiesManagementArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.management = mapped
    }

    /**
     * @param value
     */
    @JvmName("mhmnnpeavudwuemu")
    public suspend fun metadata(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.metadata = mapped
    }

    /**
     * @param value
     */
    @JvmName("onxxnqnbedcwhxyr")
    public suspend fun namespace(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.namespace = mapped
    }

    /**
     * @param value
     */
    @JvmName("xbdujybcnhljdabp")
    public suspend fun providerAuthentication(`value`: ResourceProviderManifestPropertiesProviderAuthenticationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.providerAuthentication = mapped
    }

    /**
     * @param argument
     */
    @JvmName("klxontfrvebtevoj")
    public suspend fun providerAuthentication(argument: suspend ResourceProviderManifestPropertiesProviderAuthenticationArgsBuilder.() -> Unit) {
        val toBeMapped =
            ResourceProviderManifestPropertiesProviderAuthenticationArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.providerAuthentication = mapped
    }

    /**
     * @param value
     */
    @JvmName("wsiqcdpqllcdjkkh")
    public suspend fun providerAuthorizations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.providerAuthorizations = mapped
    }

    /**
     * @param argument
     */
    @JvmName("tciyrlxjepuwfirf")
    public suspend fun providerAuthorizations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ResourceProviderAuthorizationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.providerAuthorizations = mapped
    }

    /**
     * @param argument
     */
    @JvmName("ketnvhkmdekkrtpp")
    public suspend fun providerAuthorizations(vararg argument: suspend ResourceProviderAuthorizationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ResourceProviderAuthorizationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.providerAuthorizations = mapped
    }

    /**
     * @param argument
     */
    @JvmName("ynhvtnqxgywfbheo")
    public suspend fun providerAuthorizations(argument: suspend ResourceProviderAuthorizationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ResourceProviderAuthorizationArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.providerAuthorizations = mapped
    }

    /**
     * @param values
     */
    @JvmName("aonoidlaknedmppw")
    public suspend fun providerAuthorizations(vararg values: ResourceProviderAuthorizationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.providerAuthorizations = mapped
    }

    /**
     * @param value
     */
    @JvmName("mhdnyfyjofpfmevq")
    public suspend fun providerHubMetadata(`value`: ProviderRegistrationPropertiesProviderHubMetadataArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.providerHubMetadata = mapped
    }

    /**
     * @param argument
     */
    @JvmName("ccqtwsfbpdxhlnac")
    public suspend fun providerHubMetadata(argument: suspend ProviderRegistrationPropertiesProviderHubMetadataArgsBuilder.() -> Unit) {
        val toBeMapped = ProviderRegistrationPropertiesProviderHubMetadataArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.providerHubMetadata = mapped
    }

    /**
     * @param value
     */
    @JvmName("iograilnbwekdvki")
    public suspend fun providerType(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.providerType = mapped
    }

    /**
     * @param value
     */
    @JvmName("alhwpxloueowlprv")
    public fun providerType(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.providerType = mapped
    }

    /**
     * @param value
     */
    @JvmName("ttumskboufncdhwb")
    public fun providerType(`value`: ResourceProviderType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.providerType = mapped
    }

    /**
     * @param value
     */
    @JvmName("orwrlsolkdvgenkd")
    public suspend fun providerVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.providerVersion = mapped
    }

    /**
     * @param value The provisioned state of the resource.
     */
    @JvmName("yupupceloskentod")
    public suspend fun provisioningState(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.provisioningState = mapped
    }

    /**
     * @param value The provisioned state of the resource.
     */
    @JvmName("fswomvbytbenfriq")
    public fun provisioningState(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.provisioningState = mapped
    }

    /**
     * @param value The provisioned state of the resource.
     */
    @JvmName("gjsdycjuaaitmfhf")
    public fun provisioningState(`value`: ProvisioningState) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.provisioningState = mapped
    }

    /**
     * @param value
     */
    @JvmName("yhpxceoxpdrbwkml")
    public suspend fun requestHeaderOptions(`value`: ResourceProviderManifestPropertiesRequestHeaderOptionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.requestHeaderOptions = mapped
    }

    /**
     * @param argument
     */
    @JvmName("bfkfcabyiudgrwhs")
    public suspend fun requestHeaderOptions(argument: suspend ResourceProviderManifestPropertiesRequestHeaderOptionsArgsBuilder.() -> Unit) {
        val toBeMapped =
            ResourceProviderManifestPropertiesRequestHeaderOptionsArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.requestHeaderOptions = mapped
    }

    /**
     * @param value
     */
    @JvmName("ixbcqyjibnqujjxf")
    public suspend fun requiredFeatures(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.requiredFeatures = mapped
    }

    /**
     * @param values
     */
    @JvmName("xdfbskkclneyyhat")
    public suspend fun requiredFeatures(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.requiredFeatures = mapped
    }

    /**
     * @param value
     */
    @JvmName("qnvfvclvdnyelxqu")
    public suspend fun subscriptionLifecycleNotificationSpecifications(`value`: ProviderRegistrationPropertiesSubscriptionLifecycleNotificationSpecificationsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subscriptionLifecycleNotificationSpecifications = mapped
    }

    /**
     * @param argument
     */
    @JvmName("ribsvsnvalcbiqqj")
    public suspend fun subscriptionLifecycleNotificationSpecifications(argument: suspend ProviderRegistrationPropertiesSubscriptionLifecycleNotificationSpecificationsArgsBuilder.() -> Unit) {
        val toBeMapped =
            ProviderRegistrationPropertiesSubscriptionLifecycleNotificationSpecificationsArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.subscriptionLifecycleNotificationSpecifications = mapped
    }

    /**
     * @param value
     */
    @JvmName("uuciiayqqlaefhqx")
    public suspend fun templateDeploymentOptions(`value`: ResourceProviderManifestPropertiesTemplateDeploymentOptionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.templateDeploymentOptions = mapped
    }

    /**
     * @param argument
     */
    @JvmName("mxblnwybndonupgy")
    public suspend fun templateDeploymentOptions(argument: suspend ResourceProviderManifestPropertiesTemplateDeploymentOptionsArgsBuilder.() -> Unit) {
        val toBeMapped =
            ResourceProviderManifestPropertiesTemplateDeploymentOptionsArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.templateDeploymentOptions = mapped
    }

    internal fun build(): ProviderRegistrationPropertiesArgs = ProviderRegistrationPropertiesArgs(
        capabilities = capabilities,
        featuresRule = featuresRule,
        management = management,
        metadata = metadata,
        namespace = namespace,
        providerAuthentication = providerAuthentication,
        providerAuthorizations = providerAuthorizations,
        providerHubMetadata = providerHubMetadata,
        providerType = providerType,
        providerVersion = providerVersion,
        provisioningState = provisioningState,
        requestHeaderOptions = requestHeaderOptions,
        requiredFeatures = requiredFeatures,
        subscriptionLifecycleNotificationSpecifications = subscriptionLifecycleNotificationSpecifications,
        templateDeploymentOptions = templateDeploymentOptions,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy