
commonMain.aws.sdk.kotlin.services.schemas.model.UpdateRegistryRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.schemas.model
/**
* Updates the registry.
*/
public class UpdateRegistryRequest private constructor(builder: Builder) {
/**
* The description of the registry to update.
*/
public val description: kotlin.String? = builder.description
/**
* The name of the registry.
*/
public val registryName: kotlin.String? = requireNotNull(builder.registryName) { "A non-null value must be provided for registryName" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.schemas.model.UpdateRegistryRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateRegistryRequest(")
append("description=$description,")
append("registryName=$registryName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = description?.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 UpdateRegistryRequest
if (description != other.description) return false
if (registryName != other.registryName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.schemas.model.UpdateRegistryRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The description of the registry to update.
*/
public var description: kotlin.String? = null
/**
* The name of the registry.
*/
public var registryName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.schemas.model.UpdateRegistryRequest) : this() {
this.description = x.description
this.registryName = x.registryName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.schemas.model.UpdateRegistryRequest = UpdateRegistryRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy