zio.aws.verifiedpermissions.model.Decision.scala Maven / Gradle / Ivy
package zio.aws.verifiedpermissions.model
import scala.jdk.CollectionConverters._
sealed trait Decision {
def unwrap: software.amazon.awssdk.services.verifiedpermissions.model.Decision
}
object Decision {
def wrap(
value: software.amazon.awssdk.services.verifiedpermissions.model.Decision
): zio.aws.verifiedpermissions.model.Decision = value match {
case software.amazon.awssdk.services.verifiedpermissions.model.Decision.UNKNOWN_TO_SDK_VERSION =>
val r = unknownToSdkVersion
r
case software.amazon.awssdk.services.verifiedpermissions.model.Decision.ALLOW =>
val r = ALLOW
r
case software.amazon.awssdk.services.verifiedpermissions.model.Decision.DENY =>
val r = DENY
r
}
case object unknownToSdkVersion
extends zio.aws.verifiedpermissions.model.Decision {
override def unwrap
: software.amazon.awssdk.services.verifiedpermissions.model.Decision =
software.amazon.awssdk.services.verifiedpermissions.model.Decision.UNKNOWN_TO_SDK_VERSION
}
case object ALLOW extends zio.aws.verifiedpermissions.model.Decision {
override def unwrap
: software.amazon.awssdk.services.verifiedpermissions.model.Decision =
software.amazon.awssdk.services.verifiedpermissions.model.Decision.ALLOW
}
case object DENY extends zio.aws.verifiedpermissions.model.Decision {
override def unwrap
: software.amazon.awssdk.services.verifiedpermissions.model.Decision =
software.amazon.awssdk.services.verifiedpermissions.model.Decision.DENY
}
}