![JAR search and dependency download from the Maven repository](/logo.png)
commonMain.aws.sdk.kotlin.services.devicefarm.model.DeviceInstance.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.devicefarm.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Represents the device instance.
*/
public class DeviceInstance private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the device instance.
*/
public val arn: kotlin.String? = builder.arn
/**
* The ARN of the device.
*/
public val deviceArn: kotlin.String? = builder.deviceArn
/**
* A object that contains information about the instance profile.
*/
public val instanceProfile: aws.sdk.kotlin.services.devicefarm.model.InstanceProfile? = builder.instanceProfile
/**
* An array of strings that describe the device instance.
*/
public val labels: List? = builder.labels
/**
* The status of the device instance. Valid values are listed here.
*/
public val status: aws.sdk.kotlin.services.devicefarm.model.InstanceStatus? = builder.status
/**
* Unique device identifier for the device instance.
*/
public val udid: kotlin.String? = builder.udid
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.devicefarm.model.DeviceInstance = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeviceInstance(")
append("arn=$arn,")
append("deviceArn=$deviceArn,")
append("instanceProfile=$instanceProfile,")
append("labels=$labels,")
append("status=$status,")
append("udid=$udid")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn?.hashCode() ?: 0
result = 31 * result + (deviceArn?.hashCode() ?: 0)
result = 31 * result + (instanceProfile?.hashCode() ?: 0)
result = 31 * result + (labels?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (udid?.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 DeviceInstance
if (arn != other.arn) return false
if (deviceArn != other.deviceArn) return false
if (instanceProfile != other.instanceProfile) return false
if (labels != other.labels) return false
if (status != other.status) return false
if (udid != other.udid) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.devicefarm.model.DeviceInstance = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the device instance.
*/
public var arn: kotlin.String? = null
/**
* The ARN of the device.
*/
public var deviceArn: kotlin.String? = null
/**
* A object that contains information about the instance profile.
*/
public var instanceProfile: aws.sdk.kotlin.services.devicefarm.model.InstanceProfile? = null
/**
* An array of strings that describe the device instance.
*/
public var labels: List? = null
/**
* The status of the device instance. Valid values are listed here.
*/
public var status: aws.sdk.kotlin.services.devicefarm.model.InstanceStatus? = null
/**
* Unique device identifier for the device instance.
*/
public var udid: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.devicefarm.model.DeviceInstance) : this() {
this.arn = x.arn
this.deviceArn = x.deviceArn
this.instanceProfile = x.instanceProfile
this.labels = x.labels
this.status = x.status
this.udid = x.udid
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.devicefarm.model.DeviceInstance = DeviceInstance(this)
/**
* construct an [aws.sdk.kotlin.services.devicefarm.model.InstanceProfile] inside the given [block]
*/
public fun instanceProfile(block: aws.sdk.kotlin.services.devicefarm.model.InstanceProfile.Builder.() -> kotlin.Unit) {
this.instanceProfile = aws.sdk.kotlin.services.devicefarm.model.InstanceProfile.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy