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

commonMain.aws.sdk.kotlin.services.nimble.model.PutLaunchProfileMembersRequest.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 PutLaunchProfileMembersRequest private constructor(builder: Builder) {
    /**
     * 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
    /**
     * The ID of the identity store.
     */
    public val identityStoreId: kotlin.String? = builder.identityStoreId
    /**
     * The ID of the launch profile used to control access from the streaming session.
     */
    public val launchProfileId: kotlin.String? = builder.launchProfileId
    /**
     * A list of members.
     */
    public val members: List? = builder.members
    /**
     * The studio ID.
     */
    public val studioId: kotlin.String? = builder.studioId

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

    override fun toString(): kotlin.String = buildString {
        append("PutLaunchProfileMembersRequest(")
        append("clientToken=$clientToken,")
        append("identityStoreId=$identityStoreId,")
        append("launchProfileId=$launchProfileId,")
        append("members=$members,")
        append("studioId=$studioId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = clientToken?.hashCode() ?: 0
        result = 31 * result + (identityStoreId?.hashCode() ?: 0)
        result = 31 * result + (launchProfileId?.hashCode() ?: 0)
        result = 31 * result + (members?.hashCode() ?: 0)
        result = 31 * result + (studioId?.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 PutLaunchProfileMembersRequest

        if (clientToken != other.clientToken) return false
        if (identityStoreId != other.identityStoreId) return false
        if (launchProfileId != other.launchProfileId) return false
        if (members != other.members) return false
        if (studioId != other.studioId) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * 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
        /**
         * The ID of the identity store.
         */
        public var identityStoreId: kotlin.String? = null
        /**
         * The ID of the launch profile used to control access from the streaming session.
         */
        public var launchProfileId: kotlin.String? = null
        /**
         * A list of members.
         */
        public var members: List? = null
        /**
         * The studio ID.
         */
        public var studioId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.nimble.model.PutLaunchProfileMembersRequest) : this() {
            this.clientToken = x.clientToken
            this.identityStoreId = x.identityStoreId
            this.launchProfileId = x.launchProfileId
            this.members = x.members
            this.studioId = x.studioId
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy