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