commonMain.aws.sdk.kotlin.services.sagemakergeospatial.model.AreaOfInterest.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
/**
* The geographic extent of the Earth Observation job.
*/
public sealed class AreaOfInterest {
/**
* A GeoJSON object representing the geographic extent in the coordinate space.
*/
public data class AreaOfInterestGeometry(val value: aws.sdk.kotlin.services.sagemakergeospatial.model.AreaOfInterestGeometry) : aws.sdk.kotlin.services.sagemakergeospatial.model.AreaOfInterest() {
}
public object SdkUnknown : aws.sdk.kotlin.services.sagemakergeospatial.model.AreaOfInterest() {
}
/**
* Casts this [AreaOfInterest] as a [AreaOfInterestGeometry] and retrieves its [aws.sdk.kotlin.services.sagemakergeospatial.model.AreaOfInterestGeometry] value. Throws an exception if the [AreaOfInterest] is not a
* [AreaOfInterestGeometry].
*/
public fun asAreaOfInterestGeometry(): aws.sdk.kotlin.services.sagemakergeospatial.model.AreaOfInterestGeometry = (this as AreaOfInterest.AreaOfInterestGeometry).value
/**
* Casts this [AreaOfInterest] as a [AreaOfInterestGeometry] and retrieves its [aws.sdk.kotlin.services.sagemakergeospatial.model.AreaOfInterestGeometry] value. Returns null if the [AreaOfInterest] is not a [AreaOfInterestGeometry].
*/
public fun asAreaOfInterestGeometryOrNull(): aws.sdk.kotlin.services.sagemakergeospatial.model.AreaOfInterestGeometry? = (this as? AreaOfInterest.AreaOfInterestGeometry)?.value
}