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

io.burkard.cdk.services.autoscaling.cfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.scala Maven / Gradle / Ivy

The newest version!
package io.burkard.cdk.services.autoscaling.cfnScalingPolicy

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

  def apply(
    targetValue: Number,
    customizedCapacityMetricSpecification: Option[software.amazon.awscdk.services.autoscaling.CfnScalingPolicy.PredictiveScalingCustomizedCapacityMetricProperty] = None,
    customizedLoadMetricSpecification: Option[software.amazon.awscdk.services.autoscaling.CfnScalingPolicy.PredictiveScalingCustomizedLoadMetricProperty] = None,
    predefinedScalingMetricSpecification: Option[software.amazon.awscdk.services.autoscaling.CfnScalingPolicy.PredictiveScalingPredefinedScalingMetricProperty] = None,
    customizedScalingMetricSpecification: Option[software.amazon.awscdk.services.autoscaling.CfnScalingPolicy.PredictiveScalingCustomizedScalingMetricProperty] = None,
    predefinedLoadMetricSpecification: Option[software.amazon.awscdk.services.autoscaling.CfnScalingPolicy.PredictiveScalingPredefinedLoadMetricProperty] = None,
    predefinedMetricPairSpecification: Option[software.amazon.awscdk.services.autoscaling.CfnScalingPolicy.PredictiveScalingPredefinedMetricPairProperty] = None
  ): software.amazon.awscdk.services.autoscaling.CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty =
    (new software.amazon.awscdk.services.autoscaling.CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.Builder)
      .targetValue(targetValue)
      .customizedCapacityMetricSpecification(customizedCapacityMetricSpecification.orNull)
      .customizedLoadMetricSpecification(customizedLoadMetricSpecification.orNull)
      .predefinedScalingMetricSpecification(predefinedScalingMetricSpecification.orNull)
      .customizedScalingMetricSpecification(customizedScalingMetricSpecification.orNull)
      .predefinedLoadMetricSpecification(predefinedLoadMetricSpecification.orNull)
      .predefinedMetricPairSpecification(predefinedMetricPairSpecification.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy