/*
 * Copyright 2018 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.discovery.v1.model;

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

/**
 * An object speficying the Entities enrichment and related parameters.
 */
public class NluEnrichmentEntities extends GenericModel {

  private Boolean sentiment;
  private Boolean emotion;
  private Long limit;
  private Boolean mentions;
  @SerializedName("mention_types")
  private Boolean mentionTypes;
  @SerializedName("sentence_location")
  private Boolean sentenceLocation;
  private String model;

  /**
   * Builder.
   */
  public static class Builder {
    private Boolean sentiment;
    private Boolean emotion;
    private Long limit;
    private Boolean mentions;
    private Boolean mentionTypes;
    private Boolean sentenceLocation;
    private String model;

    private Builder(NluEnrichmentEntities nluEnrichmentEntities) {
      sentiment = nluEnrichmentEntities.sentiment;
      emotion = nluEnrichmentEntities.emotion;
      limit = nluEnrichmentEntities.limit;
      mentions = nluEnrichmentEntities.mentions;
      mentionTypes = nluEnrichmentEntities.mentionTypes;
      sentenceLocation = nluEnrichmentEntities.sentenceLocation;
      model = nluEnrichmentEntities.model;
    }

    /**
     * Instantiates a new builder.
     */
    public Builder() {
    }

    /**
     * Builds a NluEnrichmentEntities.
     *
     * @return the nluEnrichmentEntities
     */
    public NluEnrichmentEntities build() {
      return new NluEnrichmentEntities(this);
    }

    /**
     * Set the sentiment.
     *
     * @param sentiment the sentiment
     * @return the NluEnrichmentEntities builder
     */
    public Builder sentiment(Boolean sentiment) {
      this.sentiment = sentiment;
      return this;
    }

    /**
     * Set the emotion.
     *
     * @param emotion the emotion
     * @return the NluEnrichmentEntities builder
     */
    public Builder emotion(Boolean emotion) {
      this.emotion = emotion;
      return this;
    }

    /**
     * Set the limit.
     *
     * @param limit the limit
     * @return the NluEnrichmentEntities builder
     */
    public Builder limit(long limit) {
      this.limit = limit;
      return this;
    }

    /**
     * Set the mentions.
     *
     * @param mentions the mentions
     * @return the NluEnrichmentEntities builder
     */
    public Builder mentions(Boolean mentions) {
      this.mentions = mentions;
      return this;
    }

    /**
     * Set the mentionTypes.
     *
     * @param mentionTypes the mentionTypes
     * @return the NluEnrichmentEntities builder
     */
    public Builder mentionTypes(Boolean mentionTypes) {
      this.mentionTypes = mentionTypes;
      return this;
    }

    /**
     * Set the sentenceLocation.
     *
     * @param sentenceLocation the sentenceLocation
     * @return the NluEnrichmentEntities builder
     */
    public Builder sentenceLocation(Boolean sentenceLocation) {
      this.sentenceLocation = sentenceLocation;
      return this;
    }

    /**
     * Set the model.
     *
     * @param model the model
     * @return the NluEnrichmentEntities builder
     */
    public Builder model(String model) {
      this.model = model;
      return this;
    }
  }

  private NluEnrichmentEntities(Builder builder) {
    sentiment = builder.sentiment;
    emotion = builder.emotion;
    limit = builder.limit;
    mentions = builder.mentions;
    mentionTypes = builder.mentionTypes;
    sentenceLocation = builder.sentenceLocation;
    model = builder.model;
  }

  /**
   * New builder.
   *
   * @return a NluEnrichmentEntities builder
   */
  public Builder newBuilder() {
    return new Builder(this);
  }

  /**
   * Gets the sentiment.
   *
   * When `true`, sentiment analysis of entities will be performed on the specified field.
   *
   * @return the sentiment
   */
  public Boolean sentiment() {
    return sentiment;
  }

  /**
   * Gets the emotion.
   *
   * When `true`, emotion detection of entities will be performed on the specified field.
   *
   * @return the emotion
   */
  public Boolean emotion() {
    return emotion;
  }

  /**
   * Gets the limit.
   *
   * The maximum number of entities to extract for each instance of the specified field.
   *
   * @return the limit
   */
  public Long limit() {
    return limit;
  }

  /**
   * Gets the mentions.
   *
   * When `true`, the number of mentions of each identified entity is recorded. The default is `false`.
   *
   * @return the mentions
   */
  public Boolean mentions() {
    return mentions;
  }

  /**
   * Gets the mentionTypes.
   *
   * When `true`, the types of mentions for each idetifieid entity is recorded. The default is `false`.
   *
   * @return the mentionTypes
   */
  public Boolean mentionTypes() {
    return mentionTypes;
  }

  /**
   * Gets the sentenceLocation.
   *
   * When `true`, a list of sentence locations for each instance of each identified entity is recorded. The default is
   * `false`.
   *
   * @return the sentenceLocation
   */
  public Boolean sentenceLocation() {
    return sentenceLocation;
  }

  /**
   * Gets the model.
   *
   * The enrichement model to use with entity extraction. May be a custom model provided by Watson Knowledge Studio, the
   * public model for use with Knowledge Graph `en-news`, or the default public model `alchemy`.
   *
   * @return the model
   */
  public String model() {
    return model;
  }
}

@@ -1120,16 +1120,17 @@
 location
+s
 %22)%0A  pri
@@ -1154,24 +1154,25 @@
 enceLocation
+s
 ;%0A  private 
@@ -1424,24 +1424,25 @@
 enceLocation
+s
 ;%0A    privat
@@ -1790,24 +1790,25 @@
 enceLocation
+s
  = nluEnrich
@@ -1828,32 +1828,33 @@
 sentenceLocation
+s
 ;%0A      model = 
@@ -3403,24 +3403,25 @@
 enceLocation
+s
 .%0A     *%0A   
@@ -3443,24 +3443,25 @@
 enceLocation
+s
  the sentenc
@@ -3465,24 +3465,25 @@
 enceLocation
+s
 %0A     * @ret
@@ -3559,24 +3559,25 @@
 enceLocation
+s
 (Boolean sen
@@ -3585,24 +3585,25 @@
 enceLocation
+s
 ) %7B%0A      th
@@ -3621,16 +3621,17 @@
 Location
+s
  = sente
@@ -3637,24 +3637,25 @@
 enceLocation
+s
 ;%0A      retu
@@ -4125,24 +4125,25 @@
 enceLocation
+s
  = builder.s
@@ -4153,24 +4153,25 @@
 enceLocation
+s
 ;%0A    model 
@@ -5490,24 +5490,25 @@
 enceLocation
+s
 .%0A   *%0A   * 
@@ -5669,24 +5669,25 @@
 enceLocation
+s
 %0A   */%0A  pub
@@ -5710,24 +5710,25 @@
 enceLocation
+s
 () %7B%0A    ret
@@ -5743,24 +5743,25 @@
 enceLocation
+s
 ;%0A  %7D%0A%0A  /**

Correct misspelled property