commonMain.aws.sdk.kotlin.services.schemas.model.CreateDiscovererRequest.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 CreateDiscovererRequest 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
/**
* A description for the discoverer.
*/
public val description: kotlin.String? = builder.description
/**
* The ARN of the event bus.
*/
public val sourceArn: kotlin.String? = builder.sourceArn
/**
* Tags associated with the resource.
*/
public val tags: Map? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.schemas.model.CreateDiscovererRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateDiscovererRequest(")
append("crossAccount=$crossAccount,")
append("description=$description,")
append("sourceArn=$sourceArn,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = crossAccount?.hashCode() ?: 0
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (sourceArn?.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 CreateDiscovererRequest
if (crossAccount != other.crossAccount) return false
if (description != other.description) return false
if (sourceArn != other.sourceArn) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.schemas.model.CreateDiscovererRequest = 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
/**
* A description for the discoverer.
*/
public var description: kotlin.String? = null
/**
* The ARN of the event bus.
*/
public var sourceArn: kotlin.String? = null
/**
* Tags associated with the resource.
*/
public var tags: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.schemas.model.CreateDiscovererRequest) : this() {
this.crossAccount = x.crossAccount
this.description = x.description
this.sourceArn = x.sourceArn
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.schemas.model.CreateDiscovererRequest = CreateDiscovererRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}