![JAR search and dependency download from the Maven repository](/logo.png)
zio.aws.waf.model.WafAction.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zio-aws-waf_2.13 Show documentation
Show all versions of zio-aws-waf_2.13 Show documentation
Low-level AWS wrapper for ZIO
package zio.aws.waf.model
import zio.ZIO
import zio.aws.core.BuilderHelper
import scala.jdk.CollectionConverters._
final case class WafAction(`type`: zio.aws.waf.model.WafActionType) {
def buildAwsValue(): software.amazon.awssdk.services.waf.model.WafAction = {
import WafAction.zioAwsBuilderHelper.BuilderOps
software.amazon.awssdk.services.waf.model.WafAction
.builder()
.`type`(`type`.unwrap)
.build()
}
def asReadOnly: zio.aws.waf.model.WafAction.ReadOnly =
zio.aws.waf.model.WafAction.wrap(buildAwsValue())
}
object WafAction {
private lazy val zioAwsBuilderHelper
: BuilderHelper[software.amazon.awssdk.services.waf.model.WafAction] =
BuilderHelper.apply
trait ReadOnly {
def asEditable: zio.aws.waf.model.WafAction =
zio.aws.waf.model.WafAction(`type`)
def `type`: zio.aws.waf.model.WafActionType
def getType: ZIO[Any, Nothing, zio.aws.waf.model.WafActionType] =
ZIO.succeed(`type`)
}
private final class Wrapper(
impl: software.amazon.awssdk.services.waf.model.WafAction
) extends zio.aws.waf.model.WafAction.ReadOnly {
override val `type`: zio.aws.waf.model.WafActionType =
zio.aws.waf.model.WafActionType.wrap(impl.`type`())
}
def wrap(
impl: software.amazon.awssdk.services.waf.model.WafAction
): zio.aws.waf.model.WafAction.ReadOnly = new Wrapper(impl)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy