io.burkard.cdk.services.ec2.cfnLaunchTemplate.InstanceRequirementsProperty.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.ec2.cfnLaunchTemplate
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object InstanceRequirementsProperty {
def apply(
spotMaxPricePercentageOverLowestPrice: Option[Number] = None,
localStorage: Option[String] = None,
vCpuCount: Option[software.amazon.awscdk.services.ec2.CfnLaunchTemplate.VCpuCountProperty] = None,
acceleratorNames: Option[List[String]] = None,
networkInterfaceCount: Option[software.amazon.awscdk.services.ec2.CfnLaunchTemplate.NetworkInterfaceCountProperty] = None,
acceleratorTypes: Option[List[String]] = None,
acceleratorCount: Option[software.amazon.awscdk.services.ec2.CfnLaunchTemplate.AcceleratorCountProperty] = None,
memoryMiB: Option[software.amazon.awscdk.services.ec2.CfnLaunchTemplate.MemoryMiBProperty] = None,
cpuManufacturers: Option[List[String]] = None,
bareMetal: Option[String] = None,
localStorageTypes: Option[List[String]] = None,
baselineEbsBandwidthMbps: Option[software.amazon.awscdk.services.ec2.CfnLaunchTemplate.BaselineEbsBandwidthMbpsProperty] = None,
totalLocalStorageGb: Option[software.amazon.awscdk.services.ec2.CfnLaunchTemplate.TotalLocalStorageGBProperty] = None,
burstablePerformance: Option[String] = None,
onDemandMaxPricePercentageOverLowestPrice: Option[Number] = None,
instanceGenerations: Option[List[String]] = None,
acceleratorTotalMemoryMiB: Option[software.amazon.awscdk.services.ec2.CfnLaunchTemplate.AcceleratorTotalMemoryMiBProperty] = None,
acceleratorManufacturers: Option[List[String]] = None,
memoryGiBPerVCpu: Option[software.amazon.awscdk.services.ec2.CfnLaunchTemplate.MemoryGiBPerVCpuProperty] = None,
requireHibernateSupport: Option[Boolean] = None,
excludedInstanceTypes: Option[List[String]] = None
): software.amazon.awscdk.services.ec2.CfnLaunchTemplate.InstanceRequirementsProperty =
(new software.amazon.awscdk.services.ec2.CfnLaunchTemplate.InstanceRequirementsProperty.Builder)
.spotMaxPricePercentageOverLowestPrice(spotMaxPricePercentageOverLowestPrice.orNull)
.localStorage(localStorage.orNull)
.vCpuCount(vCpuCount.orNull)
.acceleratorNames(acceleratorNames.map(_.asJava).orNull)
.networkInterfaceCount(networkInterfaceCount.orNull)
.acceleratorTypes(acceleratorTypes.map(_.asJava).orNull)
.acceleratorCount(acceleratorCount.orNull)
.memoryMiB(memoryMiB.orNull)
.cpuManufacturers(cpuManufacturers.map(_.asJava).orNull)
.bareMetal(bareMetal.orNull)
.localStorageTypes(localStorageTypes.map(_.asJava).orNull)
.baselineEbsBandwidthMbps(baselineEbsBandwidthMbps.orNull)
.totalLocalStorageGb(totalLocalStorageGb.orNull)
.burstablePerformance(burstablePerformance.orNull)
.onDemandMaxPricePercentageOverLowestPrice(onDemandMaxPricePercentageOverLowestPrice.orNull)
.instanceGenerations(instanceGenerations.map(_.asJava).orNull)
.acceleratorTotalMemoryMiB(acceleratorTotalMemoryMiB.orNull)
.acceleratorManufacturers(acceleratorManufacturers.map(_.asJava).orNull)
.memoryGiBPerVCpu(memoryGiBPerVCpu.orNull)
.requireHibernateSupport(requireHibernateSupport.map(Boolean.box).orNull)
.excludedInstanceTypes(excludedInstanceTypes.map(_.asJava).orNull)
.build()
}