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

zio.aws.workmail.model.DescribeInboundDmarcSettingsResponse.scala Maven / Gradle / Ivy

There is a newer version: 7.28.29.5
Show newest version
package zio.aws.workmail.model
import zio.ZIO
import zio.aws.core.{AwsError, BuilderHelper}
import zio.prelude.data.Optional
import scala.jdk.CollectionConverters._
final case class DescribeInboundDmarcSettingsResponse(
    enforced: Optional[Boolean] = Optional.Absent
) {
  def buildAwsValue()
      : software.amazon.awssdk.services.workmail.model.DescribeInboundDmarcSettingsResponse = {
    import DescribeInboundDmarcSettingsResponse.zioAwsBuilderHelper.BuilderOps
    software.amazon.awssdk.services.workmail.model.DescribeInboundDmarcSettingsResponse
      .builder()
      .optionallyWith(enforced.map(value => value: java.lang.Boolean))(
        _.enforced
      )
      .build()
  }
  def asReadOnly
      : zio.aws.workmail.model.DescribeInboundDmarcSettingsResponse.ReadOnly =
    zio.aws.workmail.model.DescribeInboundDmarcSettingsResponse
      .wrap(buildAwsValue())
}
object DescribeInboundDmarcSettingsResponse {
  private lazy val zioAwsBuilderHelper: BuilderHelper[
    software.amazon.awssdk.services.workmail.model.DescribeInboundDmarcSettingsResponse
  ] = BuilderHelper.apply
  trait ReadOnly {
    def asEditable
        : zio.aws.workmail.model.DescribeInboundDmarcSettingsResponse =
      zio.aws.workmail.model
        .DescribeInboundDmarcSettingsResponse(enforced.map(value => value))
    def enforced: Optional[Boolean]
    def getEnforced: ZIO[Any, AwsError, Boolean] =
      AwsError.unwrapOptionField("enforced", enforced)
  }
  private final class Wrapper(
      impl: software.amazon.awssdk.services.workmail.model.DescribeInboundDmarcSettingsResponse
  ) extends zio.aws.workmail.model.DescribeInboundDmarcSettingsResponse.ReadOnly {
    override val enforced: Optional[Boolean] = zio.aws.core.internal
      .optionalFromNullable(impl.enforced())
      .map(value => value: Boolean)
  }
  def wrap(
      impl: software.amazon.awssdk.services.workmail.model.DescribeInboundDmarcSettingsResponse
  ): zio.aws.workmail.model.DescribeInboundDmarcSettingsResponse.ReadOnly =
    new Wrapper(impl)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy