commonMain.aws.sdk.kotlin.services.emrserverless.model.ImageConfiguration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of emrserverless-jvm Show documentation
Show all versions of emrserverless-jvm Show documentation
The AWS SDK for Kotlin client for EMR Serverless
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.emrserverless.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The applied image configuration.
*/
public class ImageConfiguration private constructor(builder: Builder) {
/**
* The image URI.
*/
public val imageUri: kotlin.String = requireNotNull(builder.imageUri) { "A non-null value must be provided for imageUri" }
/**
* The SHA256 digest of the image URI. This indicates which specific image the application is configured for. The image digest doesn't exist until an application has started.
*/
public val resolvedImageDigest: kotlin.String? = builder.resolvedImageDigest
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.emrserverless.model.ImageConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ImageConfiguration(")
append("imageUri=$imageUri,")
append("resolvedImageDigest=$resolvedImageDigest")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = imageUri.hashCode()
result = 31 * result + (resolvedImageDigest?.hashCode() ?: 0)
return result
}
override fun equals(other: kotlin.Any?): kotlin.Boolean {
if (this === other) return true
if (other == null || this::class != other::class) return false
other as ImageConfiguration
if (imageUri != other.imageUri) return false
if (resolvedImageDigest != other.resolvedImageDigest) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.emrserverless.model.ImageConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The image URI.
*/
public var imageUri: kotlin.String? = null
/**
* The SHA256 digest of the image URI. This indicates which specific image the application is configured for. The image digest doesn't exist until an application has started.
*/
public var resolvedImageDigest: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.emrserverless.model.ImageConfiguration) : this() {
this.imageUri = x.imageUri
this.resolvedImageDigest = x.resolvedImageDigest
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.emrserverless.model.ImageConfiguration = ImageConfiguration(this)
internal fun correctErrors(): Builder {
if (imageUri == null) imageUri = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy