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

commonMain.aws.sdk.kotlin.services.omics.model.ShareDetails.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.omics.model

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

/**
 * The details of a share.
 */
public class ShareDetails private constructor(builder: Builder) {
    /**
     * The timestamp for when the share was created.
     */
    public val creationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTime
    /**
     * The account ID for the data owner. The owner creates the share offer.
     */
    public val ownerId: kotlin.String? = builder.ownerId
    /**
     * The principal subscriber is the account the analytics store data is being shared with.
     */
    public val principalSubscriber: kotlin.String? = builder.principalSubscriber
    /**
     * The resource Arn of the analytics store being shared.
     */
    public val resourceArn: kotlin.String? = builder.resourceArn
    /**
     * The ID for a share offer for an analytics store .
     */
    public val shareId: kotlin.String? = builder.shareId
    /**
     * The name of the share.
     */
    public val shareName: kotlin.String? = builder.shareName
    /**
     * The status of a share.
     */
    public val status: aws.sdk.kotlin.services.omics.model.ShareStatus? = builder.status
    /**
     * The status message for a share. It provides more details on the status of the share.
     */
    public val statusMessage: kotlin.String? = builder.statusMessage
    /**
     * The timestamp of the share update.
     */
    public val updateTime: aws.smithy.kotlin.runtime.time.Instant? = builder.updateTime

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

    override fun toString(): kotlin.String = buildString {
        append("ShareDetails(")
        append("creationTime=$creationTime,")
        append("ownerId=$ownerId,")
        append("principalSubscriber=$principalSubscriber,")
        append("resourceArn=$resourceArn,")
        append("shareId=$shareId,")
        append("shareName=$shareName,")
        append("status=$status,")
        append("statusMessage=$statusMessage,")
        append("updateTime=$updateTime")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = creationTime?.hashCode() ?: 0
        result = 31 * result + (ownerId?.hashCode() ?: 0)
        result = 31 * result + (principalSubscriber?.hashCode() ?: 0)
        result = 31 * result + (resourceArn?.hashCode() ?: 0)
        result = 31 * result + (shareId?.hashCode() ?: 0)
        result = 31 * result + (shareName?.hashCode() ?: 0)
        result = 31 * result + (status?.hashCode() ?: 0)
        result = 31 * result + (statusMessage?.hashCode() ?: 0)
        result = 31 * result + (updateTime?.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 ShareDetails

        if (creationTime != other.creationTime) return false
        if (ownerId != other.ownerId) return false
        if (principalSubscriber != other.principalSubscriber) return false
        if (resourceArn != other.resourceArn) return false
        if (shareId != other.shareId) return false
        if (shareName != other.shareName) return false
        if (status != other.status) return false
        if (statusMessage != other.statusMessage) return false
        if (updateTime != other.updateTime) return false

        return true
    }

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

    public class Builder {
        /**
         * The timestamp for when the share was created.
         */
        public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The account ID for the data owner. The owner creates the share offer.
         */
        public var ownerId: kotlin.String? = null
        /**
         * The principal subscriber is the account the analytics store data is being shared with.
         */
        public var principalSubscriber: kotlin.String? = null
        /**
         * The resource Arn of the analytics store being shared.
         */
        public var resourceArn: kotlin.String? = null
        /**
         * The ID for a share offer for an analytics store .
         */
        public var shareId: kotlin.String? = null
        /**
         * The name of the share.
         */
        public var shareName: kotlin.String? = null
        /**
         * The status of a share.
         */
        public var status: aws.sdk.kotlin.services.omics.model.ShareStatus? = null
        /**
         * The status message for a share. It provides more details on the status of the share.
         */
        public var statusMessage: kotlin.String? = null
        /**
         * The timestamp of the share update.
         */
        public var updateTime: aws.smithy.kotlin.runtime.time.Instant? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.omics.model.ShareDetails) : this() {
            this.creationTime = x.creationTime
            this.ownerId = x.ownerId
            this.principalSubscriber = x.principalSubscriber
            this.resourceArn = x.resourceArn
            this.shareId = x.shareId
            this.shareName = x.shareName
            this.status = x.status
            this.statusMessage = x.statusMessage
            this.updateTime = x.updateTime
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy