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

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

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

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

import aws.smithy.kotlin.runtime.SdkDsl

public class UpdateStudioRequest 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 ID.
     */
    public val studioId: kotlin.String? = builder.studioId
    /**
     * 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.UpdateStudioRequest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("UpdateStudioRequest(")
        append("adminRoleArn=$adminRoleArn,")
        append("clientToken=$clientToken,")
        append("displayName=*** Sensitive Data Redacted ***,")
        append("studioId=$studioId,")
        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 + (studioId?.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 UpdateStudioRequest

        if (adminRoleArn != other.adminRoleArn) return false
        if (clientToken != other.clientToken) return false
        if (displayName != other.displayName) return false
        if (studioId != other.studioId) return false
        if (userRoleArn != other.userRoleArn) return false

        return true
    }

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

    @SdkDsl
    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 ID.
         */
        public var studioId: kotlin.String? = 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.UpdateStudioRequest) : this() {
            this.adminRoleArn = x.adminRoleArn
            this.clientToken = x.clientToken
            this.displayName = x.displayName
            this.studioId = x.studioId
            this.userRoleArn = x.userRoleArn
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy