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

io.burkard.cdk.services.cloudwatch.cfnAnomalyDetector.MetricDataQueryProperty.scala Maven / Gradle / Ivy

The newest version!
package io.burkard.cdk.services.cloudwatch.cfnAnomalyDetector

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

  def apply(
    id: String,
    label: Option[String] = None,
    accountId: Option[String] = None,
    returnData: Option[Boolean] = None,
    metricStat: Option[software.amazon.awscdk.services.cloudwatch.CfnAnomalyDetector.MetricStatProperty] = None,
    expression: Option[String] = None,
    period: Option[Number] = None
  ): software.amazon.awscdk.services.cloudwatch.CfnAnomalyDetector.MetricDataQueryProperty =
    (new software.amazon.awscdk.services.cloudwatch.CfnAnomalyDetector.MetricDataQueryProperty.Builder)
      .id(id)
      .label(label.orNull)
      .accountId(accountId.orNull)
      .returnData(returnData.map(Boolean.box).orNull)
      .metricStat(metricStat.orNull)
      .expression(expression.orNull)
      .period(period.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy