commonMain.aws.sdk.kotlin.services.glue.model.CreateConnectionResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
public class CreateConnectionResponse private constructor(builder: Builder) {
/**
* The status of the connection creation request. The request can take some time for certain authentication types, for example when creating an OAuth connection with token exchange over VPC.
*/
public val createConnectionStatus: aws.sdk.kotlin.services.glue.model.ConnectionStatus? = builder.createConnectionStatus
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.CreateConnectionResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateConnectionResponse(")
append("createConnectionStatus=$createConnectionStatus")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = createConnectionStatus?.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 CreateConnectionResponse
if (createConnectionStatus != other.createConnectionStatus) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.CreateConnectionResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The status of the connection creation request. The request can take some time for certain authentication types, for example when creating an OAuth connection with token exchange over VPC.
*/
public var createConnectionStatus: aws.sdk.kotlin.services.glue.model.ConnectionStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.CreateConnectionResponse) : this() {
this.createConnectionStatus = x.createConnectionStatus
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.CreateConnectionResponse = CreateConnectionResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}