
com.pulumi.googlenative.documentai.v1beta3.kotlin.ProcessorArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-google-native-kotlin Show documentation
Show all versions of pulumi-google-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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.documentai.v1beta3.kotlin
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.documentai.v1beta3.ProcessorArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Creates a processor from the ProcessorType provided. The processor will be at `ENABLED` state by default after its creation.
* Auto-naming is currently not supported for this resource.
* @property createTime The time the processor was created.
* @property defaultProcessorVersion The default processor version.
* @property displayName The display name of the processor.
* @property kmsKeyName The KMS key used for encryption/decryption in CMEK scenarios. See https://cloud.google.com/security-key-management.
* @property location
* @property project
* @property type The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`. To get a list of processor types, see FetchProcessorTypes.
*/
public data class ProcessorArgs(
public val createTime: Output? = null,
public val defaultProcessorVersion: Output? = null,
public val displayName: Output? = null,
public val kmsKeyName: Output? = null,
public val location: Output? = null,
public val project: Output? = null,
public val type: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.googlenative.documentai.v1beta3.ProcessorArgs =
com.pulumi.googlenative.documentai.v1beta3.ProcessorArgs.builder()
.createTime(createTime?.applyValue({ args0 -> args0 }))
.defaultProcessorVersion(defaultProcessorVersion?.applyValue({ args0 -> args0 }))
.displayName(displayName?.applyValue({ args0 -> args0 }))
.kmsKeyName(kmsKeyName?.applyValue({ args0 -> args0 }))
.location(location?.applyValue({ args0 -> args0 }))
.project(project?.applyValue({ args0 -> args0 }))
.type(type?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ProcessorArgs].
*/
@PulumiTagMarker
public class ProcessorArgsBuilder internal constructor() {
private var createTime: Output? = null
private var defaultProcessorVersion: Output? = null
private var displayName: Output? = null
private var kmsKeyName: Output? = null
private var location: Output? = null
private var project: Output? = null
private var type: Output? = null
/**
* @param value The time the processor was created.
*/
@JvmName("iljcqjngfxycrghs")
public suspend fun createTime(`value`: Output) {
this.createTime = value
}
/**
* @param value The default processor version.
*/
@JvmName("onlpvocoyfuocqbo")
public suspend fun defaultProcessorVersion(`value`: Output) {
this.defaultProcessorVersion = value
}
/**
* @param value The display name of the processor.
*/
@JvmName("keaeiofevcnabcbb")
public suspend fun displayName(`value`: Output) {
this.displayName = value
}
/**
* @param value The KMS key used for encryption/decryption in CMEK scenarios. See https://cloud.google.com/security-key-management.
*/
@JvmName("ckoxxhbpnnjciwut")
public suspend fun kmsKeyName(`value`: Output) {
this.kmsKeyName = value
}
/**
* @param value
*/
@JvmName("ovyqknpoyigjmgfl")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value
*/
@JvmName("bofeipnntyewpwrt")
public suspend fun project(`value`: Output) {
this.project = value
}
/**
* @param value The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`. To get a list of processor types, see FetchProcessorTypes.
*/
@JvmName("murogrgtuvxodled")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value The time the processor was created.
*/
@JvmName("vxyewluxkibmmdwl")
public suspend fun createTime(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.createTime = mapped
}
/**
* @param value The default processor version.
*/
@JvmName("lwxtdiufdlwqbkfg")
public suspend fun defaultProcessorVersion(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.defaultProcessorVersion = mapped
}
/**
* @param value The display name of the processor.
*/
@JvmName("agoacavkruuahwfj")
public suspend fun displayName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.displayName = mapped
}
/**
* @param value The KMS key used for encryption/decryption in CMEK scenarios. See https://cloud.google.com/security-key-management.
*/
@JvmName("ggwwbayikyvpmjiu")
public suspend fun kmsKeyName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.kmsKeyName = mapped
}
/**
* @param value
*/
@JvmName("ajqhodhbdmbiigai")
public suspend fun location(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.location = mapped
}
/**
* @param value
*/
@JvmName("vcnvdskjvoubpbpe")
public suspend fun project(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.project = mapped
}
/**
* @param value The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`. To get a list of processor types, see FetchProcessorTypes.
*/
@JvmName("cmipgdhlhmduqmfx")
public suspend fun type(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.type = mapped
}
internal fun build(): ProcessorArgs = ProcessorArgs(
createTime = createTime,
defaultProcessorVersion = defaultProcessorVersion,
displayName = displayName,
kmsKeyName = kmsKeyName,
location = location,
project = project,
type = type,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy