asOneTime

Casts this Schedule as a OneTime and retrieves its aws.sdk.kotlin.services.inspector2.model.OneTimeSchedule value. Throws an exception if the Schedule is not a OneTime.