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

commonMain.aws.sdk.kotlin.services.partnercentralselling.model.Receiver.kt Maven / Gradle / Ivy

There is a newer version: 1.3.79
Show newest version
// 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
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy