package org.zalando.stups.fullstop.teams; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.google.common.base.MoreObjects; import com.google.common.base.Objects; public class InfrastructureAccount { private final String id; private final String type; @JsonCreator public InfrastructureAccount(@JsonProperty("id") final String id, @JsonProperty("type") final String type) { this.id = id; this.type = type; } public String getId() { return id; } public String getType() { return type; } @Override public String toString() { return MoreObjects.toStringHelper(this) .add("id", id) .add("type", type) .toString(); } @Override public boolean equals(final Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } final InfrastructureAccount that = (InfrastructureAccount) o; return Objects.equal(id, that.id) && Objects.equal(type, that.type); } @Override public int hashCode() { return Objects.hashCode(id, type); } }