
commonMain.aws.sdk.kotlin.services.ecr.model.UpdatePullThroughCacheRuleResponse.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.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
public class UpdatePullThroughCacheRuleResponse private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret associated with the pull through cache rule.
*/
public val credentialArn: kotlin.String? = builder.credentialArn
/**
* The Amazon ECR repository prefix associated with the pull through cache rule.
*/
public val ecrRepositoryPrefix: kotlin.String? = builder.ecrRepositoryPrefix
/**
* The registry ID associated with the request.
*/
public val registryId: kotlin.String? = builder.registryId
/**
* The date and time, in JavaScript date format, when the pull through cache rule was updated.
*/
public val updatedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.updatedAt
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ecr.model.UpdatePullThroughCacheRuleResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdatePullThroughCacheRuleResponse(")
append("credentialArn=$credentialArn,")
append("ecrRepositoryPrefix=$ecrRepositoryPrefix,")
append("registryId=$registryId,")
append("updatedAt=$updatedAt")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = credentialArn?.hashCode() ?: 0
result = 31 * result + (ecrRepositoryPrefix?.hashCode() ?: 0)
result = 31 * result + (registryId?.hashCode() ?: 0)
result = 31 * result + (updatedAt?.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 UpdatePullThroughCacheRuleResponse
if (credentialArn != other.credentialArn) return false
if (ecrRepositoryPrefix != other.ecrRepositoryPrefix) return false
if (registryId != other.registryId) return false
if (updatedAt != other.updatedAt) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ecr.model.UpdatePullThroughCacheRuleResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret associated with the pull through cache rule.
*/
public var credentialArn: kotlin.String? = null
/**
* The Amazon ECR repository prefix associated with the pull through cache rule.
*/
public var ecrRepositoryPrefix: kotlin.String? = null
/**
* The registry ID associated with the request.
*/
public var registryId: kotlin.String? = null
/**
* The date and time, in JavaScript date format, when the pull through cache rule was updated.
*/
public var updatedAt: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ecr.model.UpdatePullThroughCacheRuleResponse) : this() {
this.credentialArn = x.credentialArn
this.ecrRepositoryPrefix = x.ecrRepositoryPrefix
this.registryId = x.registryId
this.updatedAt = x.updatedAt
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ecr.model.UpdatePullThroughCacheRuleResponse = UpdatePullThroughCacheRuleResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy