commonMain.aws.sdk.kotlin.services.neptunegraph.model.ImportOptions.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.neptunegraph.model
/**
* Options for how to perform an import.
*/
public sealed class ImportOptions {
/**
* Options for importing data from a Neptune database.
*/
public data class Neptune(val value: aws.sdk.kotlin.services.neptunegraph.model.NeptuneImportOptions) : aws.sdk.kotlin.services.neptunegraph.model.ImportOptions() {
}
public object SdkUnknown : aws.sdk.kotlin.services.neptunegraph.model.ImportOptions() {
}
/**
* Casts this [ImportOptions] as a [Neptune] and retrieves its [aws.sdk.kotlin.services.neptunegraph.model.NeptuneImportOptions] value. Throws an exception if the [ImportOptions] is not a
* [Neptune].
*/
public fun asNeptune(): aws.sdk.kotlin.services.neptunegraph.model.NeptuneImportOptions = (this as ImportOptions.Neptune).value
/**
* Casts this [ImportOptions] as a [Neptune] and retrieves its [aws.sdk.kotlin.services.neptunegraph.model.NeptuneImportOptions] value. Returns null if the [ImportOptions] is not a [Neptune].
*/
public fun asNeptuneOrNull(): aws.sdk.kotlin.services.neptunegraph.model.NeptuneImportOptions? = (this as? ImportOptions.Neptune)?.value
}