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

cloudshift.awscdk.dsl.services.databrew.CfnJobColumnStatisticsConfigurationPropertyDsl.kt Maven / Gradle / Ivy

There is a newer version: 0.7.0
Show newest version
@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")

package cloudshift.awscdk.dsl.services.databrew

import cloudshift.awscdk.common.CdkDslMarker
import kotlin.Any
import kotlin.collections.Collection
import kotlin.collections.MutableList
import software.amazon.awscdk.IResolvable
import software.amazon.awscdk.services.databrew.CfnJob

/**
 * Configuration for column evaluations for a profile job.
 *
 * ColumnStatisticsConfiguration can be used to select evaluations and override parameters of
 * evaluations for particular columns.
 *
 * Example:
 *
 * ```
 * // The code below shows an example of how to instantiate this type.
 * // The values are placeholders you should change.
 * import software.amazon.awscdk.services.databrew.*;
 * ColumnStatisticsConfigurationProperty columnStatisticsConfigurationProperty =
 * ColumnStatisticsConfigurationProperty.builder()
 * .statistics(StatisticsConfigurationProperty.builder()
 * .includedStatistics(List.of("includedStatistics"))
 * .overrides(List.of(StatisticOverrideProperty.builder()
 * .parameters(Map.of(
 * "parametersKey", "parameters"))
 * .statistic("statistic")
 * .build()))
 * .build())
 * // the properties below are optional
 * .selectors(List.of(ColumnSelectorProperty.builder()
 * .name("name")
 * .regex("regex")
 * .build()))
 * .build();
 * ```
 *
 * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-databrew-job-columnstatisticsconfiguration.html)
 */
@CdkDslMarker
public class CfnJobColumnStatisticsConfigurationPropertyDsl {
  private val cdkBuilder: CfnJob.ColumnStatisticsConfigurationProperty.Builder =
      CfnJob.ColumnStatisticsConfigurationProperty.builder()

  private val _selectors: MutableList = mutableListOf()

  /**
   * @param selectors List of column selectors.
   * Selectors can be used to select columns from the dataset. When selectors are undefined,
   * configuration will be applied to all supported columns.
   */
  public fun selectors(vararg selectors: Any) {
    _selectors.addAll(listOf(*selectors))
  }

  /**
   * @param selectors List of column selectors.
   * Selectors can be used to select columns from the dataset. When selectors are undefined,
   * configuration will be applied to all supported columns.
   */
  public fun selectors(selectors: Collection) {
    _selectors.addAll(selectors)
  }

  /**
   * @param selectors List of column selectors.
   * Selectors can be used to select columns from the dataset. When selectors are undefined,
   * configuration will be applied to all supported columns.
   */
  public fun selectors(selectors: IResolvable) {
    cdkBuilder.selectors(selectors)
  }

  /**
   * @param statistics Configuration for evaluations. 
   * Statistics can be used to select evaluations and override parameters of evaluations.
   */
  public fun statistics(statistics: IResolvable) {
    cdkBuilder.statistics(statistics)
  }

  /**
   * @param statistics Configuration for evaluations. 
   * Statistics can be used to select evaluations and override parameters of evaluations.
   */
  public fun statistics(statistics: CfnJob.StatisticsConfigurationProperty) {
    cdkBuilder.statistics(statistics)
  }

  public fun build(): CfnJob.ColumnStatisticsConfigurationProperty {
    if(_selectors.isNotEmpty()) cdkBuilder.selectors(_selectors)
    return cdkBuilder.build()
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy