commonMain.aws.sdk.kotlin.services.schemas.model.UpdateDiscovererRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of schemas-jvm Show documentation
Show all versions of schemas-jvm Show documentation
The AWS SDK for Kotlin client for schemas
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.schemas.model
import aws.smithy.kotlin.runtime.SdkDsl
public class UpdateDiscovererRequest private constructor(builder: Builder) {
/**
* Support discovery of schemas in events sent to the bus from another account. (default: true)
*/
public val crossAccount: kotlin.Boolean? = builder.crossAccount
/**
* The description of the discoverer to update.
*/
public val description: kotlin.String? = builder.description
/**
* The ID of the discoverer.
*/
public val discovererId: kotlin.String? = builder.discovererId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.schemas.model.UpdateDiscovererRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateDiscovererRequest(")
append("crossAccount=$crossAccount,")
append("description=$description,")
append("discovererId=$discovererId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = crossAccount?.hashCode() ?: 0
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (discovererId?.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 UpdateDiscovererRequest
if (crossAccount != other.crossAccount) return false
if (description != other.description) return false
if (discovererId != other.discovererId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.schemas.model.UpdateDiscovererRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Support discovery of schemas in events sent to the bus from another account. (default: true)
*/
public var crossAccount: kotlin.Boolean? = null
/**
* The description of the discoverer to update.
*/
public var description: kotlin.String? = null
/**
* The ID of the discoverer.
*/
public var discovererId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.schemas.model.UpdateDiscovererRequest) : this() {
this.crossAccount = x.crossAccount
this.description = x.description
this.discovererId = x.discovererId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.schemas.model.UpdateDiscovererRequest = UpdateDiscovererRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}