io.burkard.cdk.services.cassandra.CfnTableProps.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.cassandra
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CfnTableProps {
def apply(
keyspaceName: String,
partitionKeyColumns: List[_],
clusteringKeyColumns: Option[List[_]] = None,
pointInTimeRecoveryEnabled: Option[Boolean] = None,
tags: Option[List[_ <: software.amazon.awscdk.CfnTag]] = None,
billingMode: Option[software.amazon.awscdk.services.cassandra.CfnTable.BillingModeProperty] = None,
defaultTimeToLive: Option[Number] = None,
tableName: Option[String] = None,
regularColumns: Option[List[_]] = None,
encryptionSpecification: Option[software.amazon.awscdk.services.cassandra.CfnTable.EncryptionSpecificationProperty] = None
): software.amazon.awscdk.services.cassandra.CfnTableProps =
(new software.amazon.awscdk.services.cassandra.CfnTableProps.Builder)
.keyspaceName(keyspaceName)
.partitionKeyColumns(partitionKeyColumns.asJava)
.clusteringKeyColumns(clusteringKeyColumns.map(_.asJava).orNull)
.pointInTimeRecoveryEnabled(pointInTimeRecoveryEnabled.map(Boolean.box).orNull)
.tags(tags.map(_.asJava).orNull)
.billingMode(billingMode.orNull)
.defaultTimeToLive(defaultTimeToLive.orNull)
.tableName(tableName.orNull)
.regularColumns(regularColumns.map(_.asJava).orNull)
.encryptionSpecification(encryptionSpecification.orNull)
.build()
}