commonMain.aws.sdk.kotlin.services.glue.model.RegistryId.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glue-jvm Show documentation
Show all versions of glue-jvm Show documentation
The AWS SDK for Kotlin client for Glue
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
/**
* A wrapper structure that may contain the registry name and Amazon Resource Name (ARN).
*/
public class RegistryId private constructor(builder: Builder) {
/**
* Arn of the registry to be updated. One of `RegistryArn` or `RegistryName` has to be provided.
*/
public val registryArn: kotlin.String? = builder.registryArn
/**
* Name of the registry. Used only for lookup. One of `RegistryArn` or `RegistryName` has to be provided.
*/
public val registryName: kotlin.String? = builder.registryName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.RegistryId = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RegistryId(")
append("registryArn=$registryArn,")
append("registryName=$registryName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = registryArn?.hashCode() ?: 0
result = 31 * result + (registryName?.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 RegistryId
if (registryArn != other.registryArn) return false
if (registryName != other.registryName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.RegistryId = Builder(this).apply(block).build()
public class Builder {
/**
* Arn of the registry to be updated. One of `RegistryArn` or `RegistryName` has to be provided.
*/
public var registryArn: kotlin.String? = null
/**
* Name of the registry. Used only for lookup. One of `RegistryArn` or `RegistryName` has to be provided.
*/
public var registryName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.RegistryId) : this() {
this.registryArn = x.registryArn
this.registryName = x.registryName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.RegistryId = RegistryId(this)
internal fun correctErrors(): Builder {
return this
}
}
}