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

commonMain.aws.sdk.kotlin.services.repostspace.model.UpdateSpaceRequest.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 UpdateSpaceRequest private constructor(builder: Builder) {
    /**
     * A description for the private re:Post. This is used only to help you identify this private re:Post.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The IAM role that grants permissions to the private re:Post to convert unanswered questions into AWS support tickets.
     */
    public val roleArn: kotlin.String? = builder.roleArn
    /**
     * The unique ID of this private re:Post.
     */
    public val spaceId: kotlin.String? = builder.spaceId
    /**
     * The pricing tier of this private re:Post.
     */
    public val tier: aws.sdk.kotlin.services.repostspace.model.TierLevel? = builder.tier

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateSpaceRequest(")
        append("description=*** Sensitive Data Redacted ***,")
        append("roleArn=$roleArn,")
        append("spaceId=$spaceId,")
        append("tier=$tier")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = description?.hashCode() ?: 0
        result = 31 * result + (roleArn?.hashCode() ?: 0)
        result = 31 * result + (spaceId?.hashCode() ?: 0)
        result = 31 * result + (tier?.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 UpdateSpaceRequest

        if (description != other.description) return false
        if (roleArn != other.roleArn) return false
        if (spaceId != other.spaceId) return false
        if (tier != other.tier) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * A description for the private re:Post. This is used only to help you identify this private re:Post.
         */
        public var description: kotlin.String? = null
        /**
         * The IAM role that grants permissions to the private re:Post to convert unanswered questions into AWS support tickets.
         */
        public var roleArn: kotlin.String? = null
        /**
         * The unique ID of this private re:Post.
         */
        public var spaceId: kotlin.String? = null
        /**
         * The pricing tier of this private re:Post.
         */
        public var tier: aws.sdk.kotlin.services.repostspace.model.TierLevel? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.repostspace.model.UpdateSpaceRequest) : this() {
            this.description = x.description
            this.roleArn = x.roleArn
            this.spaceId = x.spaceId
            this.tier = x.tier
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy