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

commonMain.aws.sdk.kotlin.services.glue.model.TargetProcessingProperties.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

/**
 * The resource properties associated with the integration target.
 */
public class TargetProcessingProperties private constructor(builder: Builder) {
    /**
     * The Glue network connection to configure the Glue job running in the customer VPC.
     */
    public val connectionName: kotlin.String? = builder.connectionName
    /**
     * The ARN of an Eventbridge event bus to receive the integration status notification.
     */
    public val eventBusArn: kotlin.String? = builder.eventBusArn
    /**
     * The ARN of the KMS key used for encryption.
     */
    public val kmsArn: kotlin.String? = builder.kmsArn
    /**
     * The IAM role to access the Glue database.
     */
    public val roleArn: kotlin.String? = builder.roleArn

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

    override fun toString(): kotlin.String = buildString {
        append("TargetProcessingProperties(")
        append("connectionName=$connectionName,")
        append("eventBusArn=$eventBusArn,")
        append("kmsArn=$kmsArn,")
        append("roleArn=$roleArn")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = connectionName?.hashCode() ?: 0
        result = 31 * result + (eventBusArn?.hashCode() ?: 0)
        result = 31 * result + (kmsArn?.hashCode() ?: 0)
        result = 31 * result + (roleArn?.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 TargetProcessingProperties

        if (connectionName != other.connectionName) return false
        if (eventBusArn != other.eventBusArn) return false
        if (kmsArn != other.kmsArn) return false
        if (roleArn != other.roleArn) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The Glue network connection to configure the Glue job running in the customer VPC.
         */
        public var connectionName: kotlin.String? = null
        /**
         * The ARN of an Eventbridge event bus to receive the integration status notification.
         */
        public var eventBusArn: kotlin.String? = null
        /**
         * The ARN of the KMS key used for encryption.
         */
        public var kmsArn: kotlin.String? = null
        /**
         * The IAM role to access the Glue database.
         */
        public var roleArn: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.glue.model.TargetProcessingProperties) : this() {
            this.connectionName = x.connectionName
            this.eventBusArn = x.eventBusArn
            this.kmsArn = x.kmsArn
            this.roleArn = x.roleArn
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy