io.burkard.cdk.services.ec2.cfnSpotFleet.InstanceRequirementsRequestProperty.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.ec2.cfnSpotFleet
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object InstanceRequirementsRequestProperty {
def apply(
spotMaxPricePercentageOverLowestPrice: Option[Number] = None,
localStorage: Option[String] = None,
vCpuCount: Option[software.amazon.awscdk.services.ec2.CfnSpotFleet.VCpuCountRangeRequestProperty] = None,
acceleratorNames: Option[List[String]] = None,
networkInterfaceCount: Option[software.amazon.awscdk.services.ec2.CfnSpotFleet.NetworkInterfaceCountRequestProperty] = None,
acceleratorTypes: Option[List[String]] = None,
acceleratorCount: Option[software.amazon.awscdk.services.ec2.CfnSpotFleet.AcceleratorCountRequestProperty] = None,
memoryMiB: Option[software.amazon.awscdk.services.ec2.CfnSpotFleet.MemoryMiBRequestProperty] = None,
cpuManufacturers: Option[List[String]] = None,
bareMetal: Option[String] = None,
localStorageTypes: Option[List[String]] = None,
baselineEbsBandwidthMbps: Option[software.amazon.awscdk.services.ec2.CfnSpotFleet.BaselineEbsBandwidthMbpsRequestProperty] = None,
totalLocalStorageGb: Option[software.amazon.awscdk.services.ec2.CfnSpotFleet.TotalLocalStorageGBRequestProperty] = None,
burstablePerformance: Option[String] = None,
onDemandMaxPricePercentageOverLowestPrice: Option[Number] = None,
instanceGenerations: Option[List[String]] = None,
acceleratorTotalMemoryMiB: Option[software.amazon.awscdk.services.ec2.CfnSpotFleet.AcceleratorTotalMemoryMiBRequestProperty] = None,
acceleratorManufacturers: Option[List[String]] = None,
memoryGiBPerVCpu: Option[software.amazon.awscdk.services.ec2.CfnSpotFleet.MemoryGiBPerVCpuRequestProperty] = None,
requireHibernateSupport: Option[Boolean] = None,
excludedInstanceTypes: Option[List[String]] = None
): software.amazon.awscdk.services.ec2.CfnSpotFleet.InstanceRequirementsRequestProperty =
(new software.amazon.awscdk.services.ec2.CfnSpotFleet.InstanceRequirementsRequestProperty.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()
}