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

commonMain.aws.sdk.kotlin.services.datazone.model.SearchInventoryResultItem.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 search results.
 */
public sealed class SearchInventoryResultItem {
    /**
     * The asset item included in the search results.
     */
    public data class AssetItem(val value: aws.sdk.kotlin.services.datazone.model.AssetItem) : aws.sdk.kotlin.services.datazone.model.SearchInventoryResultItem() {
    }

    /**
     * The data product.
     */
    public data class DataProductItem(val value: aws.sdk.kotlin.services.datazone.model.DataProductResultItem) : aws.sdk.kotlin.services.datazone.model.SearchInventoryResultItem() {
    }

    /**
     * The glossary item included in the search results.
     */
    public data class GlossaryItem(val value: aws.sdk.kotlin.services.datazone.model.GlossaryItem) : aws.sdk.kotlin.services.datazone.model.SearchInventoryResultItem() {
    }

    /**
     * The glossary term item included in the search results.
     */
    public data class GlossaryTermItem(val value: aws.sdk.kotlin.services.datazone.model.GlossaryTermItem) : aws.sdk.kotlin.services.datazone.model.SearchInventoryResultItem() {
    }

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

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

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

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

    /**
     * Casts this [SearchInventoryResultItem] as a [DataProductItem] and retrieves its [aws.sdk.kotlin.services.datazone.model.DataProductResultItem] value. Returns null if the [SearchInventoryResultItem] is not a [DataProductItem].
     */
    public fun asDataProductItemOrNull(): aws.sdk.kotlin.services.datazone.model.DataProductResultItem? = (this as? SearchInventoryResultItem.DataProductItem)?.value

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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy