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