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

commonMain.aws.sdk.kotlin.services.nimble.model.CreateStudioRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.nimble.model



public class CreateStudioRequest private constructor(builder: Builder) {
    /**
     * The IAM role that studio admins will assume when logging in to the Nimble Studio portal.
     */
    public val adminRoleArn: kotlin.String? = builder.adminRoleArn
    /**
     * Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don’t specify a client token, the Amazon Web Services SDK automatically generates a client token and uses it for the request to ensure idempotency.
     */
    public val clientToken: kotlin.String? = builder.clientToken
    /**
     * A friendly name for the studio.
     */
    public val displayName: kotlin.String? = builder.displayName
    /**
     * The studio encryption configuration.
     */
    public val studioEncryptionConfiguration: aws.sdk.kotlin.services.nimble.model.StudioEncryptionConfiguration? = builder.studioEncryptionConfiguration
    /**
     * The studio name that is used in the URL of the Nimble Studio portal when accessed by Nimble Studio users.
     */
    public val studioName: kotlin.String? = builder.studioName
    /**
     * A collection of labels, in the form of key-value pairs, that apply to this resource.
     */
    public val tags: Map? = builder.tags
    /**
     * The IAM role that studio users will assume when logging in to the Nimble Studio portal.
     */
    public val userRoleArn: kotlin.String? = builder.userRoleArn

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

    override fun toString(): kotlin.String = buildString {
        append("CreateStudioRequest(")
        append("adminRoleArn=$adminRoleArn,")
        append("clientToken=$clientToken,")
        append("displayName=*** Sensitive Data Redacted ***,")
        append("studioEncryptionConfiguration=$studioEncryptionConfiguration,")
        append("studioName=$studioName,")
        append("tags=$tags,")
        append("userRoleArn=$userRoleArn")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = adminRoleArn?.hashCode() ?: 0
        result = 31 * result + (clientToken?.hashCode() ?: 0)
        result = 31 * result + (displayName?.hashCode() ?: 0)
        result = 31 * result + (studioEncryptionConfiguration?.hashCode() ?: 0)
        result = 31 * result + (studioName?.hashCode() ?: 0)
        result = 31 * result + (tags?.hashCode() ?: 0)
        result = 31 * result + (userRoleArn?.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 CreateStudioRequest

        if (adminRoleArn != other.adminRoleArn) return false
        if (clientToken != other.clientToken) return false
        if (displayName != other.displayName) return false
        if (studioEncryptionConfiguration != other.studioEncryptionConfiguration) return false
        if (studioName != other.studioName) return false
        if (tags != other.tags) return false
        if (userRoleArn != other.userRoleArn) return false

        return true
    }

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

    public class Builder {
        /**
         * The IAM role that studio admins will assume when logging in to the Nimble Studio portal.
         */
        public var adminRoleArn: kotlin.String? = null
        /**
         * Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don’t specify a client token, the Amazon Web Services SDK automatically generates a client token and uses it for the request to ensure idempotency.
         */
        public var clientToken: kotlin.String? = null
        /**
         * A friendly name for the studio.
         */
        public var displayName: kotlin.String? = null
        /**
         * The studio encryption configuration.
         */
        public var studioEncryptionConfiguration: aws.sdk.kotlin.services.nimble.model.StudioEncryptionConfiguration? = null
        /**
         * The studio name that is used in the URL of the Nimble Studio portal when accessed by Nimble Studio users.
         */
        public var studioName: kotlin.String? = null
        /**
         * A collection of labels, in the form of key-value pairs, that apply to this resource.
         */
        public var tags: Map? = null
        /**
         * The IAM role that studio users will assume when logging in to the Nimble Studio portal.
         */
        public var userRoleArn: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.nimble.model.CreateStudioRequest) : this() {
            this.adminRoleArn = x.adminRoleArn
            this.clientToken = x.clientToken
            this.displayName = x.displayName
            this.studioEncryptionConfiguration = x.studioEncryptionConfiguration
            this.studioName = x.studioName
            this.tags = x.tags
            this.userRoleArn = x.userRoleArn
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.nimble.model.StudioEncryptionConfiguration] inside the given [block]
         */
        public fun studioEncryptionConfiguration(block: aws.sdk.kotlin.services.nimble.model.StudioEncryptionConfiguration.Builder.() -> kotlin.Unit) {
            this.studioEncryptionConfiguration = aws.sdk.kotlin.services.nimble.model.StudioEncryptionConfiguration.invoke(block)
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy