All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.sagemakergeospatial.model.AreaOfInterest.kt Maven / Gradle / Ivy

There is a newer version: 1.3.77
Show newest version
// 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
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy