All Downloads are FREE. Search and download functionalities are using the official Maven repository.

zio.aws.emrcontainers.model.FailureReason.scala Maven / Gradle / Ivy

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
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy