commonMain.aws.sdk.kotlin.services.devicefarm.model.TestGridSessionArtifact.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of devicefarm-jvm Show documentation
Show all versions of devicefarm-jvm Show documentation
The AWS SDK for Kotlin client for Device Farm
// 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
}
}
}