public FailureConditions getOnFailure() {
        return this.onFailure;
    }
<p>
The method to use when a stage has not completed successfully. For example, configuring this field for rollback
will roll back a failed stage automatically to the last successful pipeline execution in the stage.
</p>

@return The method to use when a stage has not completed successfully. For example, configuring this field for
        rollback will roll back a failed stage automatically to the last successful pipeline execution in the
        stage.
aws-java-sdk-codepipeline/src/main/java/com/amazonaws/services/codepipeline/model/StageDeclaration.java