![JAR search and dependency download from the Maven repository](/logo.png)
zio.aws.waf.model.RuleGroupSummary.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
The 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 RuleGroupSummary(ruleGroupId: ResourceId, name: ResourceName) {
def buildAwsValue()
: software.amazon.awssdk.services.waf.model.RuleGroupSummary = {
import RuleGroupSummary.zioAwsBuilderHelper.BuilderOps
software.amazon.awssdk.services.waf.model.RuleGroupSummary
.builder()
.ruleGroupId(ResourceId.unwrap(ruleGroupId): java.lang.String)
.name(ResourceName.unwrap(name): java.lang.String)
.build()
}
def asReadOnly: zio.aws.waf.model.RuleGroupSummary.ReadOnly =
zio.aws.waf.model.RuleGroupSummary.wrap(buildAwsValue())
}
object RuleGroupSummary {
private lazy val zioAwsBuilderHelper: BuilderHelper[
software.amazon.awssdk.services.waf.model.RuleGroupSummary
] = BuilderHelper.apply
trait ReadOnly {
def asEditable: zio.aws.waf.model.RuleGroupSummary =
zio.aws.waf.model.RuleGroupSummary(ruleGroupId, name)
def ruleGroupId: ResourceId
def name: ResourceName
def getRuleGroupId: ZIO[Any, Nothing, ResourceId] = ZIO.succeed(ruleGroupId)
def getName: ZIO[Any, Nothing, ResourceName] = ZIO.succeed(name)
}
private final class Wrapper(
impl: software.amazon.awssdk.services.waf.model.RuleGroupSummary
) extends zio.aws.waf.model.RuleGroupSummary.ReadOnly {
override val ruleGroupId: ResourceId =
zio.aws.waf.model.primitives.ResourceId(impl.ruleGroupId())
override val name: ResourceName =
zio.aws.waf.model.primitives.ResourceName(impl.name())
}
def wrap(
impl: software.amazon.awssdk.services.waf.model.RuleGroupSummary
): zio.aws.waf.model.RuleGroupSummary.ReadOnly = new Wrapper(impl)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy