commonMain.aws.sdk.kotlin.services.glue.model.CreateIntegrationTablePropertiesRequest.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 CreateIntegrationTablePropertiesRequest private constructor(builder: Builder) {
/**
* The connection ARN of the source, or the database ARN of the target.
*/
public val resourceArn: kotlin.String? = builder.resourceArn
/**
* A structure for the source table configuration.
*/
public val sourceTableConfig: aws.sdk.kotlin.services.glue.model.SourceTableConfig? = builder.sourceTableConfig
/**
* The name of the table to be replicated.
*/
public val tableName: kotlin.String? = builder.tableName
/**
* A structure for the target table configuration.
*/
public val targetTableConfig: aws.sdk.kotlin.services.glue.model.TargetTableConfig? = builder.targetTableConfig
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.CreateIntegrationTablePropertiesRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateIntegrationTablePropertiesRequest(")
append("resourceArn=$resourceArn,")
append("sourceTableConfig=$sourceTableConfig,")
append("tableName=$tableName,")
append("targetTableConfig=$targetTableConfig")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = resourceArn?.hashCode() ?: 0
result = 31 * result + (sourceTableConfig?.hashCode() ?: 0)
result = 31 * result + (tableName?.hashCode() ?: 0)
result = 31 * result + (targetTableConfig?.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 CreateIntegrationTablePropertiesRequest
if (resourceArn != other.resourceArn) return false
if (sourceTableConfig != other.sourceTableConfig) return false
if (tableName != other.tableName) return false
if (targetTableConfig != other.targetTableConfig) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.CreateIntegrationTablePropertiesRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The connection ARN of the source, or the database ARN of the target.
*/
public var resourceArn: kotlin.String? = null
/**
* A structure for the source table configuration.
*/
public var sourceTableConfig: aws.sdk.kotlin.services.glue.model.SourceTableConfig? = null
/**
* The name of the table to be replicated.
*/
public var tableName: kotlin.String? = null
/**
* A structure for the target table configuration.
*/
public var targetTableConfig: aws.sdk.kotlin.services.glue.model.TargetTableConfig? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.CreateIntegrationTablePropertiesRequest) : this() {
this.resourceArn = x.resourceArn
this.sourceTableConfig = x.sourceTableConfig
this.tableName = x.tableName
this.targetTableConfig = x.targetTableConfig
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.CreateIntegrationTablePropertiesRequest = CreateIntegrationTablePropertiesRequest(this)
/**
* construct an [aws.sdk.kotlin.services.glue.model.SourceTableConfig] inside the given [block]
*/
public fun sourceTableConfig(block: aws.sdk.kotlin.services.glue.model.SourceTableConfig.Builder.() -> kotlin.Unit) {
this.sourceTableConfig = aws.sdk.kotlin.services.glue.model.SourceTableConfig.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.glue.model.TargetTableConfig] inside the given [block]
*/
public fun targetTableConfig(block: aws.sdk.kotlin.services.glue.model.TargetTableConfig.Builder.() -> kotlin.Unit) {
this.targetTableConfig = aws.sdk.kotlin.services.glue.model.TargetTableConfig.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy