All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonarqube.ws.client.issues.SearchRequest Maven / Gradle / Ivy

There is a newer version: 10.7.0.96327
Show newest version
/*
 * 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.issues;

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

/**
 * This is part of the internal API.
 * This is a POST request.
 * @see Further information about this action online (including a response example)
 * @since 3.6
 */
@Generated("sonar-ws-generator")
public class SearchRequest {

  private List additionalFields;
  private String asc;
  private String assigned;
  private List assignees;
  private List author;
  private String branch;
  private List componentKeys;
  private List componentUuids;
  private String createdAfter;
  private String createdAt;
  private String createdBefore;
  private String createdInLast;
  private List cwe;
  private List directories;
  private String facetMode;
  private List facets;
  private List fileUuids;
  private List issues;
  private List languages;
  private String onComponentOnly;
  private List owaspTop10;
  private String p;
  private List projects;
  private String ps;
  private String pullRequest;
  private List resolutions;
  private String resolved;
  private List rules;
  private String s;
  private List sansTop25;
  private List severities;
  private String sinceLeakPeriod;
  private List sonarsourceSecurity;
  private List statuses;
  private List tags;
  private List types;

  /**
   * Possible values:
   * 
    *
  • "_all"
  • *
  • "comments"
  • *
  • "languages"
  • *
  • "actionPlans"
  • *
  • "rules"
  • *
  • "transitions"
  • *
  • "actions"
  • *
  • "users"
  • *
*/ public SearchRequest setAdditionalFields(List additionalFields) { this.additionalFields = additionalFields; return this; } public List getAdditionalFields() { return additionalFields; } /** * Possible values: *
    *
  • "true"
  • *
  • "false"
  • *
  • "yes"
  • *
  • "no"
  • *
*/ public SearchRequest setAsc(String asc) { this.asc = asc; return this; } public String getAsc() { return asc; } /** * Possible values: *
    *
  • "true"
  • *
  • "false"
  • *
  • "yes"
  • *
  • "no"
  • *
*/ public SearchRequest setAssigned(String assigned) { this.assigned = assigned; return this; } public String getAssigned() { return assigned; } /** * Example value: "admin,usera,__me__" */ public SearchRequest setAssignees(List assignees) { this.assignees = assignees; return this; } public List getAssignees() { return assignees; } /** * Example value: "[email protected][email protected]" */ public SearchRequest setAuthor(List author) { this.author = author; return this; } public List getAuthor() { return author; } /** * This is part of the internal API. * Example value: "feature/my_branch" */ public SearchRequest setBranch(String branch) { this.branch = branch; return this; } public String getBranch() { return branch; } /** * Example value: "my_project" */ public SearchRequest setComponentKeys(List componentKeys) { this.componentKeys = componentKeys; return this; } public List getComponentKeys() { return componentKeys; } /** * Example value: "584a89f2-8037-4f7b-b82c-8b45d2d63fb2" * @deprecated since 6.5 */ @Deprecated public SearchRequest setComponentUuids(List componentUuids) { this.componentUuids = componentUuids; return this; } public List getComponentUuids() { return componentUuids; } /** * Example value: "2017-10-19 or 2017-10-19T13:00:00+0200" */ public SearchRequest setCreatedAfter(String createdAfter) { this.createdAfter = createdAfter; return this; } public String getCreatedAfter() { return createdAfter; } /** * Example value: "2017-10-19T13:00:00+0200" */ public SearchRequest setCreatedAt(String createdAt) { this.createdAt = createdAt; return this; } public String getCreatedAt() { return createdAt; } /** * Example value: "2017-10-19 or 2017-10-19T13:00:00+0200" */ public SearchRequest setCreatedBefore(String createdBefore) { this.createdBefore = createdBefore; return this; } public String getCreatedBefore() { return createdBefore; } /** * Example value: "1m2w (1 month 2 weeks)" */ public SearchRequest setCreatedInLast(String createdInLast) { this.createdInLast = createdInLast; return this; } public String getCreatedInLast() { return createdInLast; } /** * Example value: "12,125,unknown" */ public SearchRequest setCwe(List cwe) { this.cwe = cwe; return this; } public List getCwe() { return cwe; } /** * This is part of the internal API. * Example value: "src/main/java/org/sonar/server/" */ public SearchRequest setDirectories(List directories) { this.directories = directories; return this; } public List getDirectories() { return directories; } /** * Possible values: *
    *
  • "projects"
  • *
  • "moduleUuids"
  • *
  • "fileUuids"
  • *
  • "assigned_to_me"
  • *
  • "severities"
  • *
  • "statuses"
  • *
  • "resolutions"
  • *
  • "actionPlans"
  • *
  • "rules"
  • *
  • "assignees"
  • *
  • "reporters"
  • *
  • "authors"
  • *
  • "author"
  • *
  • "directories"
  • *
  • "languages"
  • *
  • "tags"
  • *
  • "types"
  • *
  • "owaspTop10"
  • *
  • "sansTop25"
  • *
  • "cwe"
  • *
  • "createdAt"
  • *
  • "sonarsourceSecurity"
  • *
*/ public SearchRequest setFacets(List facets) { this.facets = facets; return this; } public List getFacets() { return facets; } /** * This is part of the internal API. * Example value: "bdd82933-3070-4903-9188-7d8749e8bb92" */ public SearchRequest setFileUuids(List fileUuids) { this.fileUuids = fileUuids; return this; } public List getFileUuids() { return fileUuids; } /** * Example value: "5bccd6e8-f525-43a2-8d76-fcb13dde79ef" */ public SearchRequest setIssues(List issues) { this.issues = issues; return this; } public List getIssues() { return issues; } /** * Example value: "java,js" */ public SearchRequest setLanguages(List languages) { this.languages = languages; return this; } public List getLanguages() { return languages; } /** * Possible values: *
    *
  • "true"
  • *
  • "false"
  • *
  • "yes"
  • *
  • "no"
  • *
*/ public SearchRequest setOnComponentOnly(String onComponentOnly) { this.onComponentOnly = onComponentOnly; return this; } public String getOnComponentOnly() { return onComponentOnly; } /** * Possible values: *
    *
  • "a1"
  • *
  • "a2"
  • *
  • "a3"
  • *
  • "a4"
  • *
  • "a5"
  • *
  • "a6"
  • *
  • "a7"
  • *
  • "a8"
  • *
  • "a9"
  • *
  • "a10"
  • *
  • "unknown"
  • *
*/ public SearchRequest setOwaspTop10(List owaspTop10) { this.owaspTop10 = owaspTop10; return this; } public List getOwaspTop10() { return owaspTop10; } /** * Example value: "42" */ public SearchRequest setP(String p) { this.p = p; return this; } public String getP() { return p; } /** * This is part of the internal API. * Example value: "my_project" */ public SearchRequest setProjects(List projects) { this.projects = projects; return this; } public List getProjects() { return projects; } /** * Example value: "20" */ public SearchRequest setPs(String ps) { this.ps = ps; return this; } public String getPs() { return ps; } /** * This is part of the internal API. * Example value: "5461" */ public SearchRequest setPullRequest(String pullRequest) { this.pullRequest = pullRequest; return this; } public String getPullRequest() { return pullRequest; } /** * Example value: "FIXED,REMOVED" * Possible values: *
    *
  • "FALSE-POSITIVE"
  • *
  • "WONTFIX"
  • *
  • "FIXED"
  • *
  • "REMOVED"
  • *
*/ public SearchRequest setResolutions(List resolutions) { this.resolutions = resolutions; return this; } public List getResolutions() { return resolutions; } /** * Possible values: *
    *
  • "true"
  • *
  • "false"
  • *
  • "yes"
  • *
  • "no"
  • *
*/ public SearchRequest setResolved(String resolved) { this.resolved = resolved; return this; } public String getResolved() { return resolved; } /** * Example value: "java:AvoidCycles" */ public SearchRequest setRules(List rules) { this.rules = rules; return this; } public List getRules() { return rules; } /** * Possible values: *
    *
  • "CREATION_DATE"
  • *
  • "UPDATE_DATE"
  • *
  • "CLOSE_DATE"
  • *
  • "ASSIGNEE"
  • *
  • "SEVERITY"
  • *
  • "STATUS"
  • *
  • "FILE_LINE"
  • *
*/ public SearchRequest setS(String s) { this.s = s; return this; } public String getS() { return s; } /** * Possible values: *
    *
  • "insecure-interaction"
  • *
  • "risky-resource"
  • *
  • "porous-defenses"
  • *
*/ public SearchRequest setSansTop25(List sansTop25) { this.sansTop25 = sansTop25; return this; } public List getSansTop25() { return sansTop25; } /** * Example value: "BLOCKER,CRITICAL" * Possible values: *
    *
  • "INFO"
  • *
  • "MINOR"
  • *
  • "MAJOR"
  • *
  • "CRITICAL"
  • *
  • "BLOCKER"
  • *
*/ public SearchRequest setSeverities(List severities) { this.severities = severities; return this; } public List getSeverities() { return severities; } /** * Possible values: *
    *
  • "true"
  • *
  • "false"
  • *
  • "yes"
  • *
  • "no"
  • *
*/ public SearchRequest setSinceLeakPeriod(String sinceLeakPeriod) { this.sinceLeakPeriod = sinceLeakPeriod; return this; } public String getSinceLeakPeriod() { return sinceLeakPeriod; } /** * Possible values: *
    *
  • "sql-injection"
  • *
  • "command-injection"
  • *
  • "path-traversal-injection"
  • *
  • "ldap-injection"
  • *
  • "xpath-injection"
  • *
  • "expression-lang-injection"
  • *
  • "rce"
  • *
  • "dos"
  • *
  • "ssrf"
  • *
  • "csrf"
  • *
  • "xss"
  • *
  • "log-injection"
  • *
  • "http-response-splitting"
  • *
  • "open-redirect"
  • *
  • "xxe"
  • *
  • "object-injection"
  • *
  • "weak-cryptography"
  • *
  • "auth"
  • *
  • "insecure-conf"
  • *
  • "file-manipulation"
  • *
*/ public SearchRequest setSonarsourceSecurity(List sonarsourceSecurity) { this.sonarsourceSecurity = sonarsourceSecurity; return this; } public List getSonarsourceSecurity() { return sonarsourceSecurity; } /** * Example value: "OPEN,REOPENED" * Possible values: *
    *
  • "OPEN"
  • *
  • "CONFIRMED"
  • *
  • "REOPENED"
  • *
  • "RESOLVED"
  • *
  • "CLOSED"
  • *
*/ public SearchRequest setStatuses(List statuses) { this.statuses = statuses; return this; } public List getStatuses() { return statuses; } /** * Example value: "security,convention" */ public SearchRequest setTags(List tags) { this.tags = tags; return this; } public List getTags() { return tags; } /** * Example value: "CODE_SMELL,BUG" * Possible values: *
    *
  • "CODE_SMELL"
  • *
  • "BUG"
  • *
  • "VULNERABILITY"
  • *
  • "SECURITY_HOTSPOT"
  • *
*/ public SearchRequest setTypes(List types) { this.types = types; return this; } public List getTypes() { return types; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy