commonMain.aws.sdk.kotlin.services.datazone.model.GrantedEntity.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 a listing for which a subscription is granted.
*/
public sealed class GrantedEntity {
/**
* The listing for which a subscription is granted.
*/
public data class Listing(val value: aws.sdk.kotlin.services.datazone.model.ListingRevision) : aws.sdk.kotlin.services.datazone.model.GrantedEntity() {
}
public object SdkUnknown : aws.sdk.kotlin.services.datazone.model.GrantedEntity() {
}
/**
* Casts this [GrantedEntity] as a [Listing] and retrieves its [aws.sdk.kotlin.services.datazone.model.ListingRevision] value. Throws an exception if the [GrantedEntity] is not a
* [Listing].
*/
public fun asListing(): aws.sdk.kotlin.services.datazone.model.ListingRevision = (this as GrantedEntity.Listing).value
/**
* Casts this [GrantedEntity] as a [Listing] and retrieves its [aws.sdk.kotlin.services.datazone.model.ListingRevision] value. Returns null if the [GrantedEntity] is not a [Listing].
*/
public fun asListingOrNull(): aws.sdk.kotlin.services.datazone.model.ListingRevision? = (this as? GrantedEntity.Listing)?.value
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy