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

commonMain.aws.sdk.kotlin.services.redshift.model.PartnerIntegrationInfo.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

/**
 * Describes a partner integration.
 */
public class PartnerIntegrationInfo private constructor(builder: Builder) {
    /**
     * The date (UTC) that the partner integration was created.
     */
    public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
    /**
     * The name of the database that receives data from a partner.
     */
    public val databaseName: kotlin.String? = builder.databaseName
    /**
     * The name of the partner.
     */
    public val partnerName: kotlin.String? = builder.partnerName
    /**
     * The partner integration status.
     */
    public val status: aws.sdk.kotlin.services.redshift.model.PartnerIntegrationStatus? = builder.status
    /**
     * The status message provided by the partner.
     */
    public val statusMessage: kotlin.String? = builder.statusMessage
    /**
     * The date (UTC) that the partner integration status was last updated by the partner.
     */
    public val updatedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.updatedAt

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

    override fun toString(): kotlin.String = buildString {
        append("PartnerIntegrationInfo(")
        append("createdAt=$createdAt,")
        append("databaseName=$databaseName,")
        append("partnerName=$partnerName,")
        append("status=$status,")
        append("statusMessage=$statusMessage,")
        append("updatedAt=$updatedAt")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = createdAt?.hashCode() ?: 0
        result = 31 * result + (databaseName?.hashCode() ?: 0)
        result = 31 * result + (partnerName?.hashCode() ?: 0)
        result = 31 * result + (status?.hashCode() ?: 0)
        result = 31 * result + (statusMessage?.hashCode() ?: 0)
        result = 31 * result + (updatedAt?.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 PartnerIntegrationInfo

        if (createdAt != other.createdAt) return false
        if (databaseName != other.databaseName) return false
        if (partnerName != other.partnerName) return false
        if (status != other.status) return false
        if (statusMessage != other.statusMessage) return false
        if (updatedAt != other.updatedAt) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The date (UTC) that the partner integration was created.
         */
        public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The name of the database that receives data from a partner.
         */
        public var databaseName: kotlin.String? = null
        /**
         * The name of the partner.
         */
        public var partnerName: kotlin.String? = null
        /**
         * The partner integration status.
         */
        public var status: aws.sdk.kotlin.services.redshift.model.PartnerIntegrationStatus? = null
        /**
         * The status message provided by the partner.
         */
        public var statusMessage: kotlin.String? = null
        /**
         * The date (UTC) that the partner integration status was last updated by the partner.
         */
        public var updatedAt: aws.smithy.kotlin.runtime.time.Instant? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.redshift.model.PartnerIntegrationInfo) : this() {
            this.createdAt = x.createdAt
            this.databaseName = x.databaseName
            this.partnerName = x.partnerName
            this.status = x.status
            this.statusMessage = x.statusMessage
            this.updatedAt = x.updatedAt
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy