zio.aws.workmail.model.AccessControlRuleEffect.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 AccessControlRuleEffect {
def unwrap
: software.amazon.awssdk.services.workmail.model.AccessControlRuleEffect
}
object AccessControlRuleEffect {
def wrap(
value: software.amazon.awssdk.services.workmail.model.AccessControlRuleEffect
): zio.aws.workmail.model.AccessControlRuleEffect = value match {
case software.amazon.awssdk.services.workmail.model.AccessControlRuleEffect.UNKNOWN_TO_SDK_VERSION =>
val r = unknownToSdkVersion
r
case software.amazon.awssdk.services.workmail.model.AccessControlRuleEffect.ALLOW =>
val r = ALLOW
r
case software.amazon.awssdk.services.workmail.model.AccessControlRuleEffect.DENY =>
val r = DENY
r
}
case object unknownToSdkVersion
extends zio.aws.workmail.model.AccessControlRuleEffect {
override def unwrap
: software.amazon.awssdk.services.workmail.model.AccessControlRuleEffect =
software.amazon.awssdk.services.workmail.model.AccessControlRuleEffect.UNKNOWN_TO_SDK_VERSION
}
case object ALLOW extends zio.aws.workmail.model.AccessControlRuleEffect {
override def unwrap
: software.amazon.awssdk.services.workmail.model.AccessControlRuleEffect =
software.amazon.awssdk.services.workmail.model.AccessControlRuleEffect.ALLOW
}
case object DENY extends zio.aws.workmail.model.AccessControlRuleEffect {
override def unwrap
: software.amazon.awssdk.services.workmail.model.AccessControlRuleEffect =
software.amazon.awssdk.services.workmail.model.AccessControlRuleEffect.DENY
}
}