commonMain.aws.sdk.kotlin.services.glue.model.CreateRegistryResponse.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 CreateRegistryResponse private constructor(builder: Builder) {
/**
* A description of the registry.
*/
public val description: kotlin.String? = builder.description
/**
* The Amazon Resource Name (ARN) of the newly created registry.
*/
public val registryArn: kotlin.String? = builder.registryArn
/**
* The name of the registry.
*/
public val registryName: kotlin.String? = builder.registryName
/**
* The tags for the registry.
*/
public val tags: Map? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.CreateRegistryResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateRegistryResponse(")
append("description=$description,")
append("registryArn=$registryArn,")
append("registryName=$registryName,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = description?.hashCode() ?: 0
result = 31 * result + (registryArn?.hashCode() ?: 0)
result = 31 * result + (registryName?.hashCode() ?: 0)
result = 31 * result + (tags?.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 CreateRegistryResponse
if (description != other.description) return false
if (registryArn != other.registryArn) return false
if (registryName != other.registryName) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.CreateRegistryResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A description of the registry.
*/
public var description: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) of the newly created registry.
*/
public var registryArn: kotlin.String? = null
/**
* The name of the registry.
*/
public var registryName: kotlin.String? = null
/**
* The tags for the registry.
*/
public var tags: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.CreateRegistryResponse) : this() {
this.description = x.description
this.registryArn = x.registryArn
this.registryName = x.registryName
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.CreateRegistryResponse = CreateRegistryResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}