/*
 * Copyright 2015 IBM Corp. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
 * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
 * specific language governing permissions and limitations under the License.
 */
package com.ibm.watson.developer_cloud.speech_to_text.v1.model;

import java.util.Date;
import java.util.List;

import com.google.gson.annotations.SerializedName;
import com.ibm.watson.developer_cloud.service.model.GenericModel;

/**
 * Information about an asynchronous recognition. If the status is completed, the response includes the results of the
 * recognition request; otherwise, the response includes the <code>id</code>.
 */
public class RecognitionJob extends GenericModel {

  /**
   * RecognitionJob Status.
   */
  public enum Status {

    /** completed. */
    @SerializedName("completed") COMPLETED,

    /** failed. */
    @SerializedName("failed") FAILED,

    /** processing. */
    @SerializedName("processing") PROCESSING,

    /** waiting. */
    @SerializedName("waiting") WAITING
  }

  private String id;
  private Status status;
  private Date created;
  private Date updated;
  private String url;

  @SerializedName("user_token")
  private String userToken;

  private List<SpeechResults> results;
  private List<String> warnings;

  /**
   * Gets the id.
   *
   * @return the id
   */
  public String getId() {
    return id;
  }

  /**
   * Gets the status.
   *
   * @return the status
   */
  public Status getStatus() {
    return status;
  }

  /**
   * Gets the created date.
   *
   * @return the created
   */
  public Date getCreated() {
    return created;
  }

  /**
   * Gets the updated date.
   *
   * @return the updated
   */
  public Date getUpdated() {
    return updated;
  }

  /**
   * Gets the callback url.
   *
   * @return the url
   */
  public String getUrl() {
    return url;
  }

  /**
   * Gets the user token.
   *
   * @return the user token
   */
  public String getUserToken() {
    return userToken;
  }

  /**
   * Gets the recognition results.
   *
   * @return the results
   */
  public List<SpeechResults> getResults() {
    return results;
  }

  /**
   * Gets the warnings if present.
   *
   * @return the warnings
   */
  public List<String> getWarnings() {
    return warnings;
  }

  /**
   * Sets the id.
   *
   * @param id the new id
   */
  public void setId(String id) {
    this.id = id;
  }

  /**
   * Sets the status.
   *
   * @param status the new status
   */
  public void setStatus(Status status) {
    this.status = status;
  }

  /**
   * Sets the created date.
   *
   * @param created the new created
   */
  public void setCreated(Date created) {
    this.created = created;
  }

  /**
   * Sets the updated date.
   *
   * @param updated the new updated
   */
  public void setUpdated(Date updated) {
    this.updated = updated;
  }

  /**
   * Sets the callback url.
   *
   * @param url the new callback url
   */
  public void setUrl(String url) {
    this.url = url;
  }

  /**
   * Sets the user token.
   *
   * @param userToken the new user token
   */
  public void setUserToken(String userToken) {
    this.userToken = userToken;
  }

  /**
   * Sets the recognition results.
   *
   * @param results the new results
   */
  public void setResults(List<SpeechResults> results) {
    this.results = results;
  }

  /**
   * Sets the warnings if present.
   *
   * @params warnings the new warnings.
   */
  public void setWarnings(List<String> warnings) {
    this.warnings = warnings;
  }
}

@@ -1667,32 +1667,36 @@
 *%0A   * Gets the 
+job 
 id.%0A   *%0A   * @r
@@ -1705,16 +1705,20 @@
 urn the 
+job 
 id%0A   */
@@ -1936,32 +1936,37 @@
 turn the created
+ date
 %0A   */%0A  public 
@@ -2065,32 +2065,37 @@
 turn the updated
+ date
 %0A   */%0A  public 
@@ -2195,16 +2195,25 @@
 urn the 
+callback 
 url%0A   *
@@ -3797,17 +3797,16 @@
 * @param
-s
  warning
@@ -3823,17 +3823,16 @@
 warnings
-.
 %0A   */%0A 

Fix JavaDoc error.