
commonMain.aws.sdk.kotlin.services.ecr.model.GetAuthorizationTokenResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ecr.model
public class GetAuthorizationTokenResponse private constructor(builder: Builder) {
/**
* A list of authorization token data objects that correspond to the `registryIds` values in the request.
*/
public val authorizationData: List? = builder.authorizationData
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ecr.model.GetAuthorizationTokenResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetAuthorizationTokenResponse(")
append("authorizationData=$authorizationData")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = authorizationData?.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 GetAuthorizationTokenResponse
if (authorizationData != other.authorizationData) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ecr.model.GetAuthorizationTokenResponse = Builder(this).apply(block).build()
public class Builder {
/**
* A list of authorization token data objects that correspond to the `registryIds` values in the request.
*/
public var authorizationData: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ecr.model.GetAuthorizationTokenResponse) : this() {
this.authorizationData = x.authorizationData
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ecr.model.GetAuthorizationTokenResponse = GetAuthorizationTokenResponse(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy