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

io.burkard.cdk.services.ses.cfnReceiptRule.RuleProperty.scala Maven / Gradle / Ivy

The newest version!
package io.burkard.cdk.services.ses.cfnReceiptRule

import scala.collection.JavaConverters._

@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object RuleProperty {

  def apply(
    name: Option[String] = None,
    scanEnabled: Option[Boolean] = None,
    recipients: Option[List[String]] = None,
    enabled: Option[Boolean] = None,
    tlsPolicy: Option[String] = None,
    actions: Option[List[_]] = None
  ): software.amazon.awscdk.services.ses.CfnReceiptRule.RuleProperty =
    (new software.amazon.awscdk.services.ses.CfnReceiptRule.RuleProperty.Builder)
      .name(name.orNull)
      .scanEnabled(scanEnabled.map(Boolean.box).orNull)
      .recipients(recipients.map(_.asJava).orNull)
      .enabled(enabled.map(Boolean.box).orNull)
      .tlsPolicy(tlsPolicy.orNull)
      .actions(actions.map(_.asJava).orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy