microsoft-bonsai-api-main/Java/com.microsoft.bonsai.api/simulator/generated/src/main/java/com/microsoft/bonsai/simulatorapi/models/EpisodeFinish.java
/**
 * Code generated by Microsoft (R) AutoRest Code Generator.
 * Changes may cause incorrect behavior and will be lost if the code is
 * regenerated.
 */

package com.microsoft.bonsai.simulatorapi.models;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * EpisodeFinish event signalling current episode is finished.
 */
public class EpisodeFinish {
    /**
     * Possible values include: 'Invalid', 'Unspecified', 'LessonChanged',
     * 'Terminal', 'Interrupted'.
     */
    @JsonProperty(value = "reason")
    private EpisodeFinishReason reason;

    /**
     * Get possible values include: 'Invalid', 'Unspecified', 'LessonChanged', 'Terminal', 'Interrupted'.
     *
     * @return the reason value
     */
    public EpisodeFinishReason reason() {
        return this.reason;
    }

    /**
     * Set possible values include: 'Invalid', 'Unspecified', 'LessonChanged', 'Terminal', 'Interrupted'.
     *
     * @param reason the reason value to set
     * @return the EpisodeFinish object itself.
     */
    public EpisodeFinish withReason(EpisodeFinishReason reason) {
        this.reason = reason;
        return this;
    }

}
