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

com.pulumi.azure.notificationhub.kotlin.outputs.GetHubResult.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.notificationhub.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map

/**
 * A collection of values returned by getHub.
 * @property apnsCredentials A `apns_credential` block as defined below.
 * @property gcmCredentials A `gcm_credential` block as defined below.
 * @property id The provider-assigned unique ID for this managed resource.
 * @property location The Azure Region in which this Notification Hub exists.
 * @property name
 * @property namespaceName
 * @property resourceGroupName
 * @property tags A mapping of tags to assign to the resource.
 */
public data class GetHubResult(
    public val apnsCredentials: List,
    public val gcmCredentials: List,
    public val id: String,
    public val location: String,
    public val name: String,
    public val namespaceName: String,
    public val resourceGroupName: String,
    public val tags: Map,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.notificationhub.outputs.GetHubResult): GetHubResult = GetHubResult(
            apnsCredentials = javaType.apnsCredentials().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.notificationhub.kotlin.outputs.GetHubApnsCredential.Companion.toKotlin(args0)
                })
            }),
            gcmCredentials = javaType.gcmCredentials().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.notificationhub.kotlin.outputs.GetHubGcmCredential.Companion.toKotlin(args0)
                })
            }),
            id = javaType.id(),
            location = javaType.location(),
            name = javaType.name(),
            namespaceName = javaType.namespaceName(),
            resourceGroupName = javaType.resourceGroupName(),
            tags = javaType.tags().map({ args0 -> args0.key.to(args0.value) }).toMap(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy