001/* 002 * SonarQube 003 * Copyright (C) 2009-2016 SonarSource SA 004 * mailto:contact AT sonarsource DOT com 005 * 006 * This program is free software; you can redistribute it and/or 007 * modify it under the terms of the GNU Lesser General Public 008 * License as published by the Free Software Foundation; either 009 * version 3 of the License, or (at your option) any later version. 010 * 011 * This program is distributed in the hope that it will be useful, 012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 014 * Lesser General Public License for more details. 015 * 016 * You should have received a copy of the GNU Lesser General Public License 017 * along with this program; if not, write to the Free Software Foundation, 018 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 019 */ 020 021package org.sonarqube.ws.client.ce; 022 023import java.util.List; 024import javax.annotation.CheckForNull; 025import javax.annotation.Nullable; 026 027public class ActivityWsRequest { 028 private String componentId; 029 private String query; 030 private List<String> status; 031 private String type; 032 private Boolean onlyCurrents; 033 private String minSubmittedAt; 034 private String maxExecutedAt; 035 private Integer page; 036 private Integer pageSize; 037 038 @CheckForNull 039 public String getComponentId() { 040 return componentId; 041 } 042 043 public ActivityWsRequest setComponentId(@Nullable String componentId) { 044 this.componentId = componentId; 045 return this; 046 } 047 048 @CheckForNull 049 public String getQuery() { 050 return query; 051 } 052 053 public ActivityWsRequest setQuery(@Nullable String query) { 054 this.query = query; 055 return this; 056 } 057 058 @CheckForNull 059 public List<String> getStatus() { 060 return status; 061 } 062 063 public ActivityWsRequest setStatus(@Nullable List<String> status) { 064 this.status = status; 065 return this; 066 } 067 068 @CheckForNull 069 public String getType() { 070 return type; 071 } 072 073 public ActivityWsRequest setType(@Nullable String type) { 074 this.type = type; 075 return this; 076 } 077 078 @CheckForNull 079 public Boolean getOnlyCurrents() { 080 return onlyCurrents; 081 } 082 083 public ActivityWsRequest setOnlyCurrents(@Nullable Boolean onlyCurrents) { 084 this.onlyCurrents = onlyCurrents; 085 return this; 086 } 087 088 @CheckForNull 089 public String getMinSubmittedAt() { 090 return minSubmittedAt; 091 } 092 093 public ActivityWsRequest setMinSubmittedAt(@Nullable String minSubmittedAt) { 094 this.minSubmittedAt = minSubmittedAt; 095 return this; 096 } 097 098 @CheckForNull 099 public String getMaxExecutedAt() { 100 return maxExecutedAt; 101 } 102 103 public ActivityWsRequest setMaxExecutedAt(@Nullable String maxExecutedAt) { 104 this.maxExecutedAt = maxExecutedAt; 105 return this; 106 } 107 108 @CheckForNull 109 public Integer getPage() { 110 return page; 111 } 112 113 public ActivityWsRequest setPage(@Nullable Integer page) { 114 this.page = page; 115 return this; 116 } 117 118 @CheckForNull 119 public Integer getPageSize() { 120 return pageSize; 121 } 122 123 public ActivityWsRequest setPageSize(@Nullable Integer pageSize) { 124 this.pageSize = pageSize; 125 return this; 126 } 127}