commonMain.aws.sdk.kotlin.services.appfabric.model.AppBundle.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appfabric-jvm Show documentation
Show all versions of appfabric-jvm Show documentation
The AWS SDK for Kotlin client for AppFabric
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.appfabric.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Contains information about an app bundle.
*/
public class AppBundle private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the app bundle.
*/
public val arn: kotlin.String = requireNotNull(builder.arn) { "A non-null value must be provided for arn" }
/**
* The Amazon Resource Name (ARN) of the Key Management Service (KMS) key used to encrypt the application data.
*/
public val customerManagedKeyArn: kotlin.String? = builder.customerManagedKeyArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appfabric.model.AppBundle = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AppBundle(")
append("arn=$arn,")
append("customerManagedKeyArn=$customerManagedKeyArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn.hashCode()
result = 31 * result + (customerManagedKeyArn?.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 AppBundle
if (arn != other.arn) return false
if (customerManagedKeyArn != other.customerManagedKeyArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appfabric.model.AppBundle = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the app bundle.
*/
public var arn: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) of the Key Management Service (KMS) key used to encrypt the application data.
*/
public var customerManagedKeyArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appfabric.model.AppBundle) : this() {
this.arn = x.arn
this.customerManagedKeyArn = x.customerManagedKeyArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appfabric.model.AppBundle = AppBundle(this)
internal fun correctErrors(): Builder {
if (arn == null) arn = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy