commonMain.aws.sdk.kotlin.services.glue.model.DeleteRegistryResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
public class DeleteRegistryResponse private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the registry being deleted.
*/
public val registryArn: kotlin.String? = builder.registryArn
/**
* The name of the registry being deleted.
*/
public val registryName: kotlin.String? = builder.registryName
/**
* The status of the registry. A successful operation will return the `Deleting` status.
*/
public val status: aws.sdk.kotlin.services.glue.model.RegistryStatus? = builder.status
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.DeleteRegistryResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteRegistryResponse(")
append("registryArn=$registryArn,")
append("registryName=$registryName,")
append("status=$status")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = registryArn?.hashCode() ?: 0
result = 31 * result + (registryName?.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 DeleteRegistryResponse
if (registryArn != other.registryArn) return false
if (registryName != other.registryName) return false
if (status != other.status) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.DeleteRegistryResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the registry being deleted.
*/
public var registryArn: kotlin.String? = null
/**
* The name of the registry being deleted.
*/
public var registryName: kotlin.String? = null
/**
* The status of the registry. A successful operation will return the `Deleting` status.
*/
public var status: aws.sdk.kotlin.services.glue.model.RegistryStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.DeleteRegistryResponse) : this() {
this.registryArn = x.registryArn
this.registryName = x.registryName
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.DeleteRegistryResponse = DeleteRegistryResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}