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