content: package com.alibaba.sreworks.pmdb.domain.metric;
  
  import java.io.Serializable;
  import java.util.Date;
  
  public class Metric implements Serializable {
      private Integer id;
  
      private String uid;
  
      private Date gmtCreate;
  
      private Date gmtModified;
  
      private String name;
  
      private String alias;
  
      private String type;
  
      private String labels;
  
      private String creator;
  
      private String lastModifier;
  
      private String description;
  
      private static final long serialVersionUID = 1L;
  
      public Integer getId() {
          return id;
      }
  
      public void setId(Integer id) {
          this.id = id;
      }
  
      public String getUid() {
          return uid;
      }
  
      public void setUid(String uid) {
          this.uid = uid == null ? null : uid.trim();
      }
  
      public Date getGmtCreate() {
          return gmtCreate;
      }
  
      public void setGmtCreate(Date gmtCreate) {
          this.gmtCreate = gmtCreate;
      }
  
      public Date getGmtModified() {
          return gmtModified;
      }
  
      public void setGmtModified(Date gmtModified) {
          this.gmtModified = gmtModified;
      }
  
      public String getName() {
          return name;
      }
  
      public void setName(String name) {
          this.name = name == null ? null : name.trim();
      }
  
      public String getAlias() {
          return alias;
      }
  
      public void setAlias(String alias) {
          this.alias = alias == null ? null : alias.trim();
      }
  
      public String getType() {
          return type;
      }
  
      public void setType(String type) {
          this.type = type == null ? null : type.trim();
      }
  
      public String getLabels() {
          return labels;
      }
  
      public void setLabels(String labels) {
          this.labels = labels == null ? null : labels.trim();
      }
  
      public String getCreator() {
          return creator;
      }
  
      public void setCreator(String creator) {
          this.creator = creator == null ? null : creator.trim();
      }
  
      public String getLastModifier() {
          return lastModifier;
      }
  
      public void setLastModifier(String lastModifier) {
          this.lastModifier = lastModifier == null ? null : lastModifier.trim();
      }
  
      public String getDescription() {
          return description;
      }
  
      public void setDescription(String description) {
          this.description = description == null ? null : description.trim();
      }
  
      @Override
      public boolean equals(Object that) {
          if (this == that) {
              return true;
          }
          if (that == null) {
              return false;
          }
          if (getClass() != that.getClass()) {
              return false;
          }
          Metric other = (Metric) that;
          return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
              && (this.getUid() == null ? other.getUid() == null : this.getUid().equals(other.getUid()))
              && (this.getGmtCreate() == null ? other.getGmtCreate() == null : this.getGmtCreate().equals(other.getGmtCreate()))
              && (this.getGmtModified() == null ? other.getGmtModified() == null : this.getGmtModified().equals(other.getGmtModified()))
              && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
              && (this.getAlias() == null ? other.getAlias() == null : this.getAlias().equals(other.getAlias()))
              && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
              && (this.getLabels() == null ? other.getLabels() == null : this.getLabels().equals(other.getLabels()))
              && (this.getCreator() == null ? other.getCreator() == null : this.getCreator().equals(other.getCreator()))
              && (this.getLastModifier() == null ? other.getLastModifier() == null : this.getLastModifier().equals(other.getLastModifier()))
              && (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription()));
      }
  
      @Override
      public int hashCode() {
          final int prime = 31;
          int result = 1;
          result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
          result = prime * result + ((getUid() == null) ? 0 : getUid().hashCode());
          result = prime * result + ((getGmtCreate() == null) ? 0 : getGmtCreate().hashCode());
          result = prime * result + ((getGmtModified() == null) ? 0 : getGmtModified().hashCode());
          result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
          result = prime * result + ((getAlias() == null) ? 0 : getAlias().hashCode());
          result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
          result = prime * result + ((getLabels() == null) ? 0 : getLabels().hashCode());
          result = prime * result + ((getCreator() == null) ? 0 : getCreator().hashCode());
          result = prime * result + ((getLastModifier() == null) ? 0 : getLastModifier().hashCode());
          result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode());
          return result;
      }
  
      @Override
      public String toString() {
          StringBuilder sb = new StringBuilder();
          sb.append(getClass().getSimpleName());
          sb.append(" [");
          sb.append("Hash = ").append(hashCode());
          sb.append(", id=").append(id);
          sb.append(", uid=").append(uid);
          sb.append(", gmtCreate=").append(gmtCreate);
          sb.append(", gmtModified=").append(gmtModified);
          sb.append(", name=").append(name);
          sb.append(", alias=").append(alias);
          sb.append(", type=").append(type);
          sb.append(", labels=").append(labels);
          sb.append(", creator=").append(creator);
          sb.append(", lastModifier=").append(lastModifier);
          sb.append(", description=").append(description);
          sb.append(", serialVersionUID=").append(serialVersionUID);
          sb.append("]");
          return sb.toString();
      }
  }