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

zio.aws.verifiedpermissions.model.DeletePolicyStoreRequest.scala Maven / Gradle / Ivy

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy