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

com.pulumi.aws.s3.kotlin.outputs.GetObjectsResult.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.s3.kotlin.outputs

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

/**
 * A collection of values returned by getObjects.
 * @property bucket
 * @property commonPrefixes List of any keys between `prefix` and the next occurrence of `delimiter` (i.e., similar to subdirectories of the `prefix` "directory"); the list is only returned when you specify `delimiter`
 * @property delimiter
 * @property encodingType
 * @property fetchOwner
 * @property id The provider-assigned unique ID for this managed resource.
 * @property keys List of strings representing object keys
 * @property maxKeys
 * @property owners List of strings representing object owner IDs (see `fetch_owner` above)
 * @property prefix
 * @property requestCharged If present, indicates that the requester was successfully charged for the request.
 * @property requestPayer
 * @property startAfter
 */
public data class GetObjectsResult(
    public val bucket: String,
    public val commonPrefixes: List,
    public val delimiter: String? = null,
    public val encodingType: String? = null,
    public val fetchOwner: Boolean? = null,
    public val id: String,
    public val keys: List,
    public val maxKeys: Int? = null,
    public val owners: List,
    public val prefix: String? = null,
    public val requestCharged: String,
    public val requestPayer: String? = null,
    public val startAfter: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.aws.s3.outputs.GetObjectsResult): GetObjectsResult =
            GetObjectsResult(
                bucket = javaType.bucket(),
                commonPrefixes = javaType.commonPrefixes().map({ args0 -> args0 }),
                delimiter = javaType.delimiter().map({ args0 -> args0 }).orElse(null),
                encodingType = javaType.encodingType().map({ args0 -> args0 }).orElse(null),
                fetchOwner = javaType.fetchOwner().map({ args0 -> args0 }).orElse(null),
                id = javaType.id(),
                keys = javaType.keys().map({ args0 -> args0 }),
                maxKeys = javaType.maxKeys().map({ args0 -> args0 }).orElse(null),
                owners = javaType.owners().map({ args0 -> args0 }),
                prefix = javaType.prefix().map({ args0 -> args0 }).orElse(null),
                requestCharged = javaType.requestCharged(),
                requestPayer = javaType.requestPayer().map({ args0 -> args0 }).orElse(null),
                startAfter = javaType.startAfter().map({ args0 -> args0 }).orElse(null),
            )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy