zio.aws.workmail.model.DeleteMobileDeviceAccessRuleRequest.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zio-aws-workmail_2.12 Show documentation
Show all versions of zio-aws-workmail_2.12 Show documentation
Low-level AWS wrapper for ZIO
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)
}