All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.burkard.cdk.services.ec2.cfnEC2Fleet.SpotOptionsRequestProperty.scala Maven / Gradle / Ivy

The newest version!
package io.burkard.cdk.services.ec2.cfnEC2Fleet

@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object SpotOptionsRequestProperty {

  def apply(
    minTargetCapacity: Option[Number] = None,
    allocationStrategy: Option[String] = None,
    singleInstanceType: Option[Boolean] = None,
    singleAvailabilityZone: Option[Boolean] = None,
    instanceInterruptionBehavior: Option[String] = None,
    instancePoolsToUseCount: Option[Number] = None,
    maintenanceStrategies: Option[software.amazon.awscdk.services.ec2.CfnEC2Fleet.MaintenanceStrategiesProperty] = None,
    maxTotalPrice: Option[String] = None
  ): software.amazon.awscdk.services.ec2.CfnEC2Fleet.SpotOptionsRequestProperty =
    (new software.amazon.awscdk.services.ec2.CfnEC2Fleet.SpotOptionsRequestProperty.Builder)
      .minTargetCapacity(minTargetCapacity.orNull)
      .allocationStrategy(allocationStrategy.orNull)
      .singleInstanceType(singleInstanceType.map(Boolean.box).orNull)
      .singleAvailabilityZone(singleAvailabilityZone.map(Boolean.box).orNull)
      .instanceInterruptionBehavior(instanceInterruptionBehavior.orNull)
      .instancePoolsToUseCount(instancePoolsToUseCount.orNull)
      .maintenanceStrategies(maintenanceStrategies.orNull)
      .maxTotalPrice(maxTotalPrice.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy