commonMain.aws.sdk.kotlin.services.sagemakergeospatial.model.LandsatCloudCoverLandInput.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
// 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 Land Cloud Cover property for Landsat data collection.
*/
public class LandsatCloudCoverLandInput private constructor(builder: Builder) {
/**
* The minimum value for Land Cloud Cover property filter. This will filter items having Land Cloud Cover greater than or equal to this value.
*/
public val lowerBound: kotlin.Float = requireNotNull(builder.lowerBound) { "A non-null value must be provided for lowerBound" }
/**
* The maximum value for Land Cloud Cover property filter. This will filter items having Land Cloud Cover less than or equal to this value.
*/
public val upperBound: kotlin.Float = requireNotNull(builder.upperBound) { "A non-null value must be provided for upperBound" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.sagemakergeospatial.model.LandsatCloudCoverLandInput = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("LandsatCloudCoverLandInput(")
append("lowerBound=$lowerBound,")
append("upperBound=$upperBound")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = lowerBound.hashCode()
result = 31 * result + (upperBound.hashCode())
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 LandsatCloudCoverLandInput
if (!(lowerBound?.equals(other.lowerBound) ?: (other.lowerBound == null))) return false
if (!(upperBound?.equals(other.upperBound) ?: (other.upperBound == null))) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.sagemakergeospatial.model.LandsatCloudCoverLandInput = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The minimum value for Land Cloud Cover property filter. This will filter items having Land Cloud Cover greater than or equal to this value.
*/
public var lowerBound: kotlin.Float? = null
/**
* The maximum value for Land Cloud Cover property filter. This will filter items having Land Cloud Cover less than or equal to this value.
*/
public var upperBound: kotlin.Float? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.sagemakergeospatial.model.LandsatCloudCoverLandInput) : this() {
this.lowerBound = x.lowerBound
this.upperBound = x.upperBound
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.sagemakergeospatial.model.LandsatCloudCoverLandInput = LandsatCloudCoverLandInput(this)
internal fun correctErrors(): Builder {
if (lowerBound == null) lowerBound = 0f
if (upperBound == null) upperBound = 0f
return this
}
}
}