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