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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy