commonMain.aws.sdk.kotlin.services.glue.model.TestConnectionRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glue-jvm Show documentation
Show all versions of glue-jvm Show documentation
The AWS SDK for Kotlin client for Glue
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
public class TestConnectionRequest private constructor(builder: Builder) {
/**
* The catalog ID where the connection resides.
*/
public val catalogId: kotlin.String? = builder.catalogId
/**
* Optional. The name of the connection to test. If only name is provided, the operation will get the connection and use that for testing.
*/
public val connectionName: kotlin.String? = builder.connectionName
/**
* A structure that is used to specify testing a connection to a service.
*/
public val testConnectionInput: aws.sdk.kotlin.services.glue.model.TestConnectionInput? = builder.testConnectionInput
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.TestConnectionRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("TestConnectionRequest(")
append("catalogId=$catalogId,")
append("connectionName=$connectionName,")
append("testConnectionInput=$testConnectionInput")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = catalogId?.hashCode() ?: 0
result = 31 * result + (connectionName?.hashCode() ?: 0)
result = 31 * result + (testConnectionInput?.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 TestConnectionRequest
if (catalogId != other.catalogId) return false
if (connectionName != other.connectionName) return false
if (testConnectionInput != other.testConnectionInput) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.TestConnectionRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The catalog ID where the connection resides.
*/
public var catalogId: kotlin.String? = null
/**
* Optional. The name of the connection to test. If only name is provided, the operation will get the connection and use that for testing.
*/
public var connectionName: kotlin.String? = null
/**
* A structure that is used to specify testing a connection to a service.
*/
public var testConnectionInput: aws.sdk.kotlin.services.glue.model.TestConnectionInput? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.TestConnectionRequest) : this() {
this.catalogId = x.catalogId
this.connectionName = x.connectionName
this.testConnectionInput = x.testConnectionInput
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.TestConnectionRequest = TestConnectionRequest(this)
/**
* construct an [aws.sdk.kotlin.services.glue.model.TestConnectionInput] inside the given [block]
*/
public fun testConnectionInput(block: aws.sdk.kotlin.services.glue.model.TestConnectionInput.Builder.() -> kotlin.Unit) {
this.testConnectionInput = aws.sdk.kotlin.services.glue.model.TestConnectionInput.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy