commonMain.aws.sdk.kotlin.services.devicefarm.model.GetDeviceInstanceResponse.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
public class GetDeviceInstanceResponse private constructor(builder: Builder) {
/**
* An object that contains information about your device instance.
*/
public val deviceInstance: aws.sdk.kotlin.services.devicefarm.model.DeviceInstance? = builder.deviceInstance
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.devicefarm.model.GetDeviceInstanceResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetDeviceInstanceResponse(")
append("deviceInstance=$deviceInstance")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = deviceInstance?.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 GetDeviceInstanceResponse
if (deviceInstance != other.deviceInstance) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.devicefarm.model.GetDeviceInstanceResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* An object that contains information about your device instance.
*/
public var deviceInstance: aws.sdk.kotlin.services.devicefarm.model.DeviceInstance? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.devicefarm.model.GetDeviceInstanceResponse) : this() {
this.deviceInstance = x.deviceInstance
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.devicefarm.model.GetDeviceInstanceResponse = GetDeviceInstanceResponse(this)
/**
* construct an [aws.sdk.kotlin.services.devicefarm.model.DeviceInstance] inside the given [block]
*/
public fun deviceInstance(block: aws.sdk.kotlin.services.devicefarm.model.DeviceInstance.Builder.() -> kotlin.Unit) {
this.deviceInstance = aws.sdk.kotlin.services.devicefarm.model.DeviceInstance.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}