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

commonMain.aws.sdk.kotlin.services.datazone.model.SearchResultItem.kt Maven / Gradle / Ivy

There is a newer version: 1.3.76
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.datazone.model



/**
 * The details of the results of the `SearchListings` action.
 */
public sealed class SearchResultItem {
    /**
     * The asset listing included in the results of the `SearchListings` action.
     */
    public data class AssetListing(val value: aws.sdk.kotlin.services.datazone.model.AssetListingItem) : aws.sdk.kotlin.services.datazone.model.SearchResultItem() {
    }

    public object SdkUnknown : aws.sdk.kotlin.services.datazone.model.SearchResultItem() {
    }

    /**
     * Casts this [SearchResultItem] as a [AssetListing] and retrieves its [aws.sdk.kotlin.services.datazone.model.AssetListingItem] value. Throws an exception if the [SearchResultItem] is not a
     * [AssetListing].
     */
    public fun asAssetListing(): aws.sdk.kotlin.services.datazone.model.AssetListingItem = (this as SearchResultItem.AssetListing).value

    /**
     * Casts this [SearchResultItem] as a [AssetListing] and retrieves its [aws.sdk.kotlin.services.datazone.model.AssetListingItem] value. Returns null if the [SearchResultItem] is not a [AssetListing].
     */
    public fun asAssetListingOrNull(): aws.sdk.kotlin.services.datazone.model.AssetListingItem? = (this as? SearchResultItem.AssetListing)?.value
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy