asLead
Casts this UpdateEngagementContextPayload as a Lead and retrieves its aws.sdk.kotlin.services.partnercentralselling.model.UpdateLeadContext value. Throws an exception if the UpdateEngagementContextPayload is not a Lead.
Casts this UpdateEngagementContextPayload as a Lead and retrieves its aws.sdk.kotlin.services.partnercentralselling.model.UpdateLeadContext value. Throws an exception if the UpdateEngagementContextPayload is not a Lead.