commonMain.aws.sdk.kotlin.services.datazone.model.SubscribedPrincipalInput.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 principal that is to be given a subscriptiong grant.
*/
public sealed class SubscribedPrincipalInput {
/**
* The project that is to be given a subscription grant.
*/
public data class Project(val value: aws.sdk.kotlin.services.datazone.model.SubscribedProjectInput) : aws.sdk.kotlin.services.datazone.model.SubscribedPrincipalInput() {
}
public object SdkUnknown : aws.sdk.kotlin.services.datazone.model.SubscribedPrincipalInput() {
}
/**
* Casts this [SubscribedPrincipalInput] as a [Project] and retrieves its [aws.sdk.kotlin.services.datazone.model.SubscribedProjectInput] value. Throws an exception if the [SubscribedPrincipalInput] is not a
* [Project].
*/
public fun asProject(): aws.sdk.kotlin.services.datazone.model.SubscribedProjectInput = (this as SubscribedPrincipalInput.Project).value
/**
* Casts this [SubscribedPrincipalInput] as a [Project] and retrieves its [aws.sdk.kotlin.services.datazone.model.SubscribedProjectInput] value. Returns null if the [SubscribedPrincipalInput] is not a [Project].
*/
public fun asProjectOrNull(): aws.sdk.kotlin.services.datazone.model.SubscribedProjectInput? = (this as? SubscribedPrincipalInput.Project)?.value
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy