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

io.burkard.cdk.services.events.ConnectionProps.scala Maven / Gradle / Ivy

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

import scala.collection.JavaConverters._

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

  def apply(
    authorization: software.amazon.awscdk.services.events.Authorization,
    connectionName: Option[String] = None,
    description: Option[String] = None,
    headerParameters: Option[Map[String, _ <: software.amazon.awscdk.services.events.HttpParameter]] = None,
    queryStringParameters: Option[Map[String, _ <: software.amazon.awscdk.services.events.HttpParameter]] = None,
    bodyParameters: Option[Map[String, _ <: software.amazon.awscdk.services.events.HttpParameter]] = None
  ): software.amazon.awscdk.services.events.ConnectionProps =
    (new software.amazon.awscdk.services.events.ConnectionProps.Builder)
      .authorization(authorization)
      .connectionName(connectionName.orNull)
      .description(description.orNull)
      .headerParameters(headerParameters.map(_.asJava).orNull)
      .queryStringParameters(queryStringParameters.map(_.asJava).orNull)
      .bodyParameters(bodyParameters.map(_.asJava).orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy