commonMain.aws.sdk.kotlin.services.devicefarm.model.GetDevicePoolCompatibilityRequest.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 request to the get device pool compatibility operation.
*/
public class GetDevicePoolCompatibilityRequest private constructor(builder: Builder) {
/**
* The ARN of the app that is associated with the specified device pool.
*/
public val appArn: kotlin.String? = builder.appArn
/**
* An object that contains information about the settings for a run.
*/
public val configuration: aws.sdk.kotlin.services.devicefarm.model.ScheduleRunConfiguration? = builder.configuration
/**
* The device pool's ARN.
*/
public val devicePoolArn: kotlin.String? = builder.devicePoolArn
/**
* Information about the uploaded test to be run against the device pool.
*/
public val test: aws.sdk.kotlin.services.devicefarm.model.ScheduleRunTest? = builder.test
/**
* The test type for the specified device pool.
*
* Allowed values include the following:
* + BUILTIN_FUZZ.
* + APPIUM_JAVA_JUNIT.
* + APPIUM_JAVA_TESTNG.
* + APPIUM_PYTHON.
* + APPIUM_NODE.
* + APPIUM_RUBY.
* + APPIUM_WEB_JAVA_JUNIT.
* + APPIUM_WEB_JAVA_TESTNG.
* + APPIUM_WEB_PYTHON.
* + APPIUM_WEB_NODE.
* + APPIUM_WEB_RUBY.
* + INSTRUMENTATION.
* + XCTEST.
* + XCTEST_UI.
*/
public val testType: aws.sdk.kotlin.services.devicefarm.model.TestType? = builder.testType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.devicefarm.model.GetDevicePoolCompatibilityRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetDevicePoolCompatibilityRequest(")
append("appArn=$appArn,")
append("configuration=$configuration,")
append("devicePoolArn=$devicePoolArn,")
append("test=$test,")
append("testType=$testType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = appArn?.hashCode() ?: 0
result = 31 * result + (configuration?.hashCode() ?: 0)
result = 31 * result + (devicePoolArn?.hashCode() ?: 0)
result = 31 * result + (test?.hashCode() ?: 0)
result = 31 * result + (testType?.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 GetDevicePoolCompatibilityRequest
if (appArn != other.appArn) return false
if (configuration != other.configuration) return false
if (devicePoolArn != other.devicePoolArn) return false
if (test != other.test) return false
if (testType != other.testType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.devicefarm.model.GetDevicePoolCompatibilityRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ARN of the app that is associated with the specified device pool.
*/
public var appArn: kotlin.String? = null
/**
* An object that contains information about the settings for a run.
*/
public var configuration: aws.sdk.kotlin.services.devicefarm.model.ScheduleRunConfiguration? = null
/**
* The device pool's ARN.
*/
public var devicePoolArn: kotlin.String? = null
/**
* Information about the uploaded test to be run against the device pool.
*/
public var test: aws.sdk.kotlin.services.devicefarm.model.ScheduleRunTest? = null
/**
* The test type for the specified device pool.
*
* Allowed values include the following:
* + BUILTIN_FUZZ.
* + APPIUM_JAVA_JUNIT.
* + APPIUM_JAVA_TESTNG.
* + APPIUM_PYTHON.
* + APPIUM_NODE.
* + APPIUM_RUBY.
* + APPIUM_WEB_JAVA_JUNIT.
* + APPIUM_WEB_JAVA_TESTNG.
* + APPIUM_WEB_PYTHON.
* + APPIUM_WEB_NODE.
* + APPIUM_WEB_RUBY.
* + INSTRUMENTATION.
* + XCTEST.
* + XCTEST_UI.
*/
public var testType: aws.sdk.kotlin.services.devicefarm.model.TestType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.devicefarm.model.GetDevicePoolCompatibilityRequest) : this() {
this.appArn = x.appArn
this.configuration = x.configuration
this.devicePoolArn = x.devicePoolArn
this.test = x.test
this.testType = x.testType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.devicefarm.model.GetDevicePoolCompatibilityRequest = GetDevicePoolCompatibilityRequest(this)
/**
* construct an [aws.sdk.kotlin.services.devicefarm.model.ScheduleRunConfiguration] inside the given [block]
*/
public fun configuration(block: aws.sdk.kotlin.services.devicefarm.model.ScheduleRunConfiguration.Builder.() -> kotlin.Unit) {
this.configuration = aws.sdk.kotlin.services.devicefarm.model.ScheduleRunConfiguration.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.devicefarm.model.ScheduleRunTest] inside the given [block]
*/
public fun test(block: aws.sdk.kotlin.services.devicefarm.model.ScheduleRunTest.Builder.() -> kotlin.Unit) {
this.test = aws.sdk.kotlin.services.devicefarm.model.ScheduleRunTest.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}