
commonMain.aws.sdk.kotlin.services.ecr.model.ImageReplicationStatus.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ecr.model
/**
* The status of the replication process for an image.
*/
public class ImageReplicationStatus private constructor(builder: Builder) {
/**
* The failure code for a replication that has failed.
*/
public val failureCode: kotlin.String? = builder.failureCode
/**
* The destination Region for the image replication.
*/
public val region: kotlin.String? = builder.region
/**
* The Amazon Web Services account ID associated with the registry to which the image belongs.
*/
public val registryId: kotlin.String? = builder.registryId
/**
* The image replication status.
*/
public val status: aws.sdk.kotlin.services.ecr.model.ReplicationStatus? = builder.status
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ecr.model.ImageReplicationStatus = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ImageReplicationStatus(")
append("failureCode=$failureCode,")
append("region=$region,")
append("registryId=$registryId,")
append("status=$status")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = failureCode?.hashCode() ?: 0
result = 31 * result + (region?.hashCode() ?: 0)
result = 31 * result + (registryId?.hashCode() ?: 0)
result = 31 * result + (status?.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 ImageReplicationStatus
if (failureCode != other.failureCode) return false
if (region != other.region) return false
if (registryId != other.registryId) return false
if (status != other.status) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ecr.model.ImageReplicationStatus = Builder(this).apply(block).build()
public class Builder {
/**
* The failure code for a replication that has failed.
*/
public var failureCode: kotlin.String? = null
/**
* The destination Region for the image replication.
*/
public var region: kotlin.String? = null
/**
* The Amazon Web Services account ID associated with the registry to which the image belongs.
*/
public var registryId: kotlin.String? = null
/**
* The image replication status.
*/
public var status: aws.sdk.kotlin.services.ecr.model.ReplicationStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ecr.model.ImageReplicationStatus) : this() {
this.failureCode = x.failureCode
this.region = x.region
this.registryId = x.registryId
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ecr.model.ImageReplicationStatus = ImageReplicationStatus(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy