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

com.pulumi.cloudflare.kotlin.outputs.GetZoneResult.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.

There is a newer version: 5.40.0.0
Show 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 getZone.
 * @property accountId The account identifier to target for the resource.
 * @property id The provider-assigned unique ID for this managed resource.
 * @property name The name of the zone. Must provide only one of `zone_id`, `name`.
 * @property nameServers Cloudflare assigned name servers. This is only populated for zones that use Cloudflare DNS.
 * @property paused Whether the zone is paused on Cloudflare.
 * @property plan The name of the plan associated with the zone.
 * @property status Status of the zone.
 * @property vanityNameServers List of Vanity Nameservers (if set).
 * @property zoneId The zone identifier to target for the resource. Must provide only one of `zone_id`, `name`.
 */
public data class GetZoneResult(
    public val accountId: String,
    public val id: String,
    public val name: String,
    public val nameServers: List,
    public val paused: Boolean,
    public val plan: String,
    public val status: String,
    public val vanityNameServers: List,
    public val zoneId: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.cloudflare.outputs.GetZoneResult): GetZoneResult =
            GetZoneResult(
                accountId = javaType.accountId(),
                id = javaType.id(),
                name = javaType.name(),
                nameServers = javaType.nameServers().map({ args0 -> args0 }),
                paused = javaType.paused(),
                plan = javaType.plan(),
                status = javaType.status(),
                vanityNameServers = javaType.vanityNameServers().map({ args0 -> args0 }),
                zoneId = javaType.zoneId(),
            )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy