io.burkard.cdk.services.lightsail.cfnInstance.HardwareProperty.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.lightsail.cfnInstance
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object HardwareProperty {
def apply(
cpuCount: Option[Number] = None,
disks: Option[List[_]] = None,
ramSizeInGb: Option[Number] = None
): software.amazon.awscdk.services.lightsail.CfnInstance.HardwareProperty =
(new software.amazon.awscdk.services.lightsail.CfnInstance.HardwareProperty.Builder)
.cpuCount(cpuCount.orNull)
.disks(disks.map(_.asJava).orNull)
.ramSizeInGb(ramSizeInGb.orNull)
.build()
}