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