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

zio.aws.workmail.model.DeleteMobileDeviceAccessRuleRequest.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.{
  MobileDeviceAccessRuleId,
  OrganizationId
}
import zio.ZIO
import zio.aws.core.BuilderHelper
import scala.jdk.CollectionConverters._
final case class DeleteMobileDeviceAccessRuleRequest(
    organizationId: OrganizationId,
    mobileDeviceAccessRuleId: MobileDeviceAccessRuleId
) {
  def buildAwsValue()
      : software.amazon.awssdk.services.workmail.model.DeleteMobileDeviceAccessRuleRequest = {
    import DeleteMobileDeviceAccessRuleRequest.zioAwsBuilderHelper.BuilderOps
    software.amazon.awssdk.services.workmail.model.DeleteMobileDeviceAccessRuleRequest
      .builder()
      .organizationId(OrganizationId.unwrap(organizationId): java.lang.String)
      .mobileDeviceAccessRuleId(
        MobileDeviceAccessRuleId.unwrap(
          mobileDeviceAccessRuleId
        ): java.lang.String
      )
      .build()
  }
  def asReadOnly
      : zio.aws.workmail.model.DeleteMobileDeviceAccessRuleRequest.ReadOnly =
    zio.aws.workmail.model.DeleteMobileDeviceAccessRuleRequest
      .wrap(buildAwsValue())
}
object DeleteMobileDeviceAccessRuleRequest {
  private lazy val zioAwsBuilderHelper: BuilderHelper[
    software.amazon.awssdk.services.workmail.model.DeleteMobileDeviceAccessRuleRequest
  ] = BuilderHelper.apply
  trait ReadOnly {
    def asEditable: zio.aws.workmail.model.DeleteMobileDeviceAccessRuleRequest =
      zio.aws.workmail.model.DeleteMobileDeviceAccessRuleRequest(
        organizationId,
        mobileDeviceAccessRuleId
      )
    def organizationId: OrganizationId
    def mobileDeviceAccessRuleId: MobileDeviceAccessRuleId
    def getOrganizationId: ZIO[Any, Nothing, OrganizationId] =
      ZIO.succeed(organizationId)
    def getMobileDeviceAccessRuleId
        : ZIO[Any, Nothing, MobileDeviceAccessRuleId] =
      ZIO.succeed(mobileDeviceAccessRuleId)
  }
  private final class Wrapper(
      impl: software.amazon.awssdk.services.workmail.model.DeleteMobileDeviceAccessRuleRequest
  ) extends zio.aws.workmail.model.DeleteMobileDeviceAccessRuleRequest.ReadOnly {
    override val organizationId: OrganizationId =
      zio.aws.workmail.model.primitives.OrganizationId(impl.organizationId())
    override val mobileDeviceAccessRuleId: MobileDeviceAccessRuleId =
      zio.aws.workmail.model.primitives
        .MobileDeviceAccessRuleId(impl.mobileDeviceAccessRuleId())
  }
  def wrap(
      impl: software.amazon.awssdk.services.workmail.model.DeleteMobileDeviceAccessRuleRequest
  ): zio.aws.workmail.model.DeleteMobileDeviceAccessRuleRequest.ReadOnly =
    new Wrapper(impl)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy