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

commonMain.aws.sdk.kotlin.services.nimble.model.StreamingImage.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

/**
 * Represents a streaming image resource.
 *
 * Streaming images are used by studio users to select which operating system and software they want to use in a Nimble Studio streaming session.
 *
 * Amazon provides a number of streaming images that include popular 3rd-party software.
 *
 * You can create your own streaming images using an Amazon EC2 machine image that you create for this purpose. You can also include software that your users require.
 */
public class StreamingImage private constructor(builder: Builder) {
    /**
     * The Amazon Resource Name (ARN) that is assigned to a studio resource and uniquely identifies it. ARNs are unique across all Regions.
     */
    public val arn: kotlin.String? = builder.arn
    /**
     * A human-readable description of the streaming image.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The ID of an EC2 machine image with which to create the streaming image.
     */
    public val ec2ImageId: kotlin.String? = builder.ec2ImageId
    /**
     * The encryption configuration.
     */
    public val encryptionConfiguration: aws.sdk.kotlin.services.nimble.model.StreamingImageEncryptionConfiguration? = builder.encryptionConfiguration
    /**
     * The list of EULAs that must be accepted before a Streaming Session can be started using this streaming image.
     */
    public val eulaIds: List? = builder.eulaIds
    /**
     * A friendly name for a streaming image resource.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The owner of the streaming image, either the `studioId` that contains the streaming image, or `amazon` for images that are provided by Amazon Nimble Studio.
     */
    public val owner: kotlin.String? = builder.owner
    /**
     * The platform of the streaming image, either Windows or Linux.
     */
    public val platform: kotlin.String? = builder.platform
    /**
     * The current state.
     */
    public val state: aws.sdk.kotlin.services.nimble.model.StreamingImageState? = builder.state
    /**
     * The status code.
     */
    public val statusCode: aws.sdk.kotlin.services.nimble.model.StreamingImageStatusCode? = builder.statusCode
    /**
     * The status message for the streaming image.
     */
    public val statusMessage: kotlin.String? = builder.statusMessage
    /**
     * The ID of the streaming image.
     */
    public val streamingImageId: kotlin.String? = builder.streamingImageId
    /**
     * A collection of labels, in the form of key-value pairs, that apply to this resource.
     */
    public val tags: Map? = builder.tags

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

    override fun toString(): kotlin.String = buildString {
        append("StreamingImage(")
        append("arn=$arn,")
        append("description=*** Sensitive Data Redacted ***,")
        append("ec2ImageId=$ec2ImageId,")
        append("encryptionConfiguration=$encryptionConfiguration,")
        append("eulaIds=$eulaIds,")
        append("name=*** Sensitive Data Redacted ***,")
        append("owner=$owner,")
        append("platform=$platform,")
        append("state=$state,")
        append("statusCode=$statusCode,")
        append("statusMessage=$statusMessage,")
        append("streamingImageId=$streamingImageId,")
        append("tags=$tags")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = arn?.hashCode() ?: 0
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (ec2ImageId?.hashCode() ?: 0)
        result = 31 * result + (encryptionConfiguration?.hashCode() ?: 0)
        result = 31 * result + (eulaIds?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (owner?.hashCode() ?: 0)
        result = 31 * result + (platform?.hashCode() ?: 0)
        result = 31 * result + (state?.hashCode() ?: 0)
        result = 31 * result + (statusCode?.hashCode() ?: 0)
        result = 31 * result + (statusMessage?.hashCode() ?: 0)
        result = 31 * result + (streamingImageId?.hashCode() ?: 0)
        result = 31 * result + (tags?.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 StreamingImage

        if (arn != other.arn) return false
        if (description != other.description) return false
        if (ec2ImageId != other.ec2ImageId) return false
        if (encryptionConfiguration != other.encryptionConfiguration) return false
        if (eulaIds != other.eulaIds) return false
        if (name != other.name) return false
        if (owner != other.owner) return false
        if (platform != other.platform) return false
        if (state != other.state) return false
        if (statusCode != other.statusCode) return false
        if (statusMessage != other.statusMessage) return false
        if (streamingImageId != other.streamingImageId) return false
        if (tags != other.tags) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The Amazon Resource Name (ARN) that is assigned to a studio resource and uniquely identifies it. ARNs are unique across all Regions.
         */
        public var arn: kotlin.String? = null
        /**
         * A human-readable description of the streaming image.
         */
        public var description: kotlin.String? = null
        /**
         * The ID of an EC2 machine image with which to create the streaming image.
         */
        public var ec2ImageId: kotlin.String? = null
        /**
         * The encryption configuration.
         */
        public var encryptionConfiguration: aws.sdk.kotlin.services.nimble.model.StreamingImageEncryptionConfiguration? = null
        /**
         * The list of EULAs that must be accepted before a Streaming Session can be started using this streaming image.
         */
        public var eulaIds: List? = null
        /**
         * A friendly name for a streaming image resource.
         */
        public var name: kotlin.String? = null
        /**
         * The owner of the streaming image, either the `studioId` that contains the streaming image, or `amazon` for images that are provided by Amazon Nimble Studio.
         */
        public var owner: kotlin.String? = null
        /**
         * The platform of the streaming image, either Windows or Linux.
         */
        public var platform: kotlin.String? = null
        /**
         * The current state.
         */
        public var state: aws.sdk.kotlin.services.nimble.model.StreamingImageState? = null
        /**
         * The status code.
         */
        public var statusCode: aws.sdk.kotlin.services.nimble.model.StreamingImageStatusCode? = null
        /**
         * The status message for the streaming image.
         */
        public var statusMessage: kotlin.String? = null
        /**
         * The ID of the streaming image.
         */
        public var streamingImageId: kotlin.String? = null
        /**
         * A collection of labels, in the form of key-value pairs, that apply to this resource.
         */
        public var tags: Map? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.nimble.model.StreamingImage) : this() {
            this.arn = x.arn
            this.description = x.description
            this.ec2ImageId = x.ec2ImageId
            this.encryptionConfiguration = x.encryptionConfiguration
            this.eulaIds = x.eulaIds
            this.name = x.name
            this.owner = x.owner
            this.platform = x.platform
            this.state = x.state
            this.statusCode = x.statusCode
            this.statusMessage = x.statusMessage
            this.streamingImageId = x.streamingImageId
            this.tags = x.tags
        }

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy