All Downloads are FREE. Search and download functionalities are using the official Maven repository.

zio.aws.waf.model.WebACLSummary.scala Maven / Gradle / Ivy

There is a newer version: 7.28.29.14
Show newest version
package zio.aws.waf.model
import zio.ZIO
import zio.aws.core.BuilderHelper
import zio.aws.waf.model.primitives.{ResourceName, ResourceId}
import scala.jdk.CollectionConverters._
final case class WebACLSummary(webACLId: ResourceId, name: ResourceName) {
  def buildAwsValue()
      : software.amazon.awssdk.services.waf.model.WebACLSummary = {
    import WebACLSummary.zioAwsBuilderHelper.BuilderOps
    software.amazon.awssdk.services.waf.model.WebACLSummary
      .builder()
      .webACLId(ResourceId.unwrap(webACLId): java.lang.String)
      .name(ResourceName.unwrap(name): java.lang.String)
      .build()
  }
  def asReadOnly: zio.aws.waf.model.WebACLSummary.ReadOnly =
    zio.aws.waf.model.WebACLSummary.wrap(buildAwsValue())
}
object WebACLSummary {
  private lazy val zioAwsBuilderHelper
      : BuilderHelper[software.amazon.awssdk.services.waf.model.WebACLSummary] =
    BuilderHelper.apply
  trait ReadOnly {
    def asEditable: zio.aws.waf.model.WebACLSummary =
      zio.aws.waf.model.WebACLSummary(webACLId, name)
    def webACLId: ResourceId
    def name: ResourceName
    def getWebACLId: ZIO[Any, Nothing, ResourceId] = ZIO.succeed(webACLId)
    def getName: ZIO[Any, Nothing, ResourceName] = ZIO.succeed(name)
  }
  private final class Wrapper(
      impl: software.amazon.awssdk.services.waf.model.WebACLSummary
  ) extends zio.aws.waf.model.WebACLSummary.ReadOnly {
    override val webACLId: ResourceId =
      zio.aws.waf.model.primitives.ResourceId(impl.webACLId())
    override val name: ResourceName =
      zio.aws.waf.model.primitives.ResourceName(impl.name())
  }
  def wrap(
      impl: software.amazon.awssdk.services.waf.model.WebACLSummary
  ): zio.aws.waf.model.WebACLSummary.ReadOnly = new Wrapper(impl)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy