zio.aws.verifiedpermissions.model.DeleteIdentitySourceRequest.scala Maven / Gradle / Ivy
package zio.aws.verifiedpermissions.model
import zio.aws.verifiedpermissions.model.primitives.{
IdentitySourceId,
PolicyStoreId
}
import zio.ZIO
import zio.aws.core.BuilderHelper
import scala.jdk.CollectionConverters._
final case class DeleteIdentitySourceRequest(
policyStoreId: PolicyStoreId,
identitySourceId: IdentitySourceId
) {
def buildAwsValue()
: software.amazon.awssdk.services.verifiedpermissions.model.DeleteIdentitySourceRequest = {
import DeleteIdentitySourceRequest.zioAwsBuilderHelper.BuilderOps
software.amazon.awssdk.services.verifiedpermissions.model.DeleteIdentitySourceRequest
.builder()
.policyStoreId(PolicyStoreId.unwrap(policyStoreId): java.lang.String)
.identitySourceId(
IdentitySourceId.unwrap(identitySourceId): java.lang.String
)
.build()
}
def asReadOnly
: zio.aws.verifiedpermissions.model.DeleteIdentitySourceRequest.ReadOnly =
zio.aws.verifiedpermissions.model.DeleteIdentitySourceRequest
.wrap(buildAwsValue())
}
object DeleteIdentitySourceRequest {
private lazy val zioAwsBuilderHelper: BuilderHelper[
software.amazon.awssdk.services.verifiedpermissions.model.DeleteIdentitySourceRequest
] = BuilderHelper.apply
trait ReadOnly {
def asEditable
: zio.aws.verifiedpermissions.model.DeleteIdentitySourceRequest =
zio.aws.verifiedpermissions.model
.DeleteIdentitySourceRequest(policyStoreId, identitySourceId)
def policyStoreId: PolicyStoreId
def identitySourceId: IdentitySourceId
def getPolicyStoreId: ZIO[Any, Nothing, PolicyStoreId] =
ZIO.succeed(policyStoreId)
def getIdentitySourceId: ZIO[Any, Nothing, IdentitySourceId] =
ZIO.succeed(identitySourceId)
}
private final class Wrapper(
impl: software.amazon.awssdk.services.verifiedpermissions.model.DeleteIdentitySourceRequest
) extends zio.aws.verifiedpermissions.model.DeleteIdentitySourceRequest.ReadOnly {
override val policyStoreId: PolicyStoreId =
zio.aws.verifiedpermissions.model.primitives
.PolicyStoreId(impl.policyStoreId())
override val identitySourceId: IdentitySourceId =
zio.aws.verifiedpermissions.model.primitives
.IdentitySourceId(impl.identitySourceId())
}
def wrap(
impl: software.amazon.awssdk.services.verifiedpermissions.model.DeleteIdentitySourceRequest
): zio.aws.verifiedpermissions.model.DeleteIdentitySourceRequest.ReadOnly =
new Wrapper(impl)
}