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

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