commonMain.aws.sdk.kotlin.services.sagemakergeospatial.model.TemporalStatisticsConfigInput.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sagemakergeospatial-jvm Show documentation
Show all versions of sagemakergeospatial-jvm Show documentation
The AWS SDK for Kotlin client for SageMaker Geospatial
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sagemakergeospatial.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The structure representing the configuration for Temporal Statistics operation.
*/
public class TemporalStatisticsConfigInput private constructor(builder: Builder) {
/**
* The input for the temporal statistics grouping by time frequency option.
*/
public val groupBy: aws.sdk.kotlin.services.sagemakergeospatial.model.GroupBy? = builder.groupBy
/**
* The list of the statistics method options.
*/
public val statistics: List = requireNotNull(builder.statistics) { "A non-null value must be provided for statistics" }
/**
* The list of target band names for the temporal statistic to calculate.
*/
public val targetBands: List? = builder.targetBands
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.sagemakergeospatial.model.TemporalStatisticsConfigInput = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("TemporalStatisticsConfigInput(")
append("groupBy=$groupBy,")
append("statistics=$statistics,")
append("targetBands=$targetBands")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = groupBy?.hashCode() ?: 0
result = 31 * result + (statistics.hashCode())
result = 31 * result + (targetBands?.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 TemporalStatisticsConfigInput
if (groupBy != other.groupBy) return false
if (statistics != other.statistics) return false
if (targetBands != other.targetBands) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.sagemakergeospatial.model.TemporalStatisticsConfigInput = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The input for the temporal statistics grouping by time frequency option.
*/
public var groupBy: aws.sdk.kotlin.services.sagemakergeospatial.model.GroupBy? = null
/**
* The list of the statistics method options.
*/
public var statistics: List? = null
/**
* The list of target band names for the temporal statistic to calculate.
*/
public var targetBands: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.sagemakergeospatial.model.TemporalStatisticsConfigInput) : this() {
this.groupBy = x.groupBy
this.statistics = x.statistics
this.targetBands = x.targetBands
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.sagemakergeospatial.model.TemporalStatisticsConfigInput = TemporalStatisticsConfigInput(this)
internal fun correctErrors(): Builder {
if (statistics == null) statistics = emptyList()
return this
}
}
}