asCompareAction

Casts this StepAction as a CompareAction and retrieves its aws.sdk.kotlin.services.apptest.model.CompareAction value. Throws an exception if the StepAction is not a CompareAction.