commonMain.aws.sdk.kotlin.services.datazone.model.SearchResultItem.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 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