com.pulumi.gcp.storage.kotlin.inputs.GetBucketObjectsPlainArgs.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.inputs
import com.pulumi.gcp.storage.inputs.GetBucketObjectsPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* A collection of arguments for invoking getBucketObjects.
* @property bucket The name of the containing bucket.
* @property matchGlob A glob pattern used to filter results (for example, `foo*bar`).
* @property prefix Filter results to include only objects whose names begin with this prefix.
*/
public data class GetBucketObjectsPlainArgs(
public val bucket: String,
public val matchGlob: String? = null,
public val prefix: String? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.storage.inputs.GetBucketObjectsPlainArgs =
com.pulumi.gcp.storage.inputs.GetBucketObjectsPlainArgs.builder()
.bucket(bucket.let({ args0 -> args0 }))
.matchGlob(matchGlob?.let({ args0 -> args0 }))
.prefix(prefix?.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetBucketObjectsPlainArgs].
*/
@PulumiTagMarker
public class GetBucketObjectsPlainArgsBuilder internal constructor() {
private var bucket: String? = null
private var matchGlob: String? = null
private var prefix: String? = null
/**
* @param value The name of the containing bucket.
*/
@JvmName("eujxwowmykwiyuxd")
public suspend fun bucket(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.bucket = mapped
}
/**
* @param value A glob pattern used to filter results (for example, `foo*bar`).
*/
@JvmName("vmqycmsceaarpoyt")
public suspend fun matchGlob(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.matchGlob = mapped
}
/**
* @param value Filter results to include only objects whose names begin with this prefix.
*/
@JvmName("owkgpjpfjxkvtiat")
public suspend fun prefix(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.prefix = mapped
}
internal fun build(): GetBucketObjectsPlainArgs = GetBucketObjectsPlainArgs(
bucket = bucket ?: throw PulumiNullFieldException("bucket"),
matchGlob = matchGlob,
prefix = prefix,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy