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

io.burkard.cdk.services.networkfirewall.cfnRuleGroup.MatchAttributesProperty.scala Maven / Gradle / Ivy

package io.burkard.cdk.services.networkfirewall.cfnRuleGroup

import scala.collection.JavaConverters._

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

  def apply(
    protocols: Option[List[_ <: Number]] = None,
    sourcePorts: Option[List[_]] = None,
    tcpFlags: Option[List[_]] = None,
    destinationPorts: Option[List[_]] = None,
    sources: Option[List[_]] = None,
    destinations: Option[List[_]] = None
  ): software.amazon.awscdk.services.networkfirewall.CfnRuleGroup.MatchAttributesProperty =
    (new software.amazon.awscdk.services.networkfirewall.CfnRuleGroup.MatchAttributesProperty.Builder)
      .protocols(protocols.map(_.asJava).orNull)
      .sourcePorts(sourcePorts.map(_.asJava).orNull)
      .tcpFlags(tcpFlags.map(_.asJava).orNull)
      .destinationPorts(destinationPorts.map(_.asJava).orNull)
      .sources(sources.map(_.asJava).orNull)
      .destinations(destinations.map(_.asJava).orNull)
      .build()
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy