commonMain.aws.sdk.kotlin.services.dataexchange.model.S3SnapshotAsset.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dataexchange-jvm Show documentation
Show all versions of dataexchange-jvm Show documentation
The AWS Kotlin client for DataExchange
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.dataexchange.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The Amazon S3 object that is the asset.
*/
public class S3SnapshotAsset private constructor(builder: Builder) {
/**
* The size of the Amazon S3 object that is the object.
*/
public val size: kotlin.Double = builder.size
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.dataexchange.model.S3SnapshotAsset = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("S3SnapshotAsset(")
append("size=$size")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = size.hashCode()
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 S3SnapshotAsset
if (!(size?.equals(other.size) ?: (other.size == null))) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.dataexchange.model.S3SnapshotAsset = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The size of the Amazon S3 object that is the object.
*/
public var size: kotlin.Double = 0.0
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.dataexchange.model.S3SnapshotAsset) : this() {
this.size = x.size
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.dataexchange.model.S3SnapshotAsset = S3SnapshotAsset(this)
internal fun correctErrors(): Builder {
return this
}
}
}