
commonMain.aws.sdk.kotlin.services.s3.model.AbortIncompleteMultipartUpload.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.s3.model
/**
* Specifies the days since the initiation of an incomplete multipart upload that Amazon S3 will wait before permanently removing all parts of the upload. For more information, see [ Aborting Incomplete Multipart Uploads Using a Bucket Lifecycle Configuration](https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html#mpu-abort-incomplete-mpu-lifecycle-config) in the *Amazon S3 User Guide*.
*/
public class AbortIncompleteMultipartUpload private constructor(builder: Builder) {
/**
* Specifies the number of days after which Amazon S3 aborts an incomplete multipart upload.
*/
public val daysAfterInitiation: kotlin.Int? = builder.daysAfterInitiation
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.s3.model.AbortIncompleteMultipartUpload = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AbortIncompleteMultipartUpload(")
append("daysAfterInitiation=$daysAfterInitiation")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = daysAfterInitiation ?: 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 AbortIncompleteMultipartUpload
if (daysAfterInitiation != other.daysAfterInitiation) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.s3.model.AbortIncompleteMultipartUpload = Builder(this).apply(block).build()
public class Builder {
/**
* Specifies the number of days after which Amazon S3 aborts an incomplete multipart upload.
*/
public var daysAfterInitiation: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.s3.model.AbortIncompleteMultipartUpload) : this() {
this.daysAfterInitiation = x.daysAfterInitiation
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.s3.model.AbortIncompleteMultipartUpload = AbortIncompleteMultipartUpload(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy