io.burkard.cdk.services.autoscaling.CustomizedMetricSpecificationProperty.scala Maven / Gradle / Ivy
package io.burkard.cdk.services.autoscaling
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CustomizedMetricSpecificationProperty {
def apply(
statistic: Option[String] = None,
metricName: Option[String] = None,
dimensions: Option[List[_]] = None,
unit: Option[String] = None,
namespace: Option[String] = None
): software.amazon.awscdk.services.autoscaling.CfnScalingPolicy.CustomizedMetricSpecificationProperty =
(new software.amazon.awscdk.services.autoscaling.CfnScalingPolicy.CustomizedMetricSpecificationProperty.Builder)
.statistic(statistic.orNull)
.metricName(metricName.orNull)
.dimensions(dimensions.map(_.asJava).orNull)
.unit(unit.orNull)
.namespace(namespace.orNull)
.build()
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy