zio.aws.emrcontainers.model.EndpointState.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 EndpointState {
def unwrap: software.amazon.awssdk.services.emrcontainers.model.EndpointState
}
object EndpointState {
def wrap(
value: software.amazon.awssdk.services.emrcontainers.model.EndpointState
): zio.aws.emrcontainers.model.EndpointState = value match {
case software.amazon.awssdk.services.emrcontainers.model.EndpointState.UNKNOWN_TO_SDK_VERSION =>
val r = unknownToSdkVersion
r
case software.amazon.awssdk.services.emrcontainers.model.EndpointState.CREATING =>
val r = CREATING
r
case software.amazon.awssdk.services.emrcontainers.model.EndpointState.ACTIVE =>
val r = ACTIVE
r
case software.amazon.awssdk.services.emrcontainers.model.EndpointState.TERMINATING =>
val r = TERMINATING
r
case software.amazon.awssdk.services.emrcontainers.model.EndpointState.TERMINATED =>
val r = TERMINATED
r
case software.amazon.awssdk.services.emrcontainers.model.EndpointState.TERMINATED_WITH_ERRORS =>
val r = TERMINATED_WITH_ERRORS
r
}
case object unknownToSdkVersion
extends zio.aws.emrcontainers.model.EndpointState {
override def unwrap
: software.amazon.awssdk.services.emrcontainers.model.EndpointState =
software.amazon.awssdk.services.emrcontainers.model.EndpointState.UNKNOWN_TO_SDK_VERSION
}
case object CREATING extends zio.aws.emrcontainers.model.EndpointState {
override def unwrap
: software.amazon.awssdk.services.emrcontainers.model.EndpointState =
software.amazon.awssdk.services.emrcontainers.model.EndpointState.CREATING
}
case object ACTIVE extends zio.aws.emrcontainers.model.EndpointState {
override def unwrap
: software.amazon.awssdk.services.emrcontainers.model.EndpointState =
software.amazon.awssdk.services.emrcontainers.model.EndpointState.ACTIVE
}
case object TERMINATING extends zio.aws.emrcontainers.model.EndpointState {
override def unwrap
: software.amazon.awssdk.services.emrcontainers.model.EndpointState =
software.amazon.awssdk.services.emrcontainers.model.EndpointState.TERMINATING
}
case object TERMINATED extends zio.aws.emrcontainers.model.EndpointState {
override def unwrap
: software.amazon.awssdk.services.emrcontainers.model.EndpointState =
software.amazon.awssdk.services.emrcontainers.model.EndpointState.TERMINATED
}
case object TERMINATED_WITH_ERRORS
extends zio.aws.emrcontainers.model.EndpointState {
override def unwrap
: software.amazon.awssdk.services.emrcontainers.model.EndpointState =
software.amazon.awssdk.services.emrcontainers.model.EndpointState.TERMINATED_WITH_ERRORS
}
}