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

commonMain.aws.sdk.kotlin.services.repostspace.model.CreateSpaceRequest.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 CreateSpaceRequest 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 name for the private re:Post. This must be unique in your account.
     */
    public val name: kotlin.String? = builder.name
    /**
     * 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 subdomain that you use to access your AWS re:Post Private private re:Post. All custom subdomains must be approved by AWS before use. In addition to your custom subdomain, all private re:Posts are issued an AWS generated subdomain for immediate use.
     */
    public val subdomain: kotlin.String? = builder.subdomain
    /**
     * The list of tags associated with the private re:Post.
     */
    public val tags: Map? = builder.tags
    /**
     * The pricing tier for the private re:Post.
     */
    public val tier: aws.sdk.kotlin.services.repostspace.model.TierLevel? = builder.tier
    /**
     * The AWS KMS key ARN that’s used for the AWS KMS encryption. If you don't provide a key, your data is encrypted by default with a key that AWS owns and manages for you.
     */
    public val userKmsKey: kotlin.String? = builder.userKmsKey

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

    override fun toString(): kotlin.String = buildString {
        append("CreateSpaceRequest(")
        append("description=*** Sensitive Data Redacted ***,")
        append("name=*** Sensitive Data Redacted ***,")
        append("roleArn=$roleArn,")
        append("subdomain=$subdomain,")
        append("tags=*** Sensitive Data Redacted ***,")
        append("tier=$tier,")
        append("userKmsKey=$userKmsKey")
        append(")")
    }

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

        if (description != other.description) return false
        if (name != other.name) return false
        if (roleArn != other.roleArn) return false
        if (subdomain != other.subdomain) return false
        if (tags != other.tags) return false
        if (tier != other.tier) return false
        if (userKmsKey != other.userKmsKey) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.repostspace.model.CreateSpaceRequest = 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 name for the private re:Post. This must be unique in your account.
         */
        public var name: 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 subdomain that you use to access your AWS re:Post Private private re:Post. All custom subdomains must be approved by AWS before use. In addition to your custom subdomain, all private re:Posts are issued an AWS generated subdomain for immediate use.
         */
        public var subdomain: kotlin.String? = null
        /**
         * The list of tags associated with the private re:Post.
         */
        public var tags: Map? = null
        /**
         * The pricing tier for the private re:Post.
         */
        public var tier: aws.sdk.kotlin.services.repostspace.model.TierLevel? = null
        /**
         * The AWS KMS key ARN that’s used for the AWS KMS encryption. If you don't provide a key, your data is encrypted by default with a key that AWS owns and manages for you.
         */
        public var userKmsKey: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.repostspace.model.CreateSpaceRequest) : this() {
            this.description = x.description
            this.name = x.name
            this.roleArn = x.roleArn
            this.subdomain = x.subdomain
            this.tags = x.tags
            this.tier = x.tier
            this.userKmsKey = x.userKmsKey
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy