io.burkard.cdk.services.codebuild.GitHubSourceProps.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.codebuild
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object GitHubSourceProps {
def apply(
owner: String,
repo: String,
buildStatusContext: Option[String] = None,
reportBuildStatus: Option[Boolean] = None,
identifier: Option[String] = None,
webhookFilters: Option[List[_ <: software.amazon.awscdk.services.codebuild.FilterGroup]] = None,
branchOrRef: Option[String] = None,
buildStatusUrl: Option[String] = None,
cloneDepth: Option[Number] = None,
webhookTriggersBatchBuild: Option[Boolean] = None,
webhook: Option[Boolean] = None,
fetchSubmodules: Option[Boolean] = None
): software.amazon.awscdk.services.codebuild.GitHubSourceProps =
(new software.amazon.awscdk.services.codebuild.GitHubSourceProps.Builder)
.owner(owner)
.repo(repo)
.buildStatusContext(buildStatusContext.orNull)
.reportBuildStatus(reportBuildStatus.map(Boolean.box).orNull)
.identifier(identifier.orNull)
.webhookFilters(webhookFilters.map(_.asJava).orNull)
.branchOrRef(branchOrRef.orNull)
.buildStatusUrl(buildStatusUrl.orNull)
.cloneDepth(cloneDepth.orNull)
.webhookTriggersBatchBuild(webhookTriggersBatchBuild.map(Boolean.box).orNull)
.webhook(webhook.map(Boolean.box).orNull)
.fetchSubmodules(fetchSubmodules.map(Boolean.box).orNull)
.build()
}