io.burkard.cdk.services.cloudwatch.MathExpression.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.cloudwatch
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object MathExpression {
def apply(
expression: String,
searchAccount: Option[String] = None,
usingMetrics: Option[Map[String, _ <: software.amazon.awscdk.services.cloudwatch.IMetric]] = None,
searchRegion: Option[String] = None,
label: Option[String] = None,
color: Option[String] = None,
period: Option[software.amazon.awscdk.Duration] = None
): software.amazon.awscdk.services.cloudwatch.MathExpression =
software.amazon.awscdk.services.cloudwatch.MathExpression.Builder
.create()
.expression(expression)
.searchAccount(searchAccount.orNull)
.usingMetrics(usingMetrics.map(_.asJava).orNull)
.searchRegion(searchRegion.orNull)
.label(label.orNull)
.color(color.orNull)
.period(period.orNull)
.build()
}