commonMain.aws.sdk.kotlin.services.sagemakergeospatial.model.ViewSunElevationInput.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 input structure for specifying ViewSunElevation angle property filter.
*/
public class ViewSunElevationInput private constructor(builder: Builder) {
/**
* The lower bound to view the sun elevation.
*/
public val lowerBound: kotlin.Float = requireNotNull(builder.lowerBound) { "A non-null value must be provided for lowerBound" }
/**
* The upper bound to view the sun elevation.
*/
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.ViewSunElevationInput = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ViewSunElevationInput(")
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 ViewSunElevationInput
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.ViewSunElevationInput = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The lower bound to view the sun elevation.
*/
public var lowerBound: kotlin.Float? = null
/**
* The upper bound to view the sun elevation.
*/
public var upperBound: kotlin.Float? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.sagemakergeospatial.model.ViewSunElevationInput) : this() {
this.lowerBound = x.lowerBound
this.upperBound = x.upperBound
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.sagemakergeospatial.model.ViewSunElevationInput = ViewSunElevationInput(this)
internal fun correctErrors(): Builder {
if (lowerBound == null) lowerBound = 0f
if (upperBound == null) upperBound = 0f
return this
}
}
}