com.pulumi.awsnative.panorama.kotlin.outputs.GetPackageResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.awsnative.panorama.kotlin.outputs
import com.pulumi.awsnative.kotlin.outputs.Tag
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property arn The package's ARN.
* @property createdTime When the package was created.
* @property packageId The package's ID.
* @property storageLocation A storage location.
* @property tags Tags for the package.
*/
public data class GetPackageResult(
public val arn: String? = null,
public val createdTime: Int? = null,
public val packageId: String? = null,
public val storageLocation: PackageStorageLocation? = null,
public val tags: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.panorama.outputs.GetPackageResult): GetPackageResult = GetPackageResult(
arn = javaType.arn().map({ args0 -> args0 }).orElse(null),
createdTime = javaType.createdTime().map({ args0 -> args0 }).orElse(null),
packageId = javaType.packageId().map({ args0 -> args0 }).orElse(null),
storageLocation = javaType.storageLocation().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.panorama.kotlin.outputs.PackageStorageLocation.Companion.toKotlin(args0)
})
}).orElse(null),
tags = javaType.tags().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin(args0)
})
}),
)
}
}