commonMain.aws.sdk.kotlin.services.devicefarm.model.Artifact.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
/**
* Represents the output of a test. Examples of artifacts include logs and screenshots.
*/
public class Artifact private constructor(builder: Builder) {
/**
* The artifact's ARN.
*/
public val arn: kotlin.String? = builder.arn
/**
* The artifact's file extension.
*/
public val extension: kotlin.String? = builder.extension
/**
* The artifact's name.
*/
public val name: kotlin.String? = builder.name
/**
* The artifact's type.
*
* Allowed values include the following:
* + UNKNOWN
* + SCREENSHOT
* + DEVICE_LOG
* + MESSAGE_LOG
* + VIDEO_LOG
* + RESULT_LOG
* + SERVICE_LOG
* + WEBKIT_LOG
* + INSTRUMENTATION_OUTPUT
* + EXERCISER_MONKEY_OUTPUT: the artifact (log) generated by an Android fuzz test.
* + APPIUM_SERVER_OUTPUT
* + APPIUM_JAVA_OUTPUT
* + APPIUM_JAVA_XML_OUTPUT
* + APPIUM_PYTHON_OUTPUT
* + APPIUM_PYTHON_XML_OUTPUT
* + APPLICATION_CRASH_REPORT
* + XCTEST_LOG
* + VIDEO
* + CUSTOMER_ARTIFACT
* + CUSTOMER_ARTIFACT_LOG
* + TESTSPEC_OUTPUT
*/
public val type: aws.sdk.kotlin.services.devicefarm.model.ArtifactType? = builder.type
/**
* The presigned Amazon S3 URL that can be used with a GET request to download the artifact's file.
*/
public val url: kotlin.String? = builder.url
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.devicefarm.model.Artifact = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Artifact(")
append("arn=$arn,")
append("extension=$extension,")
append("name=$name,")
append("type=$type,")
append("url=$url")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn?.hashCode() ?: 0
result = 31 * result + (extension?.hashCode() ?: 0)
result = 31 * result + (name?.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 Artifact
if (arn != other.arn) return false
if (extension != other.extension) return false
if (name != other.name) 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.Artifact = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The artifact's ARN.
*/
public var arn: kotlin.String? = null
/**
* The artifact's file extension.
*/
public var extension: kotlin.String? = null
/**
* The artifact's name.
*/
public var name: kotlin.String? = null
/**
* The artifact's type.
*
* Allowed values include the following:
* + UNKNOWN
* + SCREENSHOT
* + DEVICE_LOG
* + MESSAGE_LOG
* + VIDEO_LOG
* + RESULT_LOG
* + SERVICE_LOG
* + WEBKIT_LOG
* + INSTRUMENTATION_OUTPUT
* + EXERCISER_MONKEY_OUTPUT: the artifact (log) generated by an Android fuzz test.
* + APPIUM_SERVER_OUTPUT
* + APPIUM_JAVA_OUTPUT
* + APPIUM_JAVA_XML_OUTPUT
* + APPIUM_PYTHON_OUTPUT
* + APPIUM_PYTHON_XML_OUTPUT
* + APPLICATION_CRASH_REPORT
* + XCTEST_LOG
* + VIDEO
* + CUSTOMER_ARTIFACT
* + CUSTOMER_ARTIFACT_LOG
* + TESTSPEC_OUTPUT
*/
public var type: aws.sdk.kotlin.services.devicefarm.model.ArtifactType? = null
/**
* The presigned Amazon S3 URL that can be used with a GET request to download the artifact's file.
*/
public var url: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.devicefarm.model.Artifact) : this() {
this.arn = x.arn
this.extension = x.extension
this.name = x.name
this.type = x.type
this.url = x.url
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.devicefarm.model.Artifact = Artifact(this)
internal fun correctErrors(): Builder {
return this
}
}
}