001/*
002 * Sonar, open source software quality management tool.
003 * Copyright (C) 2008-2012 SonarSource
004 * mailto:contact AT sonarsource DOT com
005 *
006 * Sonar 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 * Sonar 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
017 * License along with Sonar; if not, write to the Free Software
018 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02
019 */
020package org.sonar.wsclient.services;
021
022import java.util.Date;
023
024/**
025 * @since 2.10
026 */
027public class ManualMeasure extends Model {
028
029  private long id;
030  private String metricKey;
031  private String resourceKey;
032  private Double value;
033  private String textValue;
034  private Date createdAt;
035  private Date updatedAt;
036  private String userLogin;
037  private String username;
038
039  public ManualMeasure() {
040  }
041
042  public long getId() {
043    return id;
044  }
045
046  public ManualMeasure setId(long id) {
047    this.id = id;
048    return this;
049  }
050
051  public String getMetricKey() {
052    return metricKey;
053  }
054
055  public ManualMeasure setMetricKey(String metricKey) {
056    this.metricKey = metricKey;
057    return this;
058  }
059
060  public Double getValue() {
061    return value;
062  }
063
064  public ManualMeasure setValue(Double value) {
065    this.value = value;
066    return this;
067  }
068
069  public String getTextValue() {
070    return textValue;
071  }
072
073  public ManualMeasure setTextValue(String textValue) {
074    this.textValue = textValue;
075    return this;
076  }
077
078  public Date getCreatedAt() {
079    return createdAt;
080  }
081
082  public ManualMeasure setCreatedAt(Date createdAt) {
083    this.createdAt = createdAt;
084    return this;
085  }
086
087  public Date getUpdatedAt() {
088    return updatedAt;
089  }
090
091  public ManualMeasure setUpdatedAt(Date updatedAt) {
092    this.updatedAt = updatedAt;
093    return this;
094  }
095
096  public String getUserLogin() {
097    return userLogin;
098  }
099
100  public ManualMeasure setUserLogin(String userLogin) {
101    this.userLogin = userLogin;
102    return this;
103  }
104
105  public String getUsername() {
106    return username;
107  }
108
109  public ManualMeasure setUsername(String username) {
110    this.username = username;
111    return this;
112  }
113
114  public String getResourceKey() {
115    return resourceKey;
116  }
117
118  public ManualMeasure setResourceKey(String resourceKey) {
119    this.resourceKey = resourceKey;
120    return this;
121  }
122
123  @Override
124  public String toString() {
125    return new StringBuilder().append("Measure{")
126        .append("id='").append(id).append('\'')
127        .append("resourceKey='").append(resourceKey).append('\'')
128        .append("metricKey='").append(metricKey).append('\'')
129        .append(", value=").append(value)
130        .append(", textValue='").append(textValue).append('\'')
131        .append('}').toString();
132  }
133}