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

commonMain.aws.sdk.kotlin.services.redshift.model.InboundIntegration.kt Maven / Gradle / Ivy

There is a newer version: 1.3.76
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.redshift.model

import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant

/**
 * The content of an inbound integration.
 */
public class InboundIntegration private constructor(builder: Builder) {
    /**
     * The creation time of an inbound integration.
     */
    public val createTime: aws.smithy.kotlin.runtime.time.Instant? = builder.createTime
    /**
     * The outstanding errors of an inbound integration. Each item is an "IntegrationError". This is null if there is no error.
     */
    public val errors: List? = builder.errors
    /**
     * The Amazon Resource Name (ARN) of an inbound integration.
     */
    public val integrationArn: kotlin.String? = builder.integrationArn
    /**
     * The Amazon Resource Name (ARN) of the source of an inbound integration.
     */
    public val sourceArn: kotlin.String? = builder.sourceArn
    /**
     * The status of an inbound integration.
     */
    public val status: aws.sdk.kotlin.services.redshift.model.ZeroEtlIntegrationStatus? = builder.status
    /**
     * The Amazon Resource Name (ARN) of the target of an inbound integration.
     */
    public val targetArn: kotlin.String? = builder.targetArn

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

    override fun toString(): kotlin.String = buildString {
        append("InboundIntegration(")
        append("createTime=$createTime,")
        append("errors=$errors,")
        append("integrationArn=$integrationArn,")
        append("sourceArn=$sourceArn,")
        append("status=$status,")
        append("targetArn=$targetArn")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = createTime?.hashCode() ?: 0
        result = 31 * result + (errors?.hashCode() ?: 0)
        result = 31 * result + (integrationArn?.hashCode() ?: 0)
        result = 31 * result + (sourceArn?.hashCode() ?: 0)
        result = 31 * result + (status?.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 InboundIntegration

        if (createTime != other.createTime) return false
        if (errors != other.errors) return false
        if (integrationArn != other.integrationArn) return false
        if (sourceArn != other.sourceArn) return false
        if (status != other.status) return false
        if (targetArn != other.targetArn) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The creation time of an inbound integration.
         */
        public var createTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The outstanding errors of an inbound integration. Each item is an "IntegrationError". This is null if there is no error.
         */
        public var errors: List? = null
        /**
         * The Amazon Resource Name (ARN) of an inbound integration.
         */
        public var integrationArn: kotlin.String? = null
        /**
         * The Amazon Resource Name (ARN) of the source of an inbound integration.
         */
        public var sourceArn: kotlin.String? = null
        /**
         * The status of an inbound integration.
         */
        public var status: aws.sdk.kotlin.services.redshift.model.ZeroEtlIntegrationStatus? = null
        /**
         * The Amazon Resource Name (ARN) of the target of an inbound integration.
         */
        public var targetArn: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.redshift.model.InboundIntegration) : this() {
            this.createTime = x.createTime
            this.errors = x.errors
            this.integrationArn = x.integrationArn
            this.sourceArn = x.sourceArn
            this.status = x.status
            this.targetArn = x.targetArn
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy