![JAR search and dependency download from the Maven repository](/logo.png)
commonMain.aws.sdk.kotlin.services.devicefarm.model.GetDevicePoolCompatibilityResponse.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 result of describe device pool compatibility request.
*/
public class GetDevicePoolCompatibilityResponse private constructor(builder: Builder) {
/**
* Information about compatible devices.
*/
public val compatibleDevices: List? = builder.compatibleDevices
/**
* Information about incompatible devices.
*/
public val incompatibleDevices: List? = builder.incompatibleDevices
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.devicefarm.model.GetDevicePoolCompatibilityResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetDevicePoolCompatibilityResponse(")
append("compatibleDevices=$compatibleDevices,")
append("incompatibleDevices=$incompatibleDevices")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = compatibleDevices?.hashCode() ?: 0
result = 31 * result + (incompatibleDevices?.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 GetDevicePoolCompatibilityResponse
if (compatibleDevices != other.compatibleDevices) return false
if (incompatibleDevices != other.incompatibleDevices) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.devicefarm.model.GetDevicePoolCompatibilityResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Information about compatible devices.
*/
public var compatibleDevices: List? = null
/**
* Information about incompatible devices.
*/
public var incompatibleDevices: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.devicefarm.model.GetDevicePoolCompatibilityResponse) : this() {
this.compatibleDevices = x.compatibleDevices
this.incompatibleDevices = x.incompatibleDevices
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.devicefarm.model.GetDevicePoolCompatibilityResponse = GetDevicePoolCompatibilityResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy