com.github.krenfro.sendgrid.asm.Suppression Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sendgrid-asm-java Show documentation
Show all versions of sendgrid-asm-java Show documentation
SendGrid Advanced Suppression Manager (ASM) Java Client
package com.github.krenfro.sendgrid.asm;
import java.util.Objects;
public class Suppression {
private Integer id;
private String name;
private String description;
private boolean suppressed;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public boolean isSuppressed(){
return suppressed;
}
public void setSuppressed(boolean suppressed){
this.suppressed = suppressed;
}
@Override
public String toString(){
return "Suppression{" + "id=" + id + ", name=" + name + ", description=" + description + ", suppressed=" + suppressed + '}';
}
@Override
public int hashCode(){
int hash = 5;
hash = 23 * hash + Objects.hashCode(this.id);
hash = 23 * hash + Objects.hashCode(this.name);
hash = 23 * hash + Objects.hashCode(this.description);
return hash;
}
@Override
public boolean equals(Object obj){
if (obj == null){
return false;
}
if (getClass() != obj.getClass()){
return false;
}
final Suppression other = (Suppression) obj;
if (!Objects.equals(this.id, other.id)){
return false;
}
if (!Objects.equals(this.name, other.name)){
return false;
}
if (!Objects.equals(this.description, other.description)){
return false;
}
return true;
}
}