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

io.burkard.cdk.services.elasticloadbalancingv2.AddNetworkTargetsProps.scala Maven / Gradle / Ivy

The newest version!
package io.burkard.cdk.services.elasticloadbalancingv2

import scala.collection.JavaConverters._

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

  def apply(
    port: Number,
    healthCheck: Option[software.amazon.awscdk.services.elasticloadbalancingv2.HealthCheck] = None,
    preserveClientIp: Option[Boolean] = None,
    targets: Option[List[_ <: software.amazon.awscdk.services.elasticloadbalancingv2.INetworkLoadBalancerTarget]] = None,
    deregistrationDelay: Option[software.amazon.awscdk.Duration] = None,
    proxyProtocolV2: Option[Boolean] = None,
    targetGroupName: Option[String] = None,
    protocol: Option[software.amazon.awscdk.services.elasticloadbalancingv2.Protocol] = None
  ): software.amazon.awscdk.services.elasticloadbalancingv2.AddNetworkTargetsProps =
    (new software.amazon.awscdk.services.elasticloadbalancingv2.AddNetworkTargetsProps.Builder)
      .port(port)
      .healthCheck(healthCheck.orNull)
      .preserveClientIp(preserveClientIp.map(Boolean.box).orNull)
      .targets(targets.map(_.asJava).orNull)
      .deregistrationDelay(deregistrationDelay.orNull)
      .proxyProtocolV2(proxyProtocolV2.map(Boolean.box).orNull)
      .targetGroupName(targetGroupName.orNull)
      .protocol(protocol.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy