com.pulumi.cloudflare.kotlin.outputs.GetZoneResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-cloudflare-kotlin Show documentation
Show all versions of pulumi-cloudflare-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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(),
)
}
}