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