
com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelPackageFileSourceArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-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.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.sagemaker.kotlin.inputs
import com.pulumi.awsnative.sagemaker.inputs.ModelPackageFileSourceArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
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
/**
* Represents a File Source Object.
* @property contentDigest The digest of the file source.
* @property contentType The type of content stored in the file source.
* @property s3Uri The Amazon S3 URI for the file source.
*/
public data class ModelPackageFileSourceArgs(
public val contentDigest: Output? = null,
public val contentType: Output? = null,
public val s3Uri: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.sagemaker.inputs.ModelPackageFileSourceArgs =
com.pulumi.awsnative.sagemaker.inputs.ModelPackageFileSourceArgs.builder()
.contentDigest(contentDigest?.applyValue({ args0 -> args0 }))
.contentType(contentType?.applyValue({ args0 -> args0 }))
.s3Uri(s3Uri.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ModelPackageFileSourceArgs].
*/
@PulumiTagMarker
public class ModelPackageFileSourceArgsBuilder internal constructor() {
private var contentDigest: Output? = null
private var contentType: Output? = null
private var s3Uri: Output? = null
/**
* @param value The digest of the file source.
*/
@JvmName("ghjlnscaxedpisjc")
public suspend fun contentDigest(`value`: Output) {
this.contentDigest = value
}
/**
* @param value The type of content stored in the file source.
*/
@JvmName("jeihqkrcmmgjyrlt")
public suspend fun contentType(`value`: Output) {
this.contentType = value
}
/**
* @param value The Amazon S3 URI for the file source.
*/
@JvmName("kenhfnfsrjulhmxt")
public suspend fun s3Uri(`value`: Output) {
this.s3Uri = value
}
/**
* @param value The digest of the file source.
*/
@JvmName("hviokkpeawaanjbr")
public suspend fun contentDigest(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.contentDigest = mapped
}
/**
* @param value The type of content stored in the file source.
*/
@JvmName("suvypeiulgkaqels")
public suspend fun contentType(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.contentType = mapped
}
/**
* @param value The Amazon S3 URI for the file source.
*/
@JvmName("fjyeqowubymbucvc")
public suspend fun s3Uri(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.s3Uri = mapped
}
internal fun build(): ModelPackageFileSourceArgs = ModelPackageFileSourceArgs(
contentDigest = contentDigest,
contentType = contentType,
s3Uri = s3Uri ?: throw PulumiNullFieldException("s3Uri"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy