commonMain.aws.sdk.kotlin.services.datazone.model.SearchInventoryResultItem.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datazone-jvm Show documentation
Show all versions of datazone-jvm Show documentation
The AWS SDK for Kotlin client for DataZone
// 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 item included in the search results.
*/
public data class DataProductItem(val value: aws.sdk.kotlin.services.datazone.model.DataProductSummary) : 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.DataProductSummary] value. Throws an exception if the [SearchInventoryResultItem] is not a
* [DataProductItem].
*/
public fun asDataProductItem(): aws.sdk.kotlin.services.datazone.model.DataProductSummary = (this as SearchInventoryResultItem.DataProductItem).value
/**
* Casts this [SearchInventoryResultItem] as a [DataProductItem] and retrieves its [aws.sdk.kotlin.services.datazone.model.DataProductSummary] value. Returns null if the [SearchInventoryResultItem] is not a [DataProductItem].
*/
public fun asDataProductItemOrNull(): aws.sdk.kotlin.services.datazone.model.DataProductSummary? = (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