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

io.burkard.cdk.services.cloudwatch.MathExpressionProps.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 MathExpressionProps {

  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.MathExpressionProps =
    (new software.amazon.awscdk.services.cloudwatch.MathExpressionProps.Builder)
      .expression(expression)
      .searchAccount(searchAccount.orNull)
      .usingMetrics(usingMetrics.map(_.asJava).orNull)
      .searchRegion(searchRegion.orNull)
      .label(label.orNull)
      .color(color.orNull)
      .period(period.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy