All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.krenfro.sendgrid.asm.Suppression Maven / Gradle / Ivy

There is a newer version: 0.0.4
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy