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

io.burkard.cdk.cloudassembly.schema.TestCase.scala Maven / Gradle / Ivy

The newest version!
package io.burkard.cdk.cloudassembly.schema

import scala.collection.JavaConverters._

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

  def apply(
    stacks: List[String],
    diffAssets: Option[Boolean] = None,
    regions: Option[List[String]] = None,
    allowDestroy: Option[List[String]] = None,
    assertionStack: Option[String] = None,
    hooks: Option[software.amazon.awscdk.cloudassembly.schema.Hooks] = None,
    cdkCommandOptions: Option[software.amazon.awscdk.cloudassembly.schema.CdkCommands] = None,
    stackUpdateWorkflow: Option[Boolean] = None
  ): software.amazon.awscdk.cloudassembly.schema.TestCase =
    (new software.amazon.awscdk.cloudassembly.schema.TestCase.Builder)
      .stacks(stacks.asJava)
      .diffAssets(diffAssets.map(Boolean.box).orNull)
      .regions(regions.map(_.asJava).orNull)
      .allowDestroy(allowDestroy.map(_.asJava).orNull)
      .assertionStack(assertionStack.orNull)
      .hooks(hooks.orNull)
      .cdkCommandOptions(cdkCommandOptions.orNull)
      .stackUpdateWorkflow(stackUpdateWorkflow.map(Boolean.box).orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy