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

commonMain.aws.sdk.kotlin.services.nimble.model.GetLaunchProfileDetailsResponse.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 GetLaunchProfileDetailsResponse private constructor(builder: Builder) {
    /**
     * The launch profile.
     */
    public val launchProfile: aws.sdk.kotlin.services.nimble.model.LaunchProfile? = builder.launchProfile
    /**
     * A collection of streaming images.
     */
    public val streamingImages: List? = builder.streamingImages
    /**
     * A collection of studio component summaries.
     */
    public val studioComponentSummaries: List? = builder.studioComponentSummaries

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

    override fun toString(): kotlin.String = buildString {
        append("GetLaunchProfileDetailsResponse(")
        append("launchProfile=$launchProfile,")
        append("streamingImages=$streamingImages,")
        append("studioComponentSummaries=$studioComponentSummaries")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = launchProfile?.hashCode() ?: 0
        result = 31 * result + (streamingImages?.hashCode() ?: 0)
        result = 31 * result + (studioComponentSummaries?.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 GetLaunchProfileDetailsResponse

        if (launchProfile != other.launchProfile) return false
        if (streamingImages != other.streamingImages) return false
        if (studioComponentSummaries != other.studioComponentSummaries) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The launch profile.
         */
        public var launchProfile: aws.sdk.kotlin.services.nimble.model.LaunchProfile? = null
        /**
         * A collection of streaming images.
         */
        public var streamingImages: List? = null
        /**
         * A collection of studio component summaries.
         */
        public var studioComponentSummaries: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.nimble.model.GetLaunchProfileDetailsResponse) : this() {
            this.launchProfile = x.launchProfile
            this.streamingImages = x.streamingImages
            this.studioComponentSummaries = x.studioComponentSummaries
        }

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy