zio.aws.verifiedpermissions.model.DeletePolicyStoreRequest.scala Maven / Gradle / Ivy
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)
}