zio.aws.emrcontainers.model.FailureReason.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zio-aws-emrcontainers_2.12 Show documentation
Show all versions of zio-aws-emrcontainers_2.12 Show documentation
Low-level AWS wrapper for ZIO
The newest version!
package zio.aws.emrcontainers.model
import scala.jdk.CollectionConverters._
sealed trait FailureReason {
def unwrap: software.amazon.awssdk.services.emrcontainers.model.FailureReason
}
object FailureReason {
def wrap(
value: software.amazon.awssdk.services.emrcontainers.model.FailureReason
): zio.aws.emrcontainers.model.FailureReason = value match {
case software.amazon.awssdk.services.emrcontainers.model.FailureReason.UNKNOWN_TO_SDK_VERSION =>
val r = unknownToSdkVersion
r
case software.amazon.awssdk.services.emrcontainers.model.FailureReason.INTERNAL_ERROR =>
val r = INTERNAL_ERROR
r
case software.amazon.awssdk.services.emrcontainers.model.FailureReason.USER_ERROR =>
val r = USER_ERROR
r
case software.amazon.awssdk.services.emrcontainers.model.FailureReason.VALIDATION_ERROR =>
val r = VALIDATION_ERROR
r
case software.amazon.awssdk.services.emrcontainers.model.FailureReason.CLUSTER_UNAVAILABLE =>
val r = CLUSTER_UNAVAILABLE
r
}
case object unknownToSdkVersion
extends zio.aws.emrcontainers.model.FailureReason {
override def unwrap
: software.amazon.awssdk.services.emrcontainers.model.FailureReason =
software.amazon.awssdk.services.emrcontainers.model.FailureReason.UNKNOWN_TO_SDK_VERSION
}
case object INTERNAL_ERROR extends zio.aws.emrcontainers.model.FailureReason {
override def unwrap
: software.amazon.awssdk.services.emrcontainers.model.FailureReason =
software.amazon.awssdk.services.emrcontainers.model.FailureReason.INTERNAL_ERROR
}
case object USER_ERROR extends zio.aws.emrcontainers.model.FailureReason {
override def unwrap
: software.amazon.awssdk.services.emrcontainers.model.FailureReason =
software.amazon.awssdk.services.emrcontainers.model.FailureReason.USER_ERROR
}
case object VALIDATION_ERROR
extends zio.aws.emrcontainers.model.FailureReason {
override def unwrap
: software.amazon.awssdk.services.emrcontainers.model.FailureReason =
software.amazon.awssdk.services.emrcontainers.model.FailureReason.VALIDATION_ERROR
}
case object CLUSTER_UNAVAILABLE
extends zio.aws.emrcontainers.model.FailureReason {
override def unwrap
: software.amazon.awssdk.services.emrcontainers.model.FailureReason =
software.amazon.awssdk.services.emrcontainers.model.FailureReason.CLUSTER_UNAVAILABLE
}
}