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

com.pulumi.azure.storage.kotlin.outputs.AccountShareProperties.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.storage.kotlin.outputs

import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property corsRules A `cors_rule` block as defined below.
 * @property retentionPolicy A `retention_policy` block as defined below.
 * @property smb A `smb` block as defined below.
 */
public data class AccountShareProperties(
    public val corsRules: List? = null,
    public val retentionPolicy: AccountSharePropertiesRetentionPolicy? = null,
    public val smb: AccountSharePropertiesSmb? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.storage.outputs.AccountShareProperties): AccountShareProperties = AccountShareProperties(
            corsRules = javaType.corsRules().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.storage.kotlin.outputs.AccountSharePropertiesCorsRule.Companion.toKotlin(args0)
                })
            }),
            retentionPolicy = javaType.retentionPolicy().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.storage.kotlin.outputs.AccountSharePropertiesRetentionPolicy.Companion.toKotlin(args0)
                })
            }).orElse(null),
            smb = javaType.smb().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.storage.kotlin.outputs.AccountSharePropertiesSmb.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy