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

commonMain.aws.sdk.kotlin.services.repostspace.model.SendInvitesRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.repostspace.model

import aws.smithy.kotlin.runtime.SdkDsl

public class SendInvitesRequest private constructor(builder: Builder) {
    /**
     * The array of identifiers for the users and groups.
     */
    public val accessorIds: List? = builder.accessorIds
    /**
     * The body of the invite.
     */
    public val body: kotlin.String? = builder.body
    /**
     * The ID of the private re:Post.
     */
    public val spaceId: kotlin.String? = builder.spaceId
    /**
     * The title of the invite.
     */
    public val title: kotlin.String? = builder.title

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

    override fun toString(): kotlin.String = buildString {
        append("SendInvitesRequest(")
        append("accessorIds=$accessorIds,")
        append("body=*** Sensitive Data Redacted ***,")
        append("spaceId=$spaceId,")
        append("title=*** Sensitive Data Redacted ***")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = accessorIds?.hashCode() ?: 0
        result = 31 * result + (body?.hashCode() ?: 0)
        result = 31 * result + (spaceId?.hashCode() ?: 0)
        result = 31 * result + (title?.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 SendInvitesRequest

        if (accessorIds != other.accessorIds) return false
        if (body != other.body) return false
        if (spaceId != other.spaceId) return false
        if (title != other.title) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The array of identifiers for the users and groups.
         */
        public var accessorIds: List? = null
        /**
         * The body of the invite.
         */
        public var body: kotlin.String? = null
        /**
         * The ID of the private re:Post.
         */
        public var spaceId: kotlin.String? = null
        /**
         * The title of the invite.
         */
        public var title: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.repostspace.model.SendInvitesRequest) : this() {
            this.accessorIds = x.accessorIds
            this.body = x.body
            this.spaceId = x.spaceId
            this.title = x.title
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy