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

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