commonMain.aws.sdk.kotlin.services.deadline.model.JobEntityIdentifiersUnion.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deadline-jvm Show documentation
Show all versions of deadline-jvm Show documentation
The AWS SDK for Kotlin client for deadline
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.deadline.model
/**
* The details of a job entity identifier.
*/
public sealed class JobEntityIdentifiersUnion {
/**
* The environment details.
*/
public data class EnvironmentDetails(val value: aws.sdk.kotlin.services.deadline.model.EnvironmentDetailsIdentifiers) : aws.sdk.kotlin.services.deadline.model.JobEntityIdentifiersUnion() {
}
/**
* The job attachment details.
*/
public data class JobAttachmentDetails(val value: aws.sdk.kotlin.services.deadline.model.JobAttachmentDetailsIdentifiers) : aws.sdk.kotlin.services.deadline.model.JobEntityIdentifiersUnion() {
}
/**
* The job details.
*/
public data class JobDetails(val value: aws.sdk.kotlin.services.deadline.model.JobDetailsIdentifiers) : aws.sdk.kotlin.services.deadline.model.JobEntityIdentifiersUnion() {
}
/**
* The step details.
*/
public data class StepDetails(val value: aws.sdk.kotlin.services.deadline.model.StepDetailsIdentifiers) : aws.sdk.kotlin.services.deadline.model.JobEntityIdentifiersUnion() {
}
public object SdkUnknown : aws.sdk.kotlin.services.deadline.model.JobEntityIdentifiersUnion() {
}
/**
* Casts this [JobEntityIdentifiersUnion] as a [EnvironmentDetails] and retrieves its [aws.sdk.kotlin.services.deadline.model.EnvironmentDetailsIdentifiers] value. Throws an exception if the [JobEntityIdentifiersUnion] is not a
* [EnvironmentDetails].
*/
public fun asEnvironmentDetails(): aws.sdk.kotlin.services.deadline.model.EnvironmentDetailsIdentifiers = (this as JobEntityIdentifiersUnion.EnvironmentDetails).value
/**
* Casts this [JobEntityIdentifiersUnion] as a [EnvironmentDetails] and retrieves its [aws.sdk.kotlin.services.deadline.model.EnvironmentDetailsIdentifiers] value. Returns null if the [JobEntityIdentifiersUnion] is not a [EnvironmentDetails].
*/
public fun asEnvironmentDetailsOrNull(): aws.sdk.kotlin.services.deadline.model.EnvironmentDetailsIdentifiers? = (this as? JobEntityIdentifiersUnion.EnvironmentDetails)?.value
/**
* Casts this [JobEntityIdentifiersUnion] as a [JobAttachmentDetails] and retrieves its [aws.sdk.kotlin.services.deadline.model.JobAttachmentDetailsIdentifiers] value. Throws an exception if the [JobEntityIdentifiersUnion] is not a
* [JobAttachmentDetails].
*/
public fun asJobAttachmentDetails(): aws.sdk.kotlin.services.deadline.model.JobAttachmentDetailsIdentifiers = (this as JobEntityIdentifiersUnion.JobAttachmentDetails).value
/**
* Casts this [JobEntityIdentifiersUnion] as a [JobAttachmentDetails] and retrieves its [aws.sdk.kotlin.services.deadline.model.JobAttachmentDetailsIdentifiers] value. Returns null if the [JobEntityIdentifiersUnion] is not a [JobAttachmentDetails].
*/
public fun asJobAttachmentDetailsOrNull(): aws.sdk.kotlin.services.deadline.model.JobAttachmentDetailsIdentifiers? = (this as? JobEntityIdentifiersUnion.JobAttachmentDetails)?.value
/**
* Casts this [JobEntityIdentifiersUnion] as a [JobDetails] and retrieves its [aws.sdk.kotlin.services.deadline.model.JobDetailsIdentifiers] value. Throws an exception if the [JobEntityIdentifiersUnion] is not a
* [JobDetails].
*/
public fun asJobDetails(): aws.sdk.kotlin.services.deadline.model.JobDetailsIdentifiers = (this as JobEntityIdentifiersUnion.JobDetails).value
/**
* Casts this [JobEntityIdentifiersUnion] as a [JobDetails] and retrieves its [aws.sdk.kotlin.services.deadline.model.JobDetailsIdentifiers] value. Returns null if the [JobEntityIdentifiersUnion] is not a [JobDetails].
*/
public fun asJobDetailsOrNull(): aws.sdk.kotlin.services.deadline.model.JobDetailsIdentifiers? = (this as? JobEntityIdentifiersUnion.JobDetails)?.value
/**
* Casts this [JobEntityIdentifiersUnion] as a [StepDetails] and retrieves its [aws.sdk.kotlin.services.deadline.model.StepDetailsIdentifiers] value. Throws an exception if the [JobEntityIdentifiersUnion] is not a
* [StepDetails].
*/
public fun asStepDetails(): aws.sdk.kotlin.services.deadline.model.StepDetailsIdentifiers = (this as JobEntityIdentifiersUnion.StepDetails).value
/**
* Casts this [JobEntityIdentifiersUnion] as a [StepDetails] and retrieves its [aws.sdk.kotlin.services.deadline.model.StepDetailsIdentifiers] value. Returns null if the [JobEntityIdentifiersUnion] is not a [StepDetails].
*/
public fun asStepDetailsOrNull(): aws.sdk.kotlin.services.deadline.model.StepDetailsIdentifiers? = (this as? JobEntityIdentifiersUnion.StepDetails)?.value
}