io.burkard.cdk.services.apigateway.SpecRestApiProps.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.apigateway
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object SpecRestApiProps {
def apply(
apiDefinition: software.amazon.awscdk.services.apigateway.ApiDefinition,
description: Option[String] = None,
endpointExportName: Option[String] = None,
cloudWatchRole: Option[Boolean] = None,
domainName: Option[software.amazon.awscdk.services.apigateway.DomainNameOptions] = None,
failOnWarnings: Option[Boolean] = None,
deployOptions: Option[software.amazon.awscdk.services.apigateway.StageOptions] = None,
retainDeployments: Option[Boolean] = None,
disableExecuteApiEndpoint: Option[Boolean] = None,
deploy: Option[Boolean] = None,
restApiName: Option[String] = None,
endpointTypes: Option[List[_ <: software.amazon.awscdk.services.apigateway.EndpointType]] = None,
parameters: Option[Map[String, String]] = None,
policy: Option[software.amazon.awscdk.services.iam.PolicyDocument] = None
): software.amazon.awscdk.services.apigateway.SpecRestApiProps =
(new software.amazon.awscdk.services.apigateway.SpecRestApiProps.Builder)
.apiDefinition(apiDefinition)
.description(description.orNull)
.endpointExportName(endpointExportName.orNull)
.cloudWatchRole(cloudWatchRole.map(Boolean.box).orNull)
.domainName(domainName.orNull)
.failOnWarnings(failOnWarnings.map(Boolean.box).orNull)
.deployOptions(deployOptions.orNull)
.retainDeployments(retainDeployments.map(Boolean.box).orNull)
.disableExecuteApiEndpoint(disableExecuteApiEndpoint.map(Boolean.box).orNull)
.deploy(deploy.map(Boolean.box).orNull)
.restApiName(restApiName.orNull)
.endpointTypes(endpointTypes.map(_.asJava).orNull)
.parameters(parameters.map(_.asJava).orNull)
.policy(policy.orNull)
.build()
}