
commonMain.aws.sdk.kotlin.services.ecr.model.DeletePullThroughCacheRuleResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ecr.model
import aws.smithy.kotlin.runtime.time.Instant
public class DeletePullThroughCacheRuleResponse private constructor(builder: Builder) {
/**
* The timestamp associated with the pull through cache rule.
*/
public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
/**
* The Amazon ECR repository prefix associated with the request.
*/
public val ecrRepositoryPrefix: kotlin.String? = builder.ecrRepositoryPrefix
/**
* The registry ID associated with the request.
*/
public val registryId: kotlin.String? = builder.registryId
/**
* The upstream registry URL associated with the pull through cache rule.
*/
public val upstreamRegistryUrl: kotlin.String? = builder.upstreamRegistryUrl
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ecr.model.DeletePullThroughCacheRuleResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeletePullThroughCacheRuleResponse(")
append("createdAt=$createdAt,")
append("ecrRepositoryPrefix=$ecrRepositoryPrefix,")
append("registryId=$registryId,")
append("upstreamRegistryUrl=$upstreamRegistryUrl")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = createdAt?.hashCode() ?: 0
result = 31 * result + (ecrRepositoryPrefix?.hashCode() ?: 0)
result = 31 * result + (registryId?.hashCode() ?: 0)
result = 31 * result + (upstreamRegistryUrl?.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 DeletePullThroughCacheRuleResponse
if (createdAt != other.createdAt) return false
if (ecrRepositoryPrefix != other.ecrRepositoryPrefix) return false
if (registryId != other.registryId) return false
if (upstreamRegistryUrl != other.upstreamRegistryUrl) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ecr.model.DeletePullThroughCacheRuleResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The timestamp associated with the pull through cache rule.
*/
public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The Amazon ECR repository prefix associated with the request.
*/
public var ecrRepositoryPrefix: kotlin.String? = null
/**
* The registry ID associated with the request.
*/
public var registryId: kotlin.String? = null
/**
* The upstream registry URL associated with the pull through cache rule.
*/
public var upstreamRegistryUrl: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ecr.model.DeletePullThroughCacheRuleResponse) : this() {
this.createdAt = x.createdAt
this.ecrRepositoryPrefix = x.ecrRepositoryPrefix
this.registryId = x.registryId
this.upstreamRegistryUrl = x.upstreamRegistryUrl
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ecr.model.DeletePullThroughCacheRuleResponse = DeletePullThroughCacheRuleResponse(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy