zio.aws.tnb.model.TaskStatus.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zio-aws-tnb_3 Show documentation
Show all versions of zio-aws-tnb_3 Show documentation
Low-level AWS wrapper for ZIO
package zio.aws.tnb.model
import scala.jdk.CollectionConverters.*
sealed trait TaskStatus {
def unwrap: software.amazon.awssdk.services.tnb.model.TaskStatus
}
object TaskStatus {
def wrap(
value: software.amazon.awssdk.services.tnb.model.TaskStatus
): zio.aws.tnb.model.TaskStatus = value match {
case software.amazon.awssdk.services.tnb.model.TaskStatus.UNKNOWN_TO_SDK_VERSION =>
val r = unknownToSdkVersion
r
case software.amazon.awssdk.services.tnb.model.TaskStatus.SCHEDULED =>
val r = SCHEDULED
r
case software.amazon.awssdk.services.tnb.model.TaskStatus.STARTED =>
val r = STARTED
r
case software.amazon.awssdk.services.tnb.model.TaskStatus.IN_PROGRESS =>
val r = IN_PROGRESS
r
case software.amazon.awssdk.services.tnb.model.TaskStatus.COMPLETED =>
val r = COMPLETED
r
case software.amazon.awssdk.services.tnb.model.TaskStatus.ERROR =>
val r = ERROR
r
case software.amazon.awssdk.services.tnb.model.TaskStatus.SKIPPED =>
val r = SKIPPED
r
case software.amazon.awssdk.services.tnb.model.TaskStatus.CANCELLED =>
val r = CANCELLED
r
}
case object unknownToSdkVersion extends zio.aws.tnb.model.TaskStatus {
override def unwrap: software.amazon.awssdk.services.tnb.model.TaskStatus =
software.amazon.awssdk.services.tnb.model.TaskStatus.UNKNOWN_TO_SDK_VERSION
}
case object SCHEDULED extends zio.aws.tnb.model.TaskStatus {
override def unwrap: software.amazon.awssdk.services.tnb.model.TaskStatus =
software.amazon.awssdk.services.tnb.model.TaskStatus.SCHEDULED
}
case object STARTED extends zio.aws.tnb.model.TaskStatus {
override def unwrap: software.amazon.awssdk.services.tnb.model.TaskStatus =
software.amazon.awssdk.services.tnb.model.TaskStatus.STARTED
}
case object IN_PROGRESS extends zio.aws.tnb.model.TaskStatus {
override def unwrap: software.amazon.awssdk.services.tnb.model.TaskStatus =
software.amazon.awssdk.services.tnb.model.TaskStatus.IN_PROGRESS
}
case object COMPLETED extends zio.aws.tnb.model.TaskStatus {
override def unwrap: software.amazon.awssdk.services.tnb.model.TaskStatus =
software.amazon.awssdk.services.tnb.model.TaskStatus.COMPLETED
}
case object ERROR extends zio.aws.tnb.model.TaskStatus {
override def unwrap: software.amazon.awssdk.services.tnb.model.TaskStatus =
software.amazon.awssdk.services.tnb.model.TaskStatus.ERROR
}
case object SKIPPED extends zio.aws.tnb.model.TaskStatus {
override def unwrap: software.amazon.awssdk.services.tnb.model.TaskStatus =
software.amazon.awssdk.services.tnb.model.TaskStatus.SKIPPED
}
case object CANCELLED extends zio.aws.tnb.model.TaskStatus {
override def unwrap: software.amazon.awssdk.services.tnb.model.TaskStatus =
software.amazon.awssdk.services.tnb.model.TaskStatus.CANCELLED
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy