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

commonMain.aws.sdk.kotlin.services.sagemakergeospatial.model.AreaOfInterestGeometry.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



/**
 * A GeoJSON object representing the geographic extent in the coordinate space.
 */
public sealed class AreaOfInterestGeometry {
    /**
     * The structure representing the MultiPolygon Geometry.
     */
    public data class MultiPolygonGeometry(val value: aws.sdk.kotlin.services.sagemakergeospatial.model.MultiPolygonGeometryInput) : aws.sdk.kotlin.services.sagemakergeospatial.model.AreaOfInterestGeometry() {
    }

    /**
     * The structure representing Polygon Geometry.
     */
    public data class PolygonGeometry(val value: aws.sdk.kotlin.services.sagemakergeospatial.model.PolygonGeometryInput) : aws.sdk.kotlin.services.sagemakergeospatial.model.AreaOfInterestGeometry() {
    }

    public object SdkUnknown : aws.sdk.kotlin.services.sagemakergeospatial.model.AreaOfInterestGeometry() {
    }

    /**
     * Casts this [AreaOfInterestGeometry] as a [MultiPolygonGeometry] and retrieves its [aws.sdk.kotlin.services.sagemakergeospatial.model.MultiPolygonGeometryInput] value. Throws an exception if the [AreaOfInterestGeometry] is not a
     * [MultiPolygonGeometry].
     */
    public fun asMultiPolygonGeometry(): aws.sdk.kotlin.services.sagemakergeospatial.model.MultiPolygonGeometryInput = (this as AreaOfInterestGeometry.MultiPolygonGeometry).value

    /**
     * Casts this [AreaOfInterestGeometry] as a [MultiPolygonGeometry] and retrieves its [aws.sdk.kotlin.services.sagemakergeospatial.model.MultiPolygonGeometryInput] value. Returns null if the [AreaOfInterestGeometry] is not a [MultiPolygonGeometry].
     */
    public fun asMultiPolygonGeometryOrNull(): aws.sdk.kotlin.services.sagemakergeospatial.model.MultiPolygonGeometryInput? = (this as? AreaOfInterestGeometry.MultiPolygonGeometry)?.value

    /**
     * Casts this [AreaOfInterestGeometry] as a [PolygonGeometry] and retrieves its [aws.sdk.kotlin.services.sagemakergeospatial.model.PolygonGeometryInput] value. Throws an exception if the [AreaOfInterestGeometry] is not a
     * [PolygonGeometry].
     */
    public fun asPolygonGeometry(): aws.sdk.kotlin.services.sagemakergeospatial.model.PolygonGeometryInput = (this as AreaOfInterestGeometry.PolygonGeometry).value

    /**
     * Casts this [AreaOfInterestGeometry] as a [PolygonGeometry] and retrieves its [aws.sdk.kotlin.services.sagemakergeospatial.model.PolygonGeometryInput] value. Returns null if the [AreaOfInterestGeometry] is not a [PolygonGeometry].
     */
    public fun asPolygonGeometryOrNull(): aws.sdk.kotlin.services.sagemakergeospatial.model.PolygonGeometryInput? = (this as? AreaOfInterestGeometry.PolygonGeometry)?.value
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy