io.burkard.cdk.services.autoscaling.BasicScheduledActionProps.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.autoscaling
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object BasicScheduledActionProps {
def apply(
schedule: software.amazon.awscdk.services.autoscaling.Schedule,
maxCapacity: Option[Number] = None,
startTime: Option[java.time.Instant] = None,
endTime: Option[java.time.Instant] = None,
minCapacity: Option[Number] = None,
desiredCapacity: Option[Number] = None,
timeZone: Option[String] = None
): software.amazon.awscdk.services.autoscaling.BasicScheduledActionProps =
(new software.amazon.awscdk.services.autoscaling.BasicScheduledActionProps.Builder)
.schedule(schedule)
.maxCapacity(maxCapacity.orNull)
.startTime(startTime.orNull)
.endTime(endTime.orNull)
.minCapacity(minCapacity.orNull)
.desiredCapacity(desiredCapacity.orNull)
.timeZone(timeZone.orNull)
.build()
}