io.burkard.cdk.services.globalaccelerator.RawEndpointProps.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.globalaccelerator
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object RawEndpointProps {
def apply(
endpointId: String,
region: Option[String] = None,
preserveClientIp: Option[Boolean] = None,
weight: Option[Number] = None
): software.amazon.awscdk.services.globalaccelerator.RawEndpointProps =
(new software.amazon.awscdk.services.globalaccelerator.RawEndpointProps.Builder)
.endpointId(endpointId)
.region(region.orNull)
.preserveClientIp(preserveClientIp.map(Boolean.box).orNull)
.weight(weight.orNull)
.build()
}