commonMain.aws.sdk.kotlin.services.deadline.model.GetJobEntityError.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 error for the job entity.
*/
public sealed class GetJobEntityError {
/**
* The environment details for the failed job entity.
*/
public data class EnvironmentDetails(val value: aws.sdk.kotlin.services.deadline.model.EnvironmentDetailsError) : aws.sdk.kotlin.services.deadline.model.GetJobEntityError() {
}
/**
* The job attachment details for the failed job entity.
*/
public data class JobAttachmentDetails(val value: aws.sdk.kotlin.services.deadline.model.JobAttachmentDetailsError) : aws.sdk.kotlin.services.deadline.model.GetJobEntityError() {
}
/**
* The job details for the failed job entity.
*/
public data class JobDetails(val value: aws.sdk.kotlin.services.deadline.model.JobDetailsError) : aws.sdk.kotlin.services.deadline.model.GetJobEntityError() {
}
/**
* The step details for the failed job entity.
*/
public data class StepDetails(val value: aws.sdk.kotlin.services.deadline.model.StepDetailsError) : aws.sdk.kotlin.services.deadline.model.GetJobEntityError() {
}
public object SdkUnknown : aws.sdk.kotlin.services.deadline.model.GetJobEntityError() {
}
/**
* Casts this [GetJobEntityError] as a [EnvironmentDetails] and retrieves its [aws.sdk.kotlin.services.deadline.model.EnvironmentDetailsError] value. Throws an exception if the [GetJobEntityError] is not a
* [EnvironmentDetails].
*/
public fun asEnvironmentDetails(): aws.sdk.kotlin.services.deadline.model.EnvironmentDetailsError = (this as GetJobEntityError.EnvironmentDetails).value
/**
* Casts this [GetJobEntityError] as a [EnvironmentDetails] and retrieves its [aws.sdk.kotlin.services.deadline.model.EnvironmentDetailsError] value. Returns null if the [GetJobEntityError] is not a [EnvironmentDetails].
*/
public fun asEnvironmentDetailsOrNull(): aws.sdk.kotlin.services.deadline.model.EnvironmentDetailsError? = (this as? GetJobEntityError.EnvironmentDetails)?.value
/**
* Casts this [GetJobEntityError] as a [JobAttachmentDetails] and retrieves its [aws.sdk.kotlin.services.deadline.model.JobAttachmentDetailsError] value. Throws an exception if the [GetJobEntityError] is not a
* [JobAttachmentDetails].
*/
public fun asJobAttachmentDetails(): aws.sdk.kotlin.services.deadline.model.JobAttachmentDetailsError = (this as GetJobEntityError.JobAttachmentDetails).value
/**
* Casts this [GetJobEntityError] as a [JobAttachmentDetails] and retrieves its [aws.sdk.kotlin.services.deadline.model.JobAttachmentDetailsError] value. Returns null if the [GetJobEntityError] is not a [JobAttachmentDetails].
*/
public fun asJobAttachmentDetailsOrNull(): aws.sdk.kotlin.services.deadline.model.JobAttachmentDetailsError? = (this as? GetJobEntityError.JobAttachmentDetails)?.value
/**
* Casts this [GetJobEntityError] as a [JobDetails] and retrieves its [aws.sdk.kotlin.services.deadline.model.JobDetailsError] value. Throws an exception if the [GetJobEntityError] is not a
* [JobDetails].
*/
public fun asJobDetails(): aws.sdk.kotlin.services.deadline.model.JobDetailsError = (this as GetJobEntityError.JobDetails).value
/**
* Casts this [GetJobEntityError] as a [JobDetails] and retrieves its [aws.sdk.kotlin.services.deadline.model.JobDetailsError] value. Returns null if the [GetJobEntityError] is not a [JobDetails].
*/
public fun asJobDetailsOrNull(): aws.sdk.kotlin.services.deadline.model.JobDetailsError? = (this as? GetJobEntityError.JobDetails)?.value
/**
* Casts this [GetJobEntityError] as a [StepDetails] and retrieves its [aws.sdk.kotlin.services.deadline.model.StepDetailsError] value. Throws an exception if the [GetJobEntityError] is not a
* [StepDetails].
*/
public fun asStepDetails(): aws.sdk.kotlin.services.deadline.model.StepDetailsError = (this as GetJobEntityError.StepDetails).value
/**
* Casts this [GetJobEntityError] as a [StepDetails] and retrieves its [aws.sdk.kotlin.services.deadline.model.StepDetailsError] value. Returns null if the [GetJobEntityError] is not a [StepDetails].
*/
public fun asStepDetailsOrNull(): aws.sdk.kotlin.services.deadline.model.StepDetailsError? = (this as? GetJobEntityError.StepDetails)?.value
}