commonMain.aws.sdk.kotlin.services.datazone.model.GroupPolicyGrantPrincipal.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 group principal to whom the policy is granted.
*/
public sealed class GroupPolicyGrantPrincipal {
/**
* The ID Of the group of the group principal.
*/
public data class GroupIdentifier(val value: kotlin.String) : aws.sdk.kotlin.services.datazone.model.GroupPolicyGrantPrincipal() {
}
public object SdkUnknown : aws.sdk.kotlin.services.datazone.model.GroupPolicyGrantPrincipal() {
}
/**
* Casts this [GroupPolicyGrantPrincipal] as a [GroupIdentifier] and retrieves its [kotlin.String] value. Throws an exception if the [GroupPolicyGrantPrincipal] is not a
* [GroupIdentifier].
*/
public fun asGroupIdentifier(): kotlin.String = (this as GroupPolicyGrantPrincipal.GroupIdentifier).value
/**
* Casts this [GroupPolicyGrantPrincipal] as a [GroupIdentifier] and retrieves its [kotlin.String] value. Returns null if the [GroupPolicyGrantPrincipal] is not a [GroupIdentifier].
*/
public fun asGroupIdentifierOrNull(): kotlin.String? = (this as? GroupPolicyGrantPrincipal.GroupIdentifier)?.value
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy