commonMain.aws.sdk.kotlin.services.devicefarm.model.InstallToRemoteAccessSessionRequest.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 the request to install an Android application (in .apk format) or an iOS application (in .ipa format) as part of a remote access session.
*/
public class InstallToRemoteAccessSessionRequest private constructor(builder: Builder) {
/**
* The ARN of the app about which you are requesting information.
*/
public val appArn: kotlin.String? = builder.appArn
/**
* The Amazon Resource Name (ARN) of the remote access session about which you are requesting information.
*/
public val remoteAccessSessionArn: kotlin.String? = builder.remoteAccessSessionArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.devicefarm.model.InstallToRemoteAccessSessionRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("InstallToRemoteAccessSessionRequest(")
append("appArn=$appArn,")
append("remoteAccessSessionArn=$remoteAccessSessionArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = appArn?.hashCode() ?: 0
result = 31 * result + (remoteAccessSessionArn?.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 InstallToRemoteAccessSessionRequest
if (appArn != other.appArn) return false
if (remoteAccessSessionArn != other.remoteAccessSessionArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.devicefarm.model.InstallToRemoteAccessSessionRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ARN of the app about which you are requesting information.
*/
public var appArn: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) of the remote access session about which you are requesting information.
*/
public var remoteAccessSessionArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.devicefarm.model.InstallToRemoteAccessSessionRequest) : this() {
this.appArn = x.appArn
this.remoteAccessSessionArn = x.remoteAccessSessionArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.devicefarm.model.InstallToRemoteAccessSessionRequest = InstallToRemoteAccessSessionRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}