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

zio.aws.workmail.model.DeleteMobileDeviceAccessOverrideRequest.scala Maven / Gradle / Ivy

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy