/*
 * SonarQube
 * Copyright (C) 2009-2023 SonarSource SA
 * mailto:info AT sonarsource DOT com
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 3 of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */
package org.sonarqube.ws.client.rules;

import java.util.List;
import javax.annotation.Generated;

/**
 * This is part of the internal API.
 * This is a POST request.
 * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/rules/update">Further information about this action online (including a response example)</a>
 * @since 4.4
 */
@Generated("sonar-ws-generator")
public class UpdateRequest {

  private String key;
  private String markdownDescription;
  private String markdownNote;
  private String name;
  private List<String> params;
  private String remediationFnBaseEffort;
  private String remediationFnType;
  private String remediationFyGapMultiplier;
  private String severity;
  private String status;
  private List<String> tags;

  /**
   * This is a mandatory parameter.
   * Example value: "javascript:NullCheck"
   */
  public UpdateRequest setKey(String key) {
    this.key = key;
    return this;
  }

  public String getKey() {
    return key;
  }

  /**
   * Example value: "Description of my custom rule"
   */
  public UpdateRequest setMarkdownDescription(String markdownDescription) {
    this.markdownDescription = markdownDescription;
    return this;
  }

  public String getMarkdownDescription() {
    return markdownDescription;
  }

  /**
   * Example value: "my *note*"
   */
  public UpdateRequest setMarkdownNote(String markdownNote) {
    this.markdownNote = markdownNote;
    return this;
  }

  public String getMarkdownNote() {
    return markdownNote;
  }

  /**
   * Example value: "My custom rule"
   */
  public UpdateRequest setName(String name) {
    this.name = name;
    return this;
  }

  public String getName() {
    return name;
  }

  /**
   */
  public UpdateRequest setParams(List<String> params) {
    this.params = params;
    return this;
  }

  public List<String> getParams() {
    return params;
  }

  /**
   * Example value: "1d"
   */
  public UpdateRequest setRemediationFnBaseEffort(String remediationFnBaseEffort) {
    this.remediationFnBaseEffort = remediationFnBaseEffort;
    return this;
  }

  public String getRemediationFnBaseEffort() {
    return remediationFnBaseEffort;
  }

  /**
   * Possible values:
   * <ul>
   *   <li>"LINEAR"</li>
   *   <li>"LINEAR_OFFSET"</li>
   *   <li>"CONSTANT_ISSUE"</li>
   * </ul>
   */
  public UpdateRequest setRemediationFnType(String remediationFnType) {
    this.remediationFnType = remediationFnType;
    return this;
  }

  public String getRemediationFnType() {
    return remediationFnType;
  }

  /**
   * Example value: "3min"
   */
  public UpdateRequest setRemediationFyGapMultiplier(String remediationFyGapMultiplier) {
    this.remediationFyGapMultiplier = remediationFyGapMultiplier;
    return this;
  }

  public String getRemediationFyGapMultiplier() {
    return remediationFyGapMultiplier;
  }

  /**
   * Possible values:
   * <ul>
   *   <li>"INFO"</li>
   *   <li>"MINOR"</li>
   *   <li>"MAJOR"</li>
   *   <li>"CRITICAL"</li>
   *   <li>"BLOCKER"</li>
   * </ul>
   */
  public UpdateRequest setSeverity(String severity) {
    this.severity = severity;
    return this;
  }

  public String getSeverity() {
    return severity;
  }

  /**
   * Possible values:
   * <ul>
   *   <li>"BETA"</li>
   *   <li>"DEPRECATED"</li>
   *   <li>"READY"</li>
   *   <li>"REMOVED"</li>
   * </ul>
   */
  public UpdateRequest setStatus(String status) {
    this.status = status;
    return this;
  }

  public String getStatus() {
    return status;
  }

  /**
   * Example value: "java8,security"
   */
  public UpdateRequest setTags(List<String> tags) {
    this.tags = tags;
    return this;
  }

  public List<String> getTags() {
    return tags;
  }
}
