io.burkard.cdk.services.neptune.CfnDBInstanceProps.scala Maven / Gradle / Ivy
package io.burkard.cdk.services.neptune
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CfnDBInstanceProps {
def apply(
dbInstanceClass: String,
dbParameterGroupName: Option[String] = None,
dbClusterIdentifier: Option[String] = None,
tags: Option[List[_ <: software.amazon.awscdk.CfnTag]] = None,
availabilityZone: Option[String] = None,
dbSnapshotIdentifier: Option[String] = None,
preferredMaintenanceWindow: Option[String] = None,
autoMinorVersionUpgrade: Option[Boolean] = None,
allowMajorVersionUpgrade: Option[Boolean] = None,
dbInstanceIdentifier: Option[String] = None,
dbSubnetGroupName: Option[String] = None
): software.amazon.awscdk.services.neptune.CfnDBInstanceProps =
(new software.amazon.awscdk.services.neptune.CfnDBInstanceProps.Builder)
.dbInstanceClass(dbInstanceClass)
.dbParameterGroupName(dbParameterGroupName.orNull)
.dbClusterIdentifier(dbClusterIdentifier.orNull)
.tags(tags.map(_.asJava).orNull)
.availabilityZone(availabilityZone.orNull)
.dbSnapshotIdentifier(dbSnapshotIdentifier.orNull)
.preferredMaintenanceWindow(preferredMaintenanceWindow.orNull)
.autoMinorVersionUpgrade(autoMinorVersionUpgrade.map(Boolean.box).getOrElse(java.lang.Boolean.FALSE))
.allowMajorVersionUpgrade(allowMajorVersionUpgrade.map(Boolean.box).getOrElse(java.lang.Boolean.FALSE))
.dbInstanceIdentifier(dbInstanceIdentifier.orNull)
.dbSubnetGroupName(dbSubnetGroupName.orNull)
.build()
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy