zio.aws.workmail.model.EntityState.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zio-aws-workmail_2.12 Show documentation
Show all versions of zio-aws-workmail_2.12 Show documentation
Low-level AWS wrapper for ZIO
package zio.aws.workmail.model
import scala.jdk.CollectionConverters._
sealed trait EntityState {
def unwrap: software.amazon.awssdk.services.workmail.model.EntityState
}
object EntityState {
def wrap(
value: software.amazon.awssdk.services.workmail.model.EntityState
): zio.aws.workmail.model.EntityState = value match {
case software.amazon.awssdk.services.workmail.model.EntityState.UNKNOWN_TO_SDK_VERSION =>
val r = unknownToSdkVersion
r
case software.amazon.awssdk.services.workmail.model.EntityState.ENABLED =>
val r = ENABLED
r
case software.amazon.awssdk.services.workmail.model.EntityState.DISABLED =>
val r = DISABLED
r
case software.amazon.awssdk.services.workmail.model.EntityState.DELETED =>
val r = DELETED
r
}
case object unknownToSdkVersion extends zio.aws.workmail.model.EntityState {
override def unwrap
: software.amazon.awssdk.services.workmail.model.EntityState =
software.amazon.awssdk.services.workmail.model.EntityState.UNKNOWN_TO_SDK_VERSION
}
case object ENABLED extends zio.aws.workmail.model.EntityState {
override def unwrap
: software.amazon.awssdk.services.workmail.model.EntityState =
software.amazon.awssdk.services.workmail.model.EntityState.ENABLED
}
case object DISABLED extends zio.aws.workmail.model.EntityState {
override def unwrap
: software.amazon.awssdk.services.workmail.model.EntityState =
software.amazon.awssdk.services.workmail.model.EntityState.DISABLED
}
case object DELETED extends zio.aws.workmail.model.EntityState {
override def unwrap
: software.amazon.awssdk.services.workmail.model.EntityState =
software.amazon.awssdk.services.workmail.model.EntityState.DELETED
}
}