
commonMain.aws.sdk.kotlin.services.schemas.model.StopDiscovererResponse.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 StopDiscovererResponse private constructor(builder: Builder) {
/**
* The ID of the discoverer.
*/
public val discovererId: kotlin.String? = builder.discovererId
/**
* The state of the discoverer.
*/
public val state: aws.sdk.kotlin.services.schemas.model.DiscovererState? = builder.state
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.schemas.model.StopDiscovererResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StopDiscovererResponse(")
append("discovererId=$discovererId,")
append("state=$state")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = discovererId?.hashCode() ?: 0
result = 31 * result + (state?.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 StopDiscovererResponse
if (discovererId != other.discovererId) return false
if (state != other.state) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.schemas.model.StopDiscovererResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ID of the discoverer.
*/
public var discovererId: kotlin.String? = null
/**
* The state of the discoverer.
*/
public var state: aws.sdk.kotlin.services.schemas.model.DiscovererState? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.schemas.model.StopDiscovererResponse) : this() {
this.discovererId = x.discovererId
this.state = x.state
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.schemas.model.StopDiscovererResponse = StopDiscovererResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy