commonMain.aws.sdk.kotlin.services.datazone.model.OwnerPropertiesOutput.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 ID of the domain unit owners group.
*/
public sealed class OwnerPropertiesOutput {
/**
* Specifies that the domain unit owner is a group.
*/
public data class Group(val value: aws.sdk.kotlin.services.datazone.model.OwnerGroupPropertiesOutput) : aws.sdk.kotlin.services.datazone.model.OwnerPropertiesOutput() {
}
/**
* Specifies that the domain unit owner is a user.
*/
public data class User(val value: aws.sdk.kotlin.services.datazone.model.OwnerUserPropertiesOutput) : aws.sdk.kotlin.services.datazone.model.OwnerPropertiesOutput() {
}
public object SdkUnknown : aws.sdk.kotlin.services.datazone.model.OwnerPropertiesOutput() {
}
/**
* Casts this [OwnerPropertiesOutput] as a [Group] and retrieves its [aws.sdk.kotlin.services.datazone.model.OwnerGroupPropertiesOutput] value. Throws an exception if the [OwnerPropertiesOutput] is not a
* [Group].
*/
public fun asGroup(): aws.sdk.kotlin.services.datazone.model.OwnerGroupPropertiesOutput = (this as OwnerPropertiesOutput.Group).value
/**
* Casts this [OwnerPropertiesOutput] as a [Group] and retrieves its [aws.sdk.kotlin.services.datazone.model.OwnerGroupPropertiesOutput] value. Returns null if the [OwnerPropertiesOutput] is not a [Group].
*/
public fun asGroupOrNull(): aws.sdk.kotlin.services.datazone.model.OwnerGroupPropertiesOutput? = (this as? OwnerPropertiesOutput.Group)?.value
/**
* Casts this [OwnerPropertiesOutput] as a [User] and retrieves its [aws.sdk.kotlin.services.datazone.model.OwnerUserPropertiesOutput] value. Throws an exception if the [OwnerPropertiesOutput] is not a
* [User].
*/
public fun asUser(): aws.sdk.kotlin.services.datazone.model.OwnerUserPropertiesOutput = (this as OwnerPropertiesOutput.User).value
/**
* Casts this [OwnerPropertiesOutput] as a [User] and retrieves its [aws.sdk.kotlin.services.datazone.model.OwnerUserPropertiesOutput] value. Returns null if the [OwnerPropertiesOutput] is not a [User].
*/
public fun asUserOrNull(): aws.sdk.kotlin.services.datazone.model.OwnerUserPropertiesOutput? = (this as? OwnerPropertiesOutput.User)?.value
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy