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

commonMain.aws.sdk.kotlin.services.glue.model.GetIntegrationResourcePropertyResponse.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 GetIntegrationResourcePropertyResponse private constructor(builder: Builder) {
    /**
     * The connection ARN of the source, or the database ARN of the target.
     */
    public val resourceArn: kotlin.String? = builder.resourceArn
    /**
     * The resource properties associated with the integration source.
     */
    public val sourceProcessingProperties: aws.sdk.kotlin.services.glue.model.SourceProcessingProperties? = builder.sourceProcessingProperties
    /**
     * The resource properties associated with the integration target.
     */
    public val targetProcessingProperties: aws.sdk.kotlin.services.glue.model.TargetProcessingProperties? = builder.targetProcessingProperties

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

    override fun toString(): kotlin.String = buildString {
        append("GetIntegrationResourcePropertyResponse(")
        append("resourceArn=$resourceArn,")
        append("sourceProcessingProperties=$sourceProcessingProperties,")
        append("targetProcessingProperties=$targetProcessingProperties")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = resourceArn?.hashCode() ?: 0
        result = 31 * result + (sourceProcessingProperties?.hashCode() ?: 0)
        result = 31 * result + (targetProcessingProperties?.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 GetIntegrationResourcePropertyResponse

        if (resourceArn != other.resourceArn) return false
        if (sourceProcessingProperties != other.sourceProcessingProperties) return false
        if (targetProcessingProperties != other.targetProcessingProperties) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.GetIntegrationResourcePropertyResponse = 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
        /**
         * The resource properties associated with the integration source.
         */
        public var sourceProcessingProperties: aws.sdk.kotlin.services.glue.model.SourceProcessingProperties? = null
        /**
         * The resource properties associated with the integration target.
         */
        public var targetProcessingProperties: aws.sdk.kotlin.services.glue.model.TargetProcessingProperties? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.glue.model.GetIntegrationResourcePropertyResponse) : this() {
            this.resourceArn = x.resourceArn
            this.sourceProcessingProperties = x.sourceProcessingProperties
            this.targetProcessingProperties = x.targetProcessingProperties
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.glue.model.SourceProcessingProperties] inside the given [block]
         */
        public fun sourceProcessingProperties(block: aws.sdk.kotlin.services.glue.model.SourceProcessingProperties.Builder.() -> kotlin.Unit) {
            this.sourceProcessingProperties = aws.sdk.kotlin.services.glue.model.SourceProcessingProperties.invoke(block)
        }

        /**
         * construct an [aws.sdk.kotlin.services.glue.model.TargetProcessingProperties] inside the given [block]
         */
        public fun targetProcessingProperties(block: aws.sdk.kotlin.services.glue.model.TargetProcessingProperties.Builder.() -> kotlin.Unit) {
            this.targetProcessingProperties = aws.sdk.kotlin.services.glue.model.TargetProcessingProperties.invoke(block)
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy