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

commonMain.aws.sdk.kotlin.services.datazone.model.Member.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 about a project member.
 */
public sealed class Member {
    /**
     * The ID of the group of a project member.
     */
    public data class GroupIdentifier(val value: kotlin.String) : aws.sdk.kotlin.services.datazone.model.Member() {
    }

    /**
     * The user ID of a project member.
     */
    public data class UserIdentifier(val value: kotlin.String) : aws.sdk.kotlin.services.datazone.model.Member() {
    }

    public object SdkUnknown : aws.sdk.kotlin.services.datazone.model.Member() {
    }

    /**
     * Casts this [Member] as a [GroupIdentifier] and retrieves its [kotlin.String] value. Throws an exception if the [Member] is not a
     * [GroupIdentifier].
     */
    public fun asGroupIdentifier(): kotlin.String = (this as Member.GroupIdentifier).value

    /**
     * Casts this [Member] as a [GroupIdentifier] and retrieves its [kotlin.String] value. Returns null if the [Member] is not a [GroupIdentifier].
     */
    public fun asGroupIdentifierOrNull(): kotlin.String? = (this as? Member.GroupIdentifier)?.value

    /**
     * Casts this [Member] as a [UserIdentifier] and retrieves its [kotlin.String] value. Throws an exception if the [Member] is not a
     * [UserIdentifier].
     */
    public fun asUserIdentifier(): kotlin.String = (this as Member.UserIdentifier).value

    /**
     * Casts this [Member] as a [UserIdentifier] and retrieves its [kotlin.String] value. Returns null if the [Member] is not a [UserIdentifier].
     */
    public fun asUserIdentifierOrNull(): kotlin.String? = (this as? Member.UserIdentifier)?.value
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy