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

commonMain.aws.sdk.kotlin.services.devicefarm.model.TestGridSessionArtifact.kt Maven / Gradle / Ivy

There is a newer version: 1.3.76
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.devicefarm.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Artifacts are video and other files that are produced in the process of running a browser in an automated context.
 *
 * Video elements might be broken up into multiple artifacts as they grow in size during creation.
 */
public class TestGridSessionArtifact private constructor(builder: Builder) {
    /**
     * The file name of the artifact.
     */
    public val filename: kotlin.String? = builder.filename
    /**
     * The kind of artifact.
     */
    public val type: aws.sdk.kotlin.services.devicefarm.model.TestGridSessionArtifactType? = builder.type
    /**
     * A semi-stable URL to the content of the object.
     */
    public val url: kotlin.String? = builder.url

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

    override fun toString(): kotlin.String = buildString {
        append("TestGridSessionArtifact(")
        append("filename=$filename,")
        append("type=$type,")
        append("url=*** Sensitive Data Redacted ***")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = filename?.hashCode() ?: 0
        result = 31 * result + (type?.hashCode() ?: 0)
        result = 31 * result + (url?.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 TestGridSessionArtifact

        if (filename != other.filename) return false
        if (type != other.type) return false
        if (url != other.url) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The file name of the artifact.
         */
        public var filename: kotlin.String? = null
        /**
         * The kind of artifact.
         */
        public var type: aws.sdk.kotlin.services.devicefarm.model.TestGridSessionArtifactType? = null
        /**
         * A semi-stable URL to the content of the object.
         */
        public var url: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.devicefarm.model.TestGridSessionArtifact) : this() {
            this.filename = x.filename
            this.type = x.type
            this.url = x.url
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy