content: package com.alibaba.sreworks.pmdb.domain.metric;
  
  import java.io.Serializable;
  import java.util.Date;
  
  public class MetricAnomalyDetectionConfig implements Serializable {
      private Integer id;
  
      private Date gmtCreate;
  
      private Date gmtModified;
  
      private Integer ruleId;
  
      private Integer metricId;
  
      private Boolean enable;
  
      private String creator;
  
      private String owners;
  
      private String description;
  
      private static final long serialVersionUID = 1L;
  
      public Integer getId() {
          return id;
      }
  
      public void setId(Integer id) {
          this.id = id;
      }
  
      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 Integer getRuleId() {
          return ruleId;
      }
  
      public void setRuleId(Integer ruleId) {
          this.ruleId = ruleId;
      }
  
      public Integer getMetricId() {
          return metricId;
      }
  
      public void setMetricId(Integer metricId) {
          this.metricId = metricId;
      }
  
      public Boolean getEnable() {
          return enable;
      }
  
      public void setEnable(Boolean enable) {
          this.enable = enable;
      }
  
      public String getCreator() {
          return creator;
      }
  
      public void setCreator(String creator) {
          this.creator = creator == null ? null : creator.trim();
      }
  
      public String getOwners() {
          return owners;
      }
  
      public void setOwners(String owners) {
          this.owners = owners == null ? null : owners.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;
          }
          MetricAnomalyDetectionConfig other = (MetricAnomalyDetectionConfig) that;
          return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
              && (this.getGmtCreate() == null ? other.getGmtCreate() == null : this.getGmtCreate().equals(other.getGmtCreate()))
              && (this.getGmtModified() == null ? other.getGmtModified() == null : this.getGmtModified().equals(other.getGmtModified()))
              && (this.getRuleId() == null ? other.getRuleId() == null : this.getRuleId().equals(other.getRuleId()))
              && (this.getMetricId() == null ? other.getMetricId() == null : this.getMetricId().equals(other.getMetricId()))
              && (this.getEnable() == null ? other.getEnable() == null : this.getEnable().equals(other.getEnable()))
              && (this.getCreator() == null ? other.getCreator() == null : this.getCreator().equals(other.getCreator()))
              && (this.getOwners() == null ? other.getOwners() == null : this.getOwners().equals(other.getOwners()))
              && (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 + ((getGmtCreate() == null) ? 0 : getGmtCreate().hashCode());
          result = prime * result + ((getGmtModified() == null) ? 0 : getGmtModified().hashCode());
          result = prime * result + ((getRuleId() == null) ? 0 : getRuleId().hashCode());
          result = prime * result + ((getMetricId() == null) ? 0 : getMetricId().hashCode());
          result = prime * result + ((getEnable() == null) ? 0 : getEnable().hashCode());
          result = prime * result + ((getCreator() == null) ? 0 : getCreator().hashCode());
          result = prime * result + ((getOwners() == null) ? 0 : getOwners().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(", gmtCreate=").append(gmtCreate);
          sb.append(", gmtModified=").append(gmtModified);
          sb.append(", ruleId=").append(ruleId);
          sb.append(", metricId=").append(metricId);
          sb.append(", enable=").append(enable);
          sb.append(", creator=").append(creator);
          sb.append(", owners=").append(owners);
          sb.append(", description=").append(description);
          sb.append(", serialVersionUID=").append(serialVersionUID);
          sb.append("]");
          return sb.toString();
      }
  }