commonMain.aws.sdk.kotlin.services.partnercentralselling.model.Receiver.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of partnercentralselling-jvm Show documentation
Show all versions of partnercentralselling-jvm Show documentation
The AWS SDK for Kotlin client for PartnerCentral Selling
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.partnercentralselling.model
/**
* Represents the entity that received the Engagement Invitation, including account and company details. This field is essential for tracking the partner who is being invited to collaborate.
*/
public sealed class Receiver {
/**
* Specifies the AWS account of the partner who received the Engagement Invitation. This field is used to track the invitation recipient within the AWS ecosystem.
*/
public data class Account(val value: aws.sdk.kotlin.services.partnercentralselling.model.AccountReceiver) : aws.sdk.kotlin.services.partnercentralselling.model.Receiver() {
}
public object SdkUnknown : aws.sdk.kotlin.services.partnercentralselling.model.Receiver() {
}
/**
* Casts this [Receiver] as a [Account] and retrieves its [aws.sdk.kotlin.services.partnercentralselling.model.AccountReceiver] value. Throws an exception if the [Receiver] is not a
* [Account].
*/
public fun asAccount(): aws.sdk.kotlin.services.partnercentralselling.model.AccountReceiver = (this as Receiver.Account).value
/**
* Casts this [Receiver] as a [Account] and retrieves its [aws.sdk.kotlin.services.partnercentralselling.model.AccountReceiver] value. Returns null if the [Receiver] is not a [Account].
*/
public fun asAccountOrNull(): aws.sdk.kotlin.services.partnercentralselling.model.AccountReceiver? = (this as? Receiver.Account)?.value
}