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

com.pulumi.cloudflare.kotlin.outputs.GetRulesetsResult.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.cloudflare.kotlin.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 * A collection of values returned by getRulesets.
 * @property accountId The account identifier to target for the resource. Must provide only one of `zone_id`, `account_id`.
 * @property filter
 * @property id The provider-assigned unique ID for this managed resource.
 * @property includeRules Include rule data in response.
 * @property rulesets
 * @property zoneId The zone identifier to target for the resource. Must provide only one of `zone_id`, `account_id`.
 */
public data class GetRulesetsResult(
    public val accountId: String? = null,
    public val filter: GetRulesetsFilter? = null,
    public val id: String,
    public val includeRules: Boolean? = null,
    public val rulesets: List,
    public val zoneId: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.cloudflare.outputs.GetRulesetsResult): GetRulesetsResult = GetRulesetsResult(
            accountId = javaType.accountId().map({ args0 -> args0 }).orElse(null),
            filter = javaType.filter().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.cloudflare.kotlin.outputs.GetRulesetsFilter.Companion.toKotlin(args0)
                })
            }).orElse(null),
            id = javaType.id(),
            includeRules = javaType.includeRules().map({ args0 -> args0 }).orElse(null),
            rulesets = javaType.rulesets().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.cloudflare.kotlin.outputs.GetRulesetsRuleset.Companion.toKotlin(args0)
                })
            }),
            zoneId = javaType.zoneId().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy