
commonMain.aws.sdk.kotlin.services.ecr.model.InitiateLayerUploadResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ecr.model
public class InitiateLayerUploadResponse private constructor(builder: Builder) {
/**
* The size, in bytes, that Amazon ECR expects future layer part uploads to be.
*/
public val partSize: kotlin.Long? = builder.partSize
/**
* The upload ID for the layer upload. This parameter is passed to further UploadLayerPart and CompleteLayerUpload operations.
*/
public val uploadId: kotlin.String? = builder.uploadId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ecr.model.InitiateLayerUploadResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("InitiateLayerUploadResponse(")
append("partSize=$partSize,")
append("uploadId=$uploadId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = partSize?.hashCode() ?: 0
result = 31 * result + (uploadId?.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 InitiateLayerUploadResponse
if (partSize != other.partSize) return false
if (uploadId != other.uploadId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ecr.model.InitiateLayerUploadResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The size, in bytes, that Amazon ECR expects future layer part uploads to be.
*/
public var partSize: kotlin.Long? = null
/**
* The upload ID for the layer upload. This parameter is passed to further UploadLayerPart and CompleteLayerUpload operations.
*/
public var uploadId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ecr.model.InitiateLayerUploadResponse) : this() {
this.partSize = x.partSize
this.uploadId = x.uploadId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ecr.model.InitiateLayerUploadResponse = InitiateLayerUploadResponse(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy