com.pulumi.gcp.storage.kotlin.outputs.GetBucketObjectContentResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.storage.kotlin.outputs
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
/**
* A collection of values returned by getBucketObjectContent.
* @property bucket
* @property cacheControl
* @property content (Computed) [Content-Language](https://tools.ietf.org/html/rfc7231#section-3.1.3.2) of the object content.
* @property contentDisposition
* @property contentEncoding
* @property contentLanguage
* @property contentType
* @property crc32c
* @property customerEncryptions
* @property detectMd5hash
* @property eventBasedHold
* @property id The provider-assigned unique ID for this managed resource.
* @property kmsKeyName
* @property md5hash
* @property mediaLink
* @property metadata
* @property name
* @property outputName
* @property retentions
* @property selfLink
* @property source
* @property storageClass
* @property temporaryHold
*/
public data class GetBucketObjectContentResult(
public val bucket: String,
public val cacheControl: String,
public val content: String? = null,
public val contentDisposition: String,
public val contentEncoding: String,
public val contentLanguage: String,
public val contentType: String,
public val crc32c: String,
public val customerEncryptions: List,
public val detectMd5hash: String,
public val eventBasedHold: Boolean,
public val id: String,
public val kmsKeyName: String,
public val md5hash: String,
public val mediaLink: String,
public val metadata: Map,
public val name: String,
public val outputName: String,
public val retentions: List,
public val selfLink: String,
public val source: String,
public val storageClass: String,
public val temporaryHold: Boolean,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.storage.outputs.GetBucketObjectContentResult): GetBucketObjectContentResult = GetBucketObjectContentResult(
bucket = javaType.bucket(),
cacheControl = javaType.cacheControl(),
content = javaType.content().map({ args0 -> args0 }).orElse(null),
contentDisposition = javaType.contentDisposition(),
contentEncoding = javaType.contentEncoding(),
contentLanguage = javaType.contentLanguage(),
contentType = javaType.contentType(),
crc32c = javaType.crc32c(),
customerEncryptions = javaType.customerEncryptions().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.storage.kotlin.outputs.GetBucketObjectContentCustomerEncryption.Companion.toKotlin(args0)
})
}),
detectMd5hash = javaType.detectMd5hash(),
eventBasedHold = javaType.eventBasedHold(),
id = javaType.id(),
kmsKeyName = javaType.kmsKeyName(),
md5hash = javaType.md5hash(),
mediaLink = javaType.mediaLink(),
metadata = javaType.metadata().map({ args0 -> args0.key.to(args0.value) }).toMap(),
name = javaType.name(),
outputName = javaType.outputName(),
retentions = javaType.retentions().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.storage.kotlin.outputs.GetBucketObjectContentRetention.Companion.toKotlin(args0)
})
}),
selfLink = javaType.selfLink(),
source = javaType.source(),
storageClass = javaType.storageClass(),
temporaryHold = javaType.temporaryHold(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy