commonMain.aws.sdk.kotlin.services.emrserverless.model.JobDriver.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of emrserverless-jvm Show documentation
Show all versions of emrserverless-jvm Show documentation
The AWS SDK for Kotlin client for EMR Serverless
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.emrserverless.model
/**
* The driver that the job runs on.
*/
public sealed class JobDriver {
/**
* The job driver parameters specified for Hive.
*/
public data class Hive(val value: aws.sdk.kotlin.services.emrserverless.model.Hive) : aws.sdk.kotlin.services.emrserverless.model.JobDriver() {
}
/**
* The job driver parameters specified for Spark.
*/
public data class SparkSubmit(val value: aws.sdk.kotlin.services.emrserverless.model.SparkSubmit) : aws.sdk.kotlin.services.emrserverless.model.JobDriver() {
}
public object SdkUnknown : aws.sdk.kotlin.services.emrserverless.model.JobDriver() {
}
/**
* Casts this [JobDriver] as a [Hive] and retrieves its [aws.sdk.kotlin.services.emrserverless.model.Hive] value. Throws an exception if the [JobDriver] is not a
* [Hive].
*/
public fun asHive(): aws.sdk.kotlin.services.emrserverless.model.Hive = (this as JobDriver.Hive).value
/**
* Casts this [JobDriver] as a [Hive] and retrieves its [aws.sdk.kotlin.services.emrserverless.model.Hive] value. Returns null if the [JobDriver] is not a [Hive].
*/
public fun asHiveOrNull(): aws.sdk.kotlin.services.emrserverless.model.Hive? = (this as? JobDriver.Hive)?.value
/**
* Casts this [JobDriver] as a [SparkSubmit] and retrieves its [aws.sdk.kotlin.services.emrserverless.model.SparkSubmit] value. Throws an exception if the [JobDriver] is not a
* [SparkSubmit].
*/
public fun asSparkSubmit(): aws.sdk.kotlin.services.emrserverless.model.SparkSubmit = (this as JobDriver.SparkSubmit).value
/**
* Casts this [JobDriver] as a [SparkSubmit] and retrieves its [aws.sdk.kotlin.services.emrserverless.model.SparkSubmit] value. Returns null if the [JobDriver] is not a [SparkSubmit].
*/
public fun asSparkSubmitOrNull(): aws.sdk.kotlin.services.emrserverless.model.SparkSubmit? = (this as? JobDriver.SparkSubmit)?.value
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy