
commonMain.aws.sdk.kotlin.services.partnercentralselling.model.Payload.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.partnercentralselling.model
/**
* Contains the data payload associated with the Engagement Invitation. This payload includes essential details related to the AWS opportunity and is used by partners to evaluate whether to accept or reject the engagement.
*/
public sealed class Payload {
/**
* Specifies the details of the opportunity invitation within the Engagement Invitation payload. This data helps partners understand the context, scope, and expected involvement for the opportunity from AWS.
*/
public data class OpportunityInvitation(val value: aws.sdk.kotlin.services.partnercentralselling.model.OpportunityInvitationPayload) : aws.sdk.kotlin.services.partnercentralselling.model.Payload() {
}
public object SdkUnknown : aws.sdk.kotlin.services.partnercentralselling.model.Payload() {
}
/**
* Casts this [Payload] as a [OpportunityInvitation] and retrieves its [aws.sdk.kotlin.services.partnercentralselling.model.OpportunityInvitationPayload] value. Throws an exception if the [Payload] is not a
* [OpportunityInvitation].
*/
public fun asOpportunityInvitation(): aws.sdk.kotlin.services.partnercentralselling.model.OpportunityInvitationPayload = (this as Payload.OpportunityInvitation).value
/**
* Casts this [Payload] as a [OpportunityInvitation] and retrieves its [aws.sdk.kotlin.services.partnercentralselling.model.OpportunityInvitationPayload] value. Returns null if the [Payload] is not a [OpportunityInvitation].
*/
public fun asOpportunityInvitationOrNull(): aws.sdk.kotlin.services.partnercentralselling.model.OpportunityInvitationPayload? = (this as? Payload.OpportunityInvitation)?.value
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy