
com.pulumi.azurenative.securityinsights.kotlin.inputs.FileMetadataArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.securityinsights.kotlin.inputs
import com.pulumi.azurenative.securityinsights.inputs.FileMetadataArgs.builder
import com.pulumi.azurenative.securityinsights.kotlin.enums.FileFormat
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Represents a file.
* @property fileFormat The format of the file
* @property fileName The name of the file.
* @property fileSize The size of the file.
*/
public data class FileMetadataArgs(
public val fileFormat: Output>? = null,
public val fileName: Output? = null,
public val fileSize: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.securityinsights.inputs.FileMetadataArgs =
com.pulumi.azurenative.securityinsights.inputs.FileMetadataArgs.builder()
.fileFormat(
fileFormat?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.fileName(fileName?.applyValue({ args0 -> args0 }))
.fileSize(fileSize?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [FileMetadataArgs].
*/
@PulumiTagMarker
public class FileMetadataArgsBuilder internal constructor() {
private var fileFormat: Output>? = null
private var fileName: Output? = null
private var fileSize: Output? = null
/**
* @param value The format of the file
*/
@JvmName("bshgglcpmguvpxfi")
public suspend fun fileFormat(`value`: Output>) {
this.fileFormat = value
}
/**
* @param value The name of the file.
*/
@JvmName("hvobxqqlmviqshkm")
public suspend fun fileName(`value`: Output) {
this.fileName = value
}
/**
* @param value The size of the file.
*/
@JvmName("igscfosuxjfjeiik")
public suspend fun fileSize(`value`: Output) {
this.fileSize = value
}
/**
* @param value The format of the file
*/
@JvmName("dchjnlaaoubdojds")
public suspend fun fileFormat(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.fileFormat = mapped
}
/**
* @param value The format of the file
*/
@JvmName("evipkkjcjauivjby")
public fun fileFormat(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.fileFormat = mapped
}
/**
* @param value The format of the file
*/
@JvmName("vxxrbvjaabvxarck")
public fun fileFormat(`value`: FileFormat) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.fileFormat = mapped
}
/**
* @param value The name of the file.
*/
@JvmName("pvbkptwnbglktfen")
public suspend fun fileName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.fileName = mapped
}
/**
* @param value The size of the file.
*/
@JvmName("jxwpgselycrbkdol")
public suspend fun fileSize(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.fileSize = mapped
}
internal fun build(): FileMetadataArgs = FileMetadataArgs(
fileFormat = fileFormat,
fileName = fileName,
fileSize = fileSize,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy