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

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