All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.glue.model.CreateIntegrationRequest.kt Maven / Gradle / Ivy

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 CreateIntegrationRequest private constructor(builder: Builder) {
    /**
     * An optional set of non-secret key–value pairs that contains additional contextual information for encryption. This can only be provided if `KMSKeyId` is provided.
     */
    public val additionalEncryptionContext: Map? = builder.additionalEncryptionContext
    /**
     * Selects source tables for the integration using Maxwell filter syntax.
     */
    public val dataFilter: kotlin.String? = builder.dataFilter
    /**
     * A description of the integration.
     */
    public val description: kotlin.String? = builder.description
    /**
     * A unique name for an integration in Glue.
     */
    public val integrationName: kotlin.String? = builder.integrationName
    /**
     * The ARN of a KMS key used for encrypting the channel.
     */
    public val kmsKeyId: kotlin.String? = builder.kmsKeyId
    /**
     * The ARN of the source resource for the integration.
     */
    public val sourceArn: kotlin.String? = builder.sourceArn
    /**
     * Metadata assigned to the resource consisting of a list of key-value pairs.
     */
    public val tags: List? = builder.tags
    /**
     * The ARN of the target resource for the integration.
     */
    public val targetArn: kotlin.String? = builder.targetArn

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.CreateIntegrationRequest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("CreateIntegrationRequest(")
        append("additionalEncryptionContext=$additionalEncryptionContext,")
        append("dataFilter=$dataFilter,")
        append("description=$description,")
        append("integrationName=$integrationName,")
        append("kmsKeyId=$kmsKeyId,")
        append("sourceArn=$sourceArn,")
        append("tags=$tags,")
        append("targetArn=$targetArn")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = additionalEncryptionContext?.hashCode() ?: 0
        result = 31 * result + (dataFilter?.hashCode() ?: 0)
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (integrationName?.hashCode() ?: 0)
        result = 31 * result + (kmsKeyId?.hashCode() ?: 0)
        result = 31 * result + (sourceArn?.hashCode() ?: 0)
        result = 31 * result + (tags?.hashCode() ?: 0)
        result = 31 * result + (targetArn?.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 CreateIntegrationRequest

        if (additionalEncryptionContext != other.additionalEncryptionContext) return false
        if (dataFilter != other.dataFilter) return false
        if (description != other.description) return false
        if (integrationName != other.integrationName) return false
        if (kmsKeyId != other.kmsKeyId) return false
        if (sourceArn != other.sourceArn) return false
        if (tags != other.tags) return false
        if (targetArn != other.targetArn) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.CreateIntegrationRequest = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * An optional set of non-secret key–value pairs that contains additional contextual information for encryption. This can only be provided if `KMSKeyId` is provided.
         */
        public var additionalEncryptionContext: Map? = null
        /**
         * Selects source tables for the integration using Maxwell filter syntax.
         */
        public var dataFilter: kotlin.String? = null
        /**
         * A description of the integration.
         */
        public var description: kotlin.String? = null
        /**
         * A unique name for an integration in Glue.
         */
        public var integrationName: kotlin.String? = null
        /**
         * The ARN of a KMS key used for encrypting the channel.
         */
        public var kmsKeyId: kotlin.String? = null
        /**
         * The ARN of the source resource for the integration.
         */
        public var sourceArn: kotlin.String? = null
        /**
         * Metadata assigned to the resource consisting of a list of key-value pairs.
         */
        public var tags: List? = null
        /**
         * The ARN of the target resource for the integration.
         */
        public var targetArn: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.glue.model.CreateIntegrationRequest) : this() {
            this.additionalEncryptionContext = x.additionalEncryptionContext
            this.dataFilter = x.dataFilter
            this.description = x.description
            this.integrationName = x.integrationName
            this.kmsKeyId = x.kmsKeyId
            this.sourceArn = x.sourceArn
            this.tags = x.tags
            this.targetArn = x.targetArn
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.glue.model.CreateIntegrationRequest = CreateIntegrationRequest(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy