commonMain.aws.sdk.kotlin.services.devicefarm.model.DevicePoolCompatibilityResult.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 a device pool compatibility result.
*/
public class DevicePoolCompatibilityResult private constructor(builder: Builder) {
/**
* Whether the result was compatible with the device pool.
*/
public val compatible: kotlin.Boolean? = builder.compatible
/**
* The device (phone or tablet) to return information about.
*/
public val device: aws.sdk.kotlin.services.devicefarm.model.Device? = builder.device
/**
* Information about the compatibility.
*/
public val incompatibilityMessages: List? = builder.incompatibilityMessages
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.devicefarm.model.DevicePoolCompatibilityResult = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DevicePoolCompatibilityResult(")
append("compatible=$compatible,")
append("device=$device,")
append("incompatibilityMessages=$incompatibilityMessages")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = compatible?.hashCode() ?: 0
result = 31 * result + (device?.hashCode() ?: 0)
result = 31 * result + (incompatibilityMessages?.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 DevicePoolCompatibilityResult
if (compatible != other.compatible) return false
if (device != other.device) return false
if (incompatibilityMessages != other.incompatibilityMessages) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.devicefarm.model.DevicePoolCompatibilityResult = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Whether the result was compatible with the device pool.
*/
public var compatible: kotlin.Boolean? = null
/**
* The device (phone or tablet) to return information about.
*/
public var device: aws.sdk.kotlin.services.devicefarm.model.Device? = null
/**
* Information about the compatibility.
*/
public var incompatibilityMessages: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.devicefarm.model.DevicePoolCompatibilityResult) : this() {
this.compatible = x.compatible
this.device = x.device
this.incompatibilityMessages = x.incompatibilityMessages
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.devicefarm.model.DevicePoolCompatibilityResult = DevicePoolCompatibilityResult(this)
/**
* construct an [aws.sdk.kotlin.services.devicefarm.model.Device] inside the given [block]
*/
public fun device(block: aws.sdk.kotlin.services.devicefarm.model.Device.Builder.() -> kotlin.Unit) {
this.device = aws.sdk.kotlin.services.devicefarm.model.Device.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}