commonMain.aws.sdk.kotlin.services.lookoutequipment.model.DataPreProcessingConfiguration.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lookoutequipment.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The configuration is the `TargetSamplingRate`, which is the sampling rate of the data after post processing by Amazon Lookout for Equipment. For example, if you provide data that has been collected at a 1 second level and you want the system to resample the data at a 1 minute rate before training, the `TargetSamplingRate` is 1 minute.
*
* When providing a value for the `TargetSamplingRate`, you must attach the prefix "PT" to the rate you want. The value for a 1 second rate is therefore *PT1S*, the value for a 15 minute rate is *PT15M*, and the value for a 1 hour rate is *PT1H*
*/
public class DataPreProcessingConfiguration private constructor(builder: Builder) {
/**
* The sampling rate of the data after post processing by Amazon Lookout for Equipment. For example, if you provide data that has been collected at a 1 second level and you want the system to resample the data at a 1 minute rate before training, the `TargetSamplingRate` is 1 minute.
*
* When providing a value for the `TargetSamplingRate`, you must attach the prefix "PT" to the rate you want. The value for a 1 second rate is therefore *PT1S*, the value for a 15 minute rate is *PT15M*, and the value for a 1 hour rate is *PT1H*
*/
public val targetSamplingRate: aws.sdk.kotlin.services.lookoutequipment.model.TargetSamplingRate? = builder.targetSamplingRate
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lookoutequipment.model.DataPreProcessingConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DataPreProcessingConfiguration(")
append("targetSamplingRate=$targetSamplingRate")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = targetSamplingRate?.hashCode() ?: 0
return result
}
override fun equals(other: kotlin.Any?): kotlin.Boolean {
if (this === other) return true
if (other == null || this::class != other::class) return false
other as DataPreProcessingConfiguration
if (targetSamplingRate != other.targetSamplingRate) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lookoutequipment.model.DataPreProcessingConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The sampling rate of the data after post processing by Amazon Lookout for Equipment. For example, if you provide data that has been collected at a 1 second level and you want the system to resample the data at a 1 minute rate before training, the `TargetSamplingRate` is 1 minute.
*
* When providing a value for the `TargetSamplingRate`, you must attach the prefix "PT" to the rate you want. The value for a 1 second rate is therefore *PT1S*, the value for a 15 minute rate is *PT15M*, and the value for a 1 hour rate is *PT1H*
*/
public var targetSamplingRate: aws.sdk.kotlin.services.lookoutequipment.model.TargetSamplingRate? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lookoutequipment.model.DataPreProcessingConfiguration) : this() {
this.targetSamplingRate = x.targetSamplingRate
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lookoutequipment.model.DataPreProcessingConfiguration = DataPreProcessingConfiguration(this)
internal fun correctErrors(): Builder {
return this
}
}
}