001    /*
002     * SonarQube, open source software quality management tool.
003     * Copyright (C) 2008-2014 SonarSource
004     * mailto:contact AT sonarsource DOT com
005     *
006     * SonarQube 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     * SonarQube 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    package org.sonar.wsclient.services;
021    
022    import javax.annotation.CheckForNull;
023    import javax.annotation.Nullable;
024    
025    public class Favourite extends Model {
026    
027      private Integer id;
028      private String key;
029      private String name;
030      private String scope;
031      private String qualifier;
032      private String language;
033    
034      @CheckForNull
035      public Integer getId() {
036        return id;
037      }
038    
039      public Favourite setId(@Nullable Integer id) {
040        this.id = id;
041        return this;
042      }
043    
044      @CheckForNull
045      public String getKey() {
046        return key;
047      }
048    
049      public Favourite setKey(@Nullable String key) {
050        this.key = key;
051        return this;
052      }
053    
054      @CheckForNull
055      public String getName() {
056        return name;
057      }
058    
059    
060      public Favourite setName(@Nullable String name) {
061        this.name = name;
062        return this;
063      }
064    
065      @CheckForNull
066      public String getScope() {
067        return scope;
068      }
069    
070      public Favourite setScope(@Nullable String scope) {
071        this.scope = scope;
072        return this;
073      }
074    
075      @CheckForNull
076      public String getQualifier() {
077        return qualifier;
078      }
079    
080      public Favourite setQualifier(@Nullable String qualifier) {
081        this.qualifier = qualifier;
082        return this;
083      }
084    
085      @CheckForNull
086      public String getLanguage() {
087        return language;
088      }
089    
090      public Favourite setLanguage(@Nullable String language) {
091        this.language = language;
092        return this;
093      }
094    }